hspice use a .measure statement inside a if statement

Status
Not open for further replies.

fsmarranghello

Newbie level 1
Joined
Sep 13, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,289
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
 
Last edited:

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