I am trying to learn how to use $value$plusarg. I have picked up the following code from somewhere.
module test;
integer i, r;
initial begin
r = $value$plusarg("myint=%d", i);
$display("Value is %0d", i);
end
endmodule
When I tried to run it, I am getting the warning as:
System task or function '$value$plusarg' is not defined.
I have used Modelsim. The commands I have used are as follows:
vlog test_genvar.v +define+myint="22"
vsim work.test
run -all
I am not sure if the problem is with the code or the commands I have used. Thanks in advance :)