milad
02/13/2023, 2:04 PMEnno
02/13/2023, 2:06 PMmilad
02/13/2023, 2:12 PMStefan Schippers
02/13/2023, 5:25 PM15.4 Measurements after AC, DC and Transient Analysis
Below example calculates a rise time of signal v(z[6]):
.measure tran trise
+ TRIG v(z[6]) TD=10.5n VAL=0.1 RISE=1
+ TARG v(z[6]) TD=10.5n VAL=1.7 RISE=1
the above statement measures the time v(z[6]) takes to go from 01V to 1.7V in the first rise after 10.5ns.
see below image, the value printed from ngspice matches the Measurement done on the plot.
If you use two different signals in above .measure
you can measure delays (for example from rising clock edge to rising flip flop output)milad
02/13/2023, 6:04 PM