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 #1383

Support SystemVerilog void casts & warn if not present

Added by Al Grant 9 months ago. Updated 6 months ago.

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

0%


Description

SystemVerilog supports casts; one use is to explicitly void a non-void function call, to avoid a lint warning:
function automatic integer f_int();
endfunction

function automatic void g();
  void'(f_int());
endfunction
Verilator faults this with
syntax error, unexpected void
It would be useful if Verilator could support this simple idiom, given that functions are generally supported and this kind of voiding cast may be mandated by house style or used in the output of Verilog generators.

History

#1 Updated by Wilson Snyder 9 months ago

  • Category set to Unsupported

Should be straight foward enough, perhaps you could provide some test_regress style test cases and a patch to implement it?

#2 Updated by Wilson Snyder 9 months ago

  • Status changed from New to Feature

#3 Updated by Wilson Snyder 6 months ago

  • Subject changed from Support SystemVerilog void casts to Support SystemVerilog void casts & warn if not present
  • Status changed from Feature to Resolved
  • Assignee set to Wilson Snyder

Fixed in git towards 4.012.

Also added IGNOREDRETURN warning when no cast present, which is required by IEEE.

#4 Updated by Wilson Snyder 6 months ago

  • Status changed from Resolved to Closed

In 4.012.

Also available in: Atom