[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
  Schedule::Load
  SVN::S4
  Synopsys-modes
  SystemPerl
  Verilog-Pli
  Voneline
  Vregs
General Info
  Papers

Issue #326

vectored fufif1 primitive

Added by Iztok Jeras about 1 year ago. Updated about 1 year ago.

Status:Closed Start date:02/23/2011
Priority:Normal Due date:
Assignee:Wilson Snyder % Done:

0%

Category:Parser
Target version:-

Description

Vectored bufif1 primitive does not compile as expected. I attached two exampled showing two issues. The code on which the examples were based works properly in Icarus Verilog and ncsim.

The first issue is a WIDTH warning that should not be reported:

$ verilator --lint-only tristate_vector.v %Warning-WIDTH: tristate_vector.v:9: Logical Operator COND expects 1 bit on the Conditional Expression, but Conditional Expression's VARREF 'drv_e' generates 4 bits. %Warning-WIDTH: Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message. %Warning-WIDTH: tristate_vector.v:9: Operator COND expects 4 bits on the Conditional False, but Conditional False's CONST '1'bz' generates 1 bits. %Error: Exiting due to 2 warning(s) %Error: Command Failed verilator_bin --lint-only tristate_vector.v

The other issue is a parser error:

verilator --lint-only tristate_list.v %Error: tristate_list.v:12: syntax error, unexpected '{', expecting IDENTIFIER %Error: Exiting due to 1 warning(s) %Error: Command Failed verilator_bin --lint-only tristate_list.v

tristate_vector.v (247 Bytes) Iztok Jeras, 02/23/2011 10:23 pm

tristate_list.v (397 Bytes) Iztok Jeras, 02/23/2011 10:23 pm

History

Updated by Wilson Snyder about 1 year ago

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

Fixed in git for 3.812+.

BTW there are known bugs with tristate logic, see other bugs here.

Updated by Wilson Snyder about 1 year ago

Lane, heads up that I fixed this parsing bug - it required adding a AstBufif1 to V3Tristate. Sometime it would be good to get your outstanding changes back in...

Updated by Wilson Snyder about 1 year ago

  • Status changed from Resolved to Closed

In 3.812.

Also available in: Atom