Juan Andres
02/08/2023, 12:11 AMStefan Schippers
02/08/2023, 12:37 AM0
1u
Use something like:
.tran 1n
1uJuan Andres
02/08/2023, 12:43 AMStefan Schippers
02/08/2023, 1:12 AMJuan Andres
02/08/2023, 1:17 AMStefan Schippers
02/08/2023, 2:04 AM.measure
line before the .control
blockStefan Schippers
02/08/2023, 2:05 AMStefan Schippers
02/08/2023, 2:13 AMset appendwrite
must be after the first dc
simulation, otherwise you keep appending data on the raw file.
The setplot dc3 must be changed to setplot tran1, since it follows the first tran command.Stefan Schippers
02/08/2023, 2:23 AM.end
in your xschem code block. xschem adds .end at end of netlist.
you of course should close the .control
with .endc
, but do not use .end.Juan Andres
02/08/2023, 2:23 AMJuan Andres
02/08/2023, 2:25 AMStefan Schippers
02/08/2023, 2:27 AMtrise = 9.365834e-10 targ= 2.764366e-08 trig= 2.670708e-08
and this result matches my measurement:Juan Andres
02/08/2023, 2:29 AMJuan Andres
02/08/2023, 2:32 AMStefan Schippers
02/08/2023, 2:32 AMJuan Andres
02/08/2023, 2:41 AMJuan Andres
02/08/2023, 2:48 AMStefan Schippers
02/08/2023, 2:48 AMtrise = 6.756497e-10 targ= 2.747200e-08 trig= 2.679635e-08
Juan Andres
02/08/2023, 2:49 AMStefan Schippers
02/08/2023, 2:49 AMJuan Andres
02/08/2023, 2:49 AMJuan Andres
02/08/2023, 2:51 AMStefan Schippers
02/08/2023, 2:56 AMStefan Schippers
02/08/2023, 2:58 AMJuan Andres
02/08/2023, 3:03 AMJuan Andres
02/08/2023, 3:14 AMStefan Schippers
02/08/2023, 3:15 AMJuan Andres
02/08/2023, 3:16 AMJuan Andres
02/08/2023, 3:18 AMStefan Schippers
02/08/2023, 3:20 AM.measure tran tprop TRIG v(vin) TD=20n VAL=0.9 FALL=1 TARG v(vout) TD=20n VAL=0.9 RISE=1
Juan Andres
02/08/2023, 3:22 AMStefan Schippers
02/08/2023, 3:29 AM.measure tran tprop1 TRIG v(vin) TD=20n VAL=0.9 FALL=1 TARG v(vout) TD=20n VAL=0.9 RISE=1
.measure tran tprop2 TRIG v(vin) TD=0n VAL=0.9 RISE=1 TARG v(vout) TD=0n VAL=0.9 FALL=1
One of the two is negative since the inverter has a switching threshold that is lower than 0.9VJuan Andres
02/08/2023, 3:30 AMStefan Schippers
02/08/2023, 3:31 AMJuan Andres
02/08/2023, 3:46 AM