verilogams question about multiple output pins

Status
Not open for further replies.

xuedashun

Member level 1
Joined
Aug 30, 2005
Messages
39
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,582
If a circuit generates 100 output current, is there an easy way to model the output currents by using ONE statement other than these below.

I(out[1], gnd) <+ 5u;
I(out[2], gnd) <+ 5u;
I(out[3], gnd) <+ 5u;
I(out[4], gnd) <+ 5u;
I(out[5], gnd) <+ 5u;
...
...
I(out[100], gnd) <+ 5u;
...

Thanks for your help!!
 

Look up the "generate" statement:
Code:
generate i (99,0)
I(out[i])<+5u;
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…