verilog syntax error

Status
Not open for further replies.

tok47

Advanced Member level 4
Joined
Jan 16, 2004
Messages
119
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Location
Kuala Lumpur, MALAYSIA
Visit site
Activity points
1,013
Hi ALL,

I having a verilog compilation error. Need help adn guidance.

I have a instance connected as below,

USB_A0 U1 (
.PLLDIVM(1'b0),
.PLLDIVK[1](1'b0),
);

I have a compilation error :
Error-[SE] Syntax error
token is '['

Can I know how to solve this?

Thanks.


Rdgs
YY
 

Verilog LRM says:

In other words, you can only use a simple port name (e.g. PLLDIVK) on the left side of the named port connection. If the port is a vector, you have to specify an expression for all bits in the paranthesis.
 

USB_A0 U1 (
.PLLDIVM(1'b0),
.PLLDIVK({1'b0,1'b0}), //For a 2 bit vector connection
);
 

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