0% found this document useful (0 votes)
28 views2 pages

Orgate

The document describes a simulation of a MOSFET circuit. It defines the circuit components and parameters for the simulation. It then specifies measurements and plots of voltages, power, delays, rise/fall times, and frequencies to analyze the circuit behavior over time.

Uploaded by

nithyananthank
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views2 pages

Orgate

The document describes a simulation of a MOSFET circuit. It defines the circuit components and parameters for the simulation. It then specifies measurements and plots of voltages, power, delays, rise/fall times, and frequencies to analyze the circuit behavior over time.

Uploaded by

nithyananthank
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

.

probe
.option probev
.lib "C:\Users\nithy\Documents\TannerEDA\TannerTools_v2019.2\Process\Generic_250nm\
Models\Generic_250nm.lib" tt

********* Simulation Settings - Parameters *********


.param Vpwr = 5
****************************************

M1 1 B Gnd_ Gnd_ NMOS25 l=3.25e-07 w=7.75e-07 ad=1.02688e-12 as=6.78125e-13


pd=4.2e-06 ps=3.3e-06 $ (34.1 4.725 34.425 5.5)
M2 1 A Gnd_ Gnd_ NMOS25 l=4.5e-07 w=7.75e-07 ad=9.3e-13 as=1.27875e-12 pd=3.95e-06
ps=4.85e-06 $ (39.575 4.725 40.025 5.5)
M3 Out 1 Gnd_ Gnd_ NMOS25 l=3.5e-07 w=7.75e-07 ad=9.10625e-13 as=7.75e-13 pd=3.9e-
06 ps=3.55e-06 $ (48.65 4.175 49 4.95)
M4 2 B Vdd Vdd PMOS25 l=3.75e-07 w=6.25e-07 ad=1.875e-13 as=4.84375e-13 pd=1.225e-
06 ps=2.8e-06 $ (38.6 8.975 38.975 9.6)
M5 1 A 2 Vdd PMOS25 l=4.5e-07 w=6.25e-07 ad=7.1875e-13 as=1.875e-13 pd=3.55e-06
ps=1.225e-06 $ (39.575 8.975 40.025 9.6)
M6 Out 1 Vdd Vdd PMOS25 l=3.5e-07 w=6.25e-07 ad=5.625e-13 as=6.875e-13 pd=3.05e-06
ps=3.45e-06 $ (48.65 8.425 49 9.05)
.options cshunt=1e-14

VV1 Vdd Gnd DC Vpwr $ $x=8600 $y=4400 $w=400 $h=600


VV2 A Gnd BIT({00110011} ) $ $x=1400 $y=3900 $w=400 $h=600
VV3 B Gnd BIT({01010101} ) $ $x=2000 $y=3900 $w=400 $h=600
.PLOT V(A) $ $x=1250 $y=6050 $w=300 $h=1500 $r=270
.PLOT V(B) $ $x=2250 $y=5250 $w=300 $h=1500 $r=270
.PLOT V(Out) $ $x=7150 $y=5250 $w=300 $h=1500 $r=270
.PLOT TRAN P(VV1) $ $x=1800 $y=1700 $w=1600 $h=200
.PLOT TRAN P(VV2) $ $x=4800 $y=1700 $w=1600 $h=200
.PLOT TRAN P(VV3) $ $x=7800 $y=1700 $w=1600 $h=200
.MEASURE TRAN RiseDelay_Me13 TRIG v(A) VAL='(Vpwr-0)*50/100+0' TD='0' RISE=1 TARG
v(Out) VAL='(Vpwr-0)*50/100+0' TD='0' FALL=1 PRINT 0
.MEASURE TRAN FallDelay_Me13 TRIG v(A) VAL='(Vpwr-0)*50/100+0' TD='0' FALL=1 TARG
v(Out) VAL='(Vpwr-0)*50/100+0' TD='0' RISE=1 PRINT 0
.MEASURE TRAN A_out_dealy PARAM='(RiseDelay_Me13+FallDelay_Me13)/2.0' $ $x=3200
$y=250 $w=2000 $h=300
.MEASURE TRAN RiseDelay_Me14 TRIG v(B) VAL='(Vpwr-0)*50/100+0' TD='0' RISE=1 TARG
v(Out) VAL='(Vpwr-0)*50/100+0' TD='0' FALL=1 PRINT 0
.MEASURE TRAN FallDelay_Me14 TRIG v(B) VAL='(Vpwr-0)*50/100+0' TD='0' FALL=1 TARG
v(Out) VAL='(Vpwr-0)*50/100+0' TD='0' RISE=1 PRINT 0
.MEASURE TRAN B_out_delay PARAM='(RiseDelay_Me14+FallDelay_Me14)/2.0' $ $x=6200
$y=150 $w=2000 $h=300
.MEASURE TRAN A_Risetime TRIG v(A) VAL='(Vpwr-0)*10/100+0' TD=0 RISE=1 TARG v(A)
VAL='(Vpwr-0)*90/100+0' TD=0 RISE=1 $ $x=1650 $y=1000 $w=1500 $h=200
.MEASURE TRAN B_Risetime TRIG v(B) VAL='(Vpwr-0)*10/100+0' TD=0 RISE=1 TARG v(B)
VAL='(Vpwr-0)*90/100+0' TD=0 RISE=1 $ $x=4650 $y=1000 $w=1500 $h=200
.MEASURE TRAN Out_Risetime TRIG v(Out) VAL='(Vpwr-0)*10/100+0' TD=0 RISE=1 TARG
v(Out) VAL='(Vpwr-0)*90/100+0' TD=0 RISE=1 $ $x=7650 $y=1000 $w=1500 $h=200
.MEASURE TRAN A_Falltime TRIG v(A) VAL='(Vpwr-0)*90/100+0' TD=0 Fall=1 TARG v(A)
VAL='(Vpwr-0)*10/100+0' TD=0 FALL=1 $ $x=1650 $y=800 $w=1500 $h=200
.MEASURE TRAN B_Falltime TRIG v(B) VAL='(Vpwr-0)*90/100+0' TD=0 Fall=1 TARG v(B)
VAL='(Vpwr-0)*10/100+0' TD=0 FALL=1 $ $x=4650 $y=800 $w=1500 $h=200
.MEASURE TRAN Out_Falltime TRIG v(Out) VAL='(Vpwr-0)*90/100+0' TD=0 Fall=1 TARG
v(Out) VAL='(Vpwr-0)*10/100+0' TD=0 FALL=1 $ $x=7650 $y=800 $w=1500 $h=200
.MEASURE TRAN A_Pulsewidth TRIG V(A) VAL='Vpwr/2.0' TD='0' RISE='1' TARG V(A)
VAL='Vpwr/2.0' TD='0' FALL='1' $ $x=1650 $y=600 $w=1500 $h=200
.MEASURE TRAN B_Pulsewidth TRIG V(B) VAL='Vpwr/2.0' TD='0' RISE='1' TARG V(B)
VAL='Vpwr/2.0' TD='0' FALL='1' $ $x=4650 $y=600 $w=1500 $h=200
.MEASURE TRAN Out_pulsewidth TRIG V(Out) VAL='Vpwr/2.0' TD='0' RISE='1' TARG V(Out)
VAL='Vpwr/2.0' TD='0' FALL='1' $ $x=7650 $y=600 $w=1500 $h=200
.MEASURE TRAN Me1_Period TRIG V(A) VAL='Vpwr/2.0' TD='0' RISE='1' TARG V(A)
VAL='Vpwr/2.0' TD='0' RISE='1+1' PRINT 0
.MEASURE TRAN A_Freq<Hz> PARAM='1.0/Me1_Period*1' $ $x=1650 $y=1200 $w=1500 $h=200
.MEASURE TRAN Me2_Period TRIG V(B) VAL='Vpwr/2.0' TD='0' RISE='1' TARG V(B)
VAL='Vpwr/2.0' TD='0' RISE='1+1' PRINT 0
.MEASURE TRAN B_freq<Hz> PARAM='1.0/Me2_Period*1' $ $x=4650 $y=1200 $w=1500 $h=200
.MEASURE TRAN Me3_Period TRIG V(Out) VAL='Vpwr/2.0' TD='0' RISE='1' TARG V(Out)
VAL='Vpwr/2.0' TD='0' RISE='1+1' PRINT 0
.MEASURE TRAN Out_freq<Hz> PARAM='1.0/Me3_Period*1' $ $x=7650 $y=1200 $w=1500
$h=200

********* Simulation Settings - Analysis Section *********


.tran 10ns 400ns

********* Simulation Settings - Additional SPICE Commands *********

.end
* Top level device count
* M(NMOS25) 3
* M(PMOS25) 3
* Number of devices: 6
* Number of nodes: 7

You might also like