summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/vdmos/inv_vdmos_dc.cir
blob: d81d8f544ab9cb1aaa11e5b968e364a35b32e695 (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
*****************==== Inverter ====*******************
*********** VDMOS inverter dc  ****************************
vdd 1 0 5
vss 4 0 0

.subckt inv out in vdd vss
mp1 out in vdd p1
mn1 out in vss n1
.ends

xinv 3 2 1 4 inv

Vin 2 0 0

.dc Vin 0 5 0.05

.control
run
* current and output in a single plot
plot v(2) v(3) vss#branch
.endc

.model  N1  vdmos cgdmin=0.2p cgdmax=1p a=2 cgs=0.5p rg=5k
.model  P1  vdmos cgdmin=0.2p cgdmax=1p a=2 cgs=0.5p rg=5k pchan
.end