vrarjun
Newbie level 3
- Joined
- Apr 28, 2010
- Messages
- 4
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Sacramento
- Activity points
- 1,340
I am a newbie to ngspice,i am trying to calculate the delay between v(A) and v(Z).I keep getting run simulation aborted error.
Any suggestions would be of great help?.My spice file is given below
.SUBCKT th23 A B C Z VDD GND
M0 nbc C VDD VDD PD L=1 W=25
M2 nba B nbc VDD PD L=1 W=25
M3 ninv_i A nba VDD PD L=1 W=25
M4 ninv_i A nab GND ND L=1 W=15
M5 nab B GND GND ND L=1 W=15
M6 ninv_i C ncab GND ND L=1 W=15
M7 ncab A GND GND ND L=1 W=15
M8 ncab B GND GND ND L=1 W=15
M9 ninv_i Z npbd VDD PD L=1 W=4
M10 npbd B npbc VDD PD L=1 W=25
M11 npbc C VDD VDD PD L=1 W=25
M12 nabc A VDD VDD PD L=1 W=25
M13 nbc2 B nabc VDD PD L=1 W=25
M14 nbc2 C nabc VDD PD L=1 W=25
M15 ninv_i Z nbc2 VDD PD L=1 W=4
M16 ninv_i Z nd3abc GND ND L=1 W=4
M17 nd3abc A GND GND ND L=1 W=15
M18 nd3abc B GND GND ND L=1 W=15
M19 nd3abc C GND GND ND L=1 W=15
M20 Z ninv_i VDD VDD PD L=1 W=25
M21 Z ninv_i GND GND ND L=1 W=15
.ENDS
.param VDD=1.5v
.param GND=0
.save v(A) v(B)
vin1 A VDD 0 pwl (0 GND 100ns VDD 110ns VDD 200ns GND)
vin2 B VDD 0 pwl (0 GND 100ns VDD 110ns VDD 200ns GND)
.options acct
.global VDD! GND!
.tran 100ns 1000ns uic
.control
.measure tran delay_b trig v(B) val='VDD/2' rise=1
+ targ v(Z) val='VDD/2' rise=1
.measure tran delay_b trig v(A) val='VDD/2' rise=1
+ targ v(Z) val='VDD/2' rise=1
run
.endc
Any suggestions would be of great help?.My spice file is given below
.SUBCKT th23 A B C Z VDD GND
M0 nbc C VDD VDD PD L=1 W=25
M2 nba B nbc VDD PD L=1 W=25
M3 ninv_i A nba VDD PD L=1 W=25
M4 ninv_i A nab GND ND L=1 W=15
M5 nab B GND GND ND L=1 W=15
M6 ninv_i C ncab GND ND L=1 W=15
M7 ncab A GND GND ND L=1 W=15
M8 ncab B GND GND ND L=1 W=15
M9 ninv_i Z npbd VDD PD L=1 W=4
M10 npbd B npbc VDD PD L=1 W=25
M11 npbc C VDD VDD PD L=1 W=25
M12 nabc A VDD VDD PD L=1 W=25
M13 nbc2 B nabc VDD PD L=1 W=25
M14 nbc2 C nabc VDD PD L=1 W=25
M15 ninv_i Z nbc2 VDD PD L=1 W=4
M16 ninv_i Z nd3abc GND ND L=1 W=4
M17 nd3abc A GND GND ND L=1 W=15
M18 nd3abc B GND GND ND L=1 W=15
M19 nd3abc C GND GND ND L=1 W=15
M20 Z ninv_i VDD VDD PD L=1 W=25
M21 Z ninv_i GND GND ND L=1 W=15
.ENDS
.param VDD=1.5v
.param GND=0
.save v(A) v(B)
vin1 A VDD 0 pwl (0 GND 100ns VDD 110ns VDD 200ns GND)
vin2 B VDD 0 pwl (0 GND 100ns VDD 110ns VDD 200ns GND)
.options acct
.global VDD! GND!
.tran 100ns 1000ns uic
.control
.measure tran delay_b trig v(B) val='VDD/2' rise=1
+ targ v(Z) val='VDD/2' rise=1
.measure tran delay_b trig v(A) val='VDD/2' rise=1
+ targ v(Z) val='VDD/2' rise=1
run
.endc