Hello,
I face an error through writing a function with uvm. I use `uvm_info to print some information. And the next line after `uvm_info, a variable is declared. But an error occurs. I don't know why this error occurs. Please, help me... :(
The this code is not working.
function void BLA();
`uvm_info(get_type_name(), $psprintf("bla"), UVM_LOW)
V_0 v0 = OTHER_BLA();
V_1 v1;
V_2 v2;
if (blablabla) begin
end
...
endfunction: BLA
But, this code is working.
function void BLA();
V_0 v0 = OTHER_BLA();
V_1 v1;
V_2 v2;
`uvm_info(get_type_name(), $psprintf("bla"), UVM_LOW)
if (blablabla) begin
end
...
endfunction: BLA
Thanks.