sindhura
New Member
Offline
Posts: 7
|
Hi Geoffrey,
I am sorry for not being able to put my question in a proper way.
Lets take the below testbench
module testbench(); electrical gnd,in; ground gnd; real index;
real length1;
m_linear # (.mu(1e-10)) m1(in,gnd);
// Create a pulse voltage source as input to the design vsource #(.type("pulse"), .val0(1),.val1(-1), .period(20m)) v0(in,gnd); endmodule
Whenever I run my design it just simulates the design once with the default L value in the main module. But I want to change my L value so that L lies between : L-5% <L < L+5% Everytime I change I want to run my simulation.
I can instantiate the modules 10 times in my design with different L values like below.
m_linear # (.mu(1e-10), .length(50e-10) m1(in,gnd); m_linear # (.mu(1e-10), .length(55e-10) m1(in,gnd); m_linear # (.mu(1e-10), .length(60e-10) m1(in,gnd); m_linear # (.mu(1e-10), .length(45e-10) m1(in,gnd); m_linear # (.mu(1e-10), .length(40e-10) m1(in,gnd);
But it gets too complicated for 100+ variations. So I need someone to help me to do these simulations in an effective way.
Regards, Sindhura
|