summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/soi/inv_tr.sp
blob: b486374bac163ca828629f350268bf29ba35218f (plain)
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
SOI Inverter
* Mx  Drain Gate Source Back-gate(substrate) Body  Tx  W  L (body ommitted for FB)

.include ./bsim4soi/nmos4p0.mod
.include ./bsim4soi/pmos4p0.mod
.option TEMP=27C

Vpower VD 0 1.5
Vgnd VS 0 0

Vgate   Gate   VS DC 0 PULSE(0v 1.5v 100ps 50ps 50ps 200ps 500ps)

*MN0 Out Gate VS VS VS N1 W=10u L=0.18u debug=1
*MP0 Out Gate VD VS VD P1 W=20u L=0.18u debug=1

MN0 Out Gate VS VS N1 W=10u L=0.18u Pd=11u Ps=11u
MP0 Out Gate VD VS P1 W=20u L=0.18u Pd=11u Ps=11u

.tran 3p 600ps
.print tran v(gate) v(out)

.control
if $?batchmode
* do nothing
else
  run
  plot Vgnd#branch
  plot gate out
endif
.endc

.END