[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
  SystemPerl
  Voneline
  WFH
General Info
  Papers

Issue #406

delayed assignment of unsized constant fails

Added by Jeremy Bennett over 1 year ago. Updated 4 months ago.

Status:Duplicate Start date:10/26/2011
Priority:Normal Due date:
Assignee:Jeremy Bennett % Done:

0%

Category:Unsupported
Target version:-

Description

The following causes a syntax error:

always @(*)
  y = #4 'h1;

The error message is:

$ %Error: t/t_delayed_unsigned_const.v:23: syntax error, unexpected ';', expecting TYPE-IDENTIFIER
%Error: Exiting due to 1 warning(s)
%Error: Command Failed /home/jeremy/tools/verilator/verilator/verilator_bin --prefix Vt_delayed_unsigned_const --x-assign unique -cc -Mdir obj_dir/t_delayed_unsigned_const --debug-check -f input.vc t/t_delayed_unsigned_const.v

There is an easy workaround (put in the size).

Regression test case attached. Tested with Verilator 3.824.

t_delayed_unsigned_const.pl - PERL driver for the test (463 Bytes) Jeremy Bennett, 10/26/2011 01:20 pm

t_delayed_unsigned_const.v - Test Verilog (623 Bytes) Jeremy Bennett, 10/26/2011 01:20 pm

History

Updated by Wilson Snyder over 1 year ago

  • Category set to Unsupported
  • Status changed from New to Feature

This is a duplicate of bug256.

Updated by Wilson Snyder over 1 year ago

  • Assignee set to Byron Bradley

Updated by Wilson Snyder over 1 year ago

  • Assignee changed from Byron Bradley to Jeremy Bennett

Fingers slipped and misassigned.

Updated by Wilson Snyder 4 months ago

  • Status changed from Feature to Duplicate

Closing as duplicate of bug256.

Also available in: Atom