[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

Bug in Verilog::Netlist with two-dimensional arrays.

Added by Shareef Jalloq almost 2 years ago

Hey,

found a syntax checking bug that causes the netlist reader to bomb out with an error.

If I declare a 2d array as

wire [7:0] array [2];

then I get a syntax error. But if I use

wire [7:0] array [0:1]

then all is well.

The error is: %Error: my_file.v:232: syntax error, unexpected ']', expecting ':' Exiting due to errors

Thanks, Shareef.


Replies (1)

RE: Bug in Verilog::Netlist with two-dimensional arrays. - Added by Shareef Jalloq almost 2 years ago

Oops, ignore me. I just realised that this isn't legal syntax - the simulators allow it but the synth tools don't.

Sorry.

(1-1/1)