I was wondering what the best way to measure the standard tPHL, tPLH parameters was in HSPICE. Specifically I was wondering the best way to address the negative values I am getting.
I have a circuit with 2 connected inverters terminating a capacitor to ground.
I am attempting to measure the high-low time by looking at when the signal starts and stops.
I am confused as to the why when I measure tplh2, the time for the second inverter to fall and rise I get a negative time.
What is going on here?
* 2 inverters, and negative delay
.LIB 'models15.txt' MOS
M1 OUTa IN VDD VDD pch L=1.5u W=6u
M2 OUTa IN 0 0 nch L=1.5u W=3u
M3 OUTb OUTa VDD VDD pch L=1.5u W=6u
M4 OUTb OUTa 0 0 nch L=1.5u W=3u
CL 0 OUTb 1p
VVDD VDD 0 5
VIN IN 0 0 PULSE 0 5 3n 1n 1n 7n 20n
.DC VIN 0 5 0.05
.PRINT DC V(IN) V(OUTb)
.PRINT DC V(IN) V(OUTa)
.TRAN 100p 100n
.PRINT TRAN V(IN) V(OUTb)
.PRINT TRAN V(IN) V(OUTa)
.measure tran tphl1 trig v(IN) val='0.5*5' rise=1 targ v(OUTa) val='0.5*5' fall=1
.measure tran tplh1 trig v(IN) val='0.5*5' fall=1 targ v(OUTa) val='0.5*5' rise=1
.measure tran tphl2 trig v(IN) val='0.5*5' rise=1 targ v(OUTb) val='0.5*5' fall=1
.measure tran tplh2 trig v(IN) val='0.5*5' fall=1 targ v(OUTb) val='0.5*5' rise=1
.OPTIONS LIST NODE POST
.END
Output
.TITLE '* inverter circuit'
tphl1 tplh1 tphl2 tplh2
1.054e-10 5.715e-11 9.190e-09 -6.982e-09