-
Notifications
You must be signed in to change notification settings - Fork 2
/
CNFETStatic.sp
executable file
·66 lines (56 loc) · 1.58 KB
/
CNFETStatic.sp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
*Final Project
*Joseph Bolling and Akshay Goel
*
*Simulation of a 5 stage cmos inverter chain with a CNFET sleep transistor on the
*ground connection
*
*NETLIST NODES
*vdd: vdd (duh)
*gnd: ground (seriously?)
*o1 ... o5: intermediate connections in inverter chain
*fgnd: virtual ground node, at drain of sleep transistor
*
.lib 'nano_model_39/CNFET.lib' CNFET
.include '32nm_MGK.pm'
.options NOMOD POST
.options AUTOSTOP
.options INGOLD=2 DCON=1
.options GSHUNT=1e-12 RMIN=1e-15
.options ABSTOL=1e-5 ABSVDC=1e-4
.options RELTOL=1e-2 RELVDC=1e-2
.options NUMDGT=4 PIVOT=13
*Parameters
.param TEMP=27
.param pvdd=0.9V
.param pvsleep=0.9V
*Voltage Sources
vdd vdd gnd pvdd
vsleep nsleep gnd pulse(0v pvsleep 1p 1p 1p 200p 800p)
vbuff1 buffvdd1 gnd pvdd
vbuff2 buffvdd2 gnd pvdd
vin o0 gnd pvdd
*2 stage buffer for sleep signal
*mb1 sleep nsleep gnd gnd nmos l=32n w=43n
*mb2 sleep nsleep buffvdd1 buffvdd1 pmos l=32n w=43n
*mb3 bufout sleep gnd gnd nmos l=32n w=43n
*mb4 bufout sleep buffvdd2 buffvdd2 pmos l=32n w=43n
*CNFET Sleep Transistor
XDevice fgnd nsleep gnd gnd NCNFET tubes=3
*msleep fgnd nsleep gnd gnd nmos l=32n w=43n
*vshort fgnd gnd 0
*5 stage CMOS Inverter Chain
m1 o1 o0 fgnd gnd nmos l=32n w=43n
m2 o1 o0 vdd vdd pmos l=32n w=43n
m3 o2 o1 fgnd gnd nmos l=32n w=43n
m4 o2 o1 vdd vdd pmos l=32n w=43n
m5 o3 o2 fgnd gnd nmos l=32n w=43n
m6 o3 o2 vdd vdd pmos l=32n w=43n
m7 o4 o3 fgnd gnd nmos l=32n w=43n
m8 o4 o3 vdd vdd pmos l=32n w=43n
m9 o5 o4 fgnd gnd nmos l=32n w=43n
m10 o5 o4 vdd vdd pmos l=32n w=43n
*Transient Analysis
*.IC v(o1)=pvdd
*.tran 0.01p 800p UIC
.dc vsleep 0 pvdd 0.01
.end