fsmarranghello
Newbie level 1
Hello,
Is it possible to use a .measure statement inside a if statement? Can I use the value in a later .measure statement outside the if? If I try to simulate the following code:
.if (Time_r2 < Time_f2)
.measure T_high_rise param = 'Time_r3 + (Time_f3 - time_r3)/2'
.measure T_low_rise param = 'Time_f2 + (Time_r3 - Time_f2)/2'
.else
.measure T_high_rise param = 'Time_r2 + (Time_f3 - Time_r2)/2'
.measure T_low_rise param = 'Time_f2 + (Time_r2 - Time_f2)/2'
.endif
.measure TRAN I_gate_rise integ i(Vload) from=T_low_rise to=T_high_rise
I get an error message: **error** no definition for 0:t_low_rise
How can I get this to work?
Thank you all
Is it possible to use a .measure statement inside a if statement? Can I use the value in a later .measure statement outside the if? If I try to simulate the following code:
.if (Time_r2 < Time_f2)
.measure T_high_rise param = 'Time_r3 + (Time_f3 - time_r3)/2'
.measure T_low_rise param = 'Time_f2 + (Time_r3 - Time_f2)/2'
.else
.measure T_high_rise param = 'Time_r2 + (Time_f3 - Time_r2)/2'
.measure T_low_rise param = 'Time_f2 + (Time_r2 - Time_f2)/2'
.endif
.measure TRAN I_gate_rise integ i(Vload) from=T_low_rise to=T_high_rise
I get an error message: **error** no definition for 0:t_low_rise
How can I get this to work?
Thank you all
Last edited: