Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top