Verilog - netlist Error

Status
Not open for further replies.

ee1

Full Member level 2
Joined
May 31, 2011
Messages
120
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Activity points
2,036
Hi,
while reading the verilog I am getting this Error:
"Error: Expected '(' but found '['"
for this line:
inv_lib_cell U1[2:0] ( .A(n2[2:0]), .Y(n1[2:0]));

can someone pls tell me whats wrong?..

Thanks!
 

have you checked whether A and Y is 1 bit width or 3 bit width?
 

How can i check this?
 

Post full program . If would be easier to sort out error.
 

What tool is giving you this error? It possible it doesn't support arrays of instances, something that was added to Verilog in 1995! You can try removing each set of []'s and see if you get a different error
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…