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