Feb 1, 2011 #1 X 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!!
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!!
Feb 1, 2011 #2 J JoannesPaulus Advanced Member level 3 Joined Mar 19, 2008 Messages 773 Helped 235 Reputation 470 Reaction score 138 Trophy points 1,323 Location USA Activity points 5,006 Look up the "generate" statement: Code: generate i (99,0) I(out[i])<+5u;