Project

General

Profile

[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  SVN::S4
  Voneline
  WFH
General Info
  Papers

Issue #1285

scr1 test suite: built-in system functions only work when the return value is assigned

Added by Joel Holdsworth 11 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Parser
% Done:

0%


Description

Building this test code fails...

module test();

string test;

initial begin
   // This works
   int ret = $value$plusargs("test_a=%s", test);  

   // This does not work
   $value$plusargs("test_b=%s", test);
end

endmodule

...with the following error...

%Error: test_task_returns_ignored.sv:11: syntax error, unexpected ';'          
%Error: Exiting due to 1 error(s)      
%Error: Command Failed /usr/local/bin/verilator_bin -sv --cc test_task_returns_ignored.sv   

$value$plusargs(), and other functions e.g. $fscanf() fail in the same way when the return value is ignored.

History

#1 Updated by Wilson Snyder 11 months ago

  • Status changed from New to Resolved
  • Assignee set to Wilson Snyder

Simple enough, mapped all system tasks to be allowed as functions. Thanks for the report.

Fixed in git towards 3.921.

#2 Updated by Joel Holdsworth 11 months ago

Nice! Thanks for fixing it so quickly

#3 Updated by Wilson Snyder 10 months ago

  • Status changed from Resolved to Closed

In 3.922.

Also available in: Atom