-
Notifications
You must be signed in to change notification settings - Fork 0
/
inverter.sch
69 lines (69 loc) · 1.48 KB
/
inverter.sch
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
67
68
69
v {xschem version=3.4.5 file_version=1.2
}
G {}
K {}
V {}
S {}
E {}
N 300 -660 300 -570 {
lab=VDD}
N 260 -540 260 -370 {
lab=A}
N 180 -460 260 -460 {
lab=A}
N 300 -510 300 -400 {
lab=Y}
N 300 -460 420 -460 {
lab=Y}
N 300 -340 300 -280 {
lab=VSS}
N 300 -540 320 -540 {
lab=VDD}
N 320 -600 320 -540 {
lab=VDD}
N 300 -600 320 -600 {
lab=VDD}
N 300 -370 320 -370 {
lab=VSS}
N 320 -370 320 -320 {
lab=VSS}
N 300 -320 320 -320 {
lab=VSS}
C {devices/code_shown.sym} -480 -690 0 0 {name=MODELS only_toplevel=true
format="tcleval( @value )"
value="
.include $::180MCU_MODELS/design.ngspice
.lib $::180MCU_MODELS/sm141064.ngspice typical
"}
C {pdk/gf180mcuD/libs.tech/xschem/symbols/nfet_03v3.sym} 280 -370 0 0 {name=M1
L=0.28u
W=0.36u
nf=1
m=1
ad="'int((nf+1)/2) * W/nf * 0.18u'"
pd="'2*int((nf+1)/2) * (W/nf + 0.18u)'"
as="'int((nf+2)/2) * W/nf * 0.18u'"
ps="'2*int((nf+2)/2) * (W/nf + 0.18u)'"
nrd="'0.18u / W'" nrs="'0.18u / W'"
sa=0 sb=0 sd=0
model=nfet_03v3
spiceprefix=X
}
C {pdk/gf180mcuD/libs.tech/xschem/symbols/pfet_03v3.sym} 280 -540 0 0 {name=M2
L=0.28u
W=0.36u
nf=1
m=1
ad="'int((nf+1)/2) * W/nf * 0.18u'"
pd="'2*int((nf+1)/2) * (W/nf + 0.18u)'"
as="'int((nf+2)/2) * W/nf * 0.18u'"
ps="'2*int((nf+2)/2) * (W/nf + 0.18u)'"
nrd="'0.18u / W'" nrs="'0.18u / W'"
sa=0 sb=0 sd=0
model=pfet_03v3
spiceprefix=X
}
C {devices/opin.sym} 420 -460 0 0 {name=p1 lab=Y}
C {devices/ipin.sym} 180 -460 0 0 {name=p2 lab=A}
C {devices/iopin.sym} 300 -660 2 0 {name=p3 lab=VDD}
C {devices/iopin.sym} 300 -280 0 0 {name=p4 lab=VSS}