Albertll
Newbie level 1
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 !!!
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 !!!