Instantiation In a Loop in Verilog

Status
Not open for further replies.

reza.ghanaatian

Newbie level 1
Joined
Aug 30, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
Hi,

I want to instantiate a module 16 time and it is so boring.
Is there a way that I can use a "for loop" and only one istantiation?
I used these syntax and ModelSim doed not accept it.
I should say that I need my code to be synthesizable also.
 

Seems like you lacking a good Verilog text book or tutorial. Read about the generate loop statement.
 

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