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 measure absolute value

Status
Not open for further replies.

Albertll

Newbie level 1
Joined
Jun 15, 2017
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
13
Hi, I want to measure the delay of my comparator.

The delay is defined from the rising moment of Clkc to comparator's output differential voltage(Outp-Outn) reaching 0.8v.

Because Outp may be bigger or smaller than Outn, I want to measure the absolute value of (Outp-Outn)

So I enter the code:
.param abs_vout= 'abs(v(Outp)-v(Outn))'
.measure tran delay when 'v(abs_vout)' ='0.8' from='t1' rise=1 (t1 us the rising moment of Clkc)

And there has a waring:Unable to find reference node abs_vout

If I enter:
.measure tran delay when 'v(abs(Outp-Outn))' ='0.8' from='t1' rise=1
Then there has a syntax error

How should I modify my HSPICE code ? Thanks very much !!!
 

So I enter the code:
.param abs_vout= 'abs(v(Outp)-v(Outn))'
.measure tran delay when 'v(abs_vout)' ='0.8' from='t1' rise=1 (t1 us the rising moment of Clkc)
And there has a waring:Unable to find reference node abs_vout
I think HSPICE here expects a node voltage, not a parameter.

If I enter:
.measure tran delay when 'v(abs(Outp-Outn))' ='0.8' from='t1' rise=1
Then there has a syntax error
Did you try:
.measure tran delay when 'v(abs(V(Outp)-V(Outn)))' ='0.8' from='t1' rise=1
?

You could also try:
.MEASURE TRAN delay TRIG AT=’t1’ TARG V=’abs(V(Outp)-V(Outn))' VAL=0.8 [RISE=1]
 

.param declares and assigns a value to a variable.

v(outp) is a vector.

You are trying to then .measure abs_vout (a variable)
when .measure operates on vectors (by name).

I think what you want is two .measure statements to
find the delays separately of v(outp) and v(outn), and
then do the .param abs() math on those two delay values.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top