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

Missing # in parameter list crashes verilator with no useful error message

Added by Dan Kirkham 7 months ago. Updated 6 months ago.

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

0%


Description

This syntax error took me a while to figure out because verilator crashes with no useful error output.

module param_list_no_hash ( // Crashes verilator with internal fault
//module param_list_no_hash #( // Correct syntax
    FOO=1
) (
    output bar
);

assign bar = FOO;

endmodule
$ verilator -cc module.v --debug
        /usr/local/bin/verilator_bin_dbg -cc module.v --debug
Starting Verilator 3.922 2018-03-17 rev UNKNOWN_REV
- V3Os.cpp:57:        export SYSTEMC_ARCH=cygwin # From sysname 'cygwin_nt-10.0'
- V3File.cpp:205:        --check-times failed: no input obj_dir/Vmodule__verFiles.dat
- V3GraphTest.cpp:356:selfTest:
- V3ParseImp.cpp:97:  parseFile: module
  Preprocessing module.v
- V3PreShell.cpp:137:     Reading module.v
- V3ParseImp.cpp:164: Lexing module.v
%Error: export VERILATOR_ROOT=
%Error: /usr/local/bin/verilator_bin_dbg -cc module.v --debug
%Error: Command Failed /usr/local/bin/verilator_bin_dbg -cc module.v --debug

</pre

History

#1 Updated by Wilson Snyder 7 months ago

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

Thanks for the test case; simple enough to solve.

Fixed in git towards 3.924.

#2 Updated by Wilson Snyder 6 months ago

  • Status changed from Resolved to Closed

In 3.924.

Also available in: Atom