Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to pass more than one parameters in verilog

Status
Not open for further replies.

bapodradhairyab

Member level 3
Joined
Jan 5, 2010
Messages
58
Helped
6
Reputation
12
Reaction score
1
Trophy points
1,288
Location
INDIA
Activity points
1,618
I want to know how we can pass parameters through the top module to the instance inside the top module and what is exact syntax for that...
 

Hi,

Verilog-95 style in the parameter order as defined in the lower level module:

<submodule name> #(<value1>, <value2>, ..., <valueN>) <instance name> (<port connections>)

Verilog-2001 style uses named assignments:

<submodule name> #(.<param1>(<value1>), .<param2>(<value2>),..., .<paramN>(<valueN>)) <instance name> (<port connections>)

Devas
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top