-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathq1.sch
298 lines (291 loc) · 7.64 KB
/
q1.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
v {xschem version=3.1.0 file_version=1.2 }
G {}
K {}
V {}
S {}
E {}
L 4 -130 -260 240 -260 {}
T {only_toplevel=true attribute set,
will be netlisted only if toplevel cell} -10 -290 0 0 0.2 0.2 {layer=4}
N -20 -240 -20 -210 { lab=Vin}
N 80 -240 80 -210 {
lab=VDD}
N 550 -180 670 -180 {
lab=#net1}
N 600 -180 600 -120 {
lab=#net1}
N 510 -140 510 -110 {
lab=#net1}
N 510 -120 600 -120 {
lab=#net1}
N 510 -150 510 -130 {
lab=#net1}
N 510 -260 510 -210 {
lab=VDD}
N 710 -250 710 -210 {
lab=VDD}
N 710 -150 710 -20 {
lab=#net2}
N 810 -370 930 -370 {
lab=#net3}
N 860 -370 860 -310 {
lab=#net3}
N 770 -330 770 -300 {
lab=#net3}
N 770 -310 860 -310 {
lab=#net3}
N 770 -340 770 -320 {
lab=#net3}
N 770 -450 770 -400 {
lab=VDD}
N 970 -440 970 -400 {
lab=VDD}
N 970 -340 970 -180 {
lab=vout}
N 910 -180 970 -180 {
lab=vout}
N 910 -180 910 -90 {
lab=vout}
N 970 -240 1110 -240 {
lab=vout}
N 510 -250 710 -250 {
lab=VDD}
N 770 -440 970 -440 {
lab=VDD}
N 670 150 670 180 {
lab=GND}
N 910 -30 910 50 {
lab=GND}
N 710 -180 740 -180 {
lab=VDD}
N 740 -230 740 -180 {
lab=VDD}
N 710 -230 740 -230 {
lab=VDD}
N 480 -180 510 -180 {
lab=VDD}
N 480 -230 480 -180 {
lab=VDD}
N 480 -230 510 -230 {
lab=VDD}
N 740 -370 770 -370 {
lab=VDD}
N 740 -410 740 -370 {
lab=VDD}
N 740 -410 770 -410 {
lab=VDD}
N 970 -370 990 -370 {
lab=VDD}
N 990 -410 990 -370 {
lab=VDD}
N 970 -410 990 -410 {
lab=VDD}
N 910 -60 940 -60 {
lab=GND}
N 940 -60 940 -20 {
lab=GND}
N 910 -20 940 -20 {
lab=GND}
N 670 120 720 120 {
lab=GND}
N 720 120 720 160 {
lab=GND}
N 670 160 720 160 {
lab=GND}
N 410 120 630 120 {
lab=Vin}
N 710 -20 710 90 {
lab=#net2}
N 670 90 710 90 {
lab=#net2}
N 710 80 860 80 {
lab=#net2}
N 860 -60 860 80 {
lab=#net2}
N 860 -60 870 -60 {
lab=#net2}
C {devices/code.sym} -30 -20 0 0 {name=TT_MODELS
only_toplevel=true
format="tcleval( @value )"
value="
** opencircuitdesign pdks install
.lib $::SKYWATER_MODELS/sky130.lib.spice tt
"
spice_ignore=false}
C {devices/vsource.sym} -20 -180 0 0 {name=Vin value="0.688 AC 1" only_toplevel=true}
C {devices/gnd.sym} -20 -90 0 0 {name=l10 lab=GND}
C {devices/lab_pin.sym} -20 -240 0 1 {name=l11 sig_type=std_logic lab=Vin}
C {devices/vsource.sym} 80 -180 0 0 {name=V2 value=1.2 only_toplevel=true}
C {devices/gnd.sym} 80 -150 0 0 {name=l12 lab=GND}
C {devices/lab_pin.sym} 80 -240 2 0 {name=l13 sig_type=std_logic lab=VDD}
C {devices/code_shown.sym} 110 160 0 0 {name=NGSPICE
only_toplevel=true
value="
.control
tran 0.01m 10m
dc Vin 0 1.2 0.001
ac dec 20 1 100G
run
setplot dc1
plot Vout
setplot ac1
plot db(V(Vout)) 180*cph(V(Vout))/pi
setplot tran1
plot V(Vout) Vin
op
save @m.xm5.msky130_fd_pr__nfet_01v8[cgg]
save @m.xm5.msky130_fd_pr__nfet_01v8[cgd]
save @m.xm5.msky130_fd_pr__nfet_01v8[gds]
save @m.xm5.msky130_fd_pr__nfet_01v8[gm]
save @m.xm4.msky130_fd_pr__nfet_01v8[cgd]
save @m.xm4.msky130_fd_pr__nfet_01v8[cgg]
save @m.xm4.msky130_fd_pr__nfet_01v8[gds]
save @m.xm4.msky130_fd_pr__nfet_01v8[gm]
save @m.xm3.msky130_fd_pr__pfet_01v8[cgd]
save @m.xm3.msky130_fd_pr__pfet_01v8[cgg]
save @m.xm3.msky130_fd_pr__pfet_01v8[gds]
save @m.xm8.msky130_fd_pr__pfet_01v8[cgd]
save @m.xm8.msky130_fd_pr__pfet_01v8[cgg]
save @m.xm8.msky130_fd_pr__pfet_01v8[gds]
save all
op
write q1.raw
.endc
"}
C {sky130_fd_pr/nfet_01v8.sym} 650 120 0 0 {name=M4
L=0.18
W=2
nf=1
mult=1
ad="'int((nf+1)/2) * W/nf * 0.29'"
pd="'2*int((nf+1)/2) * (W/nf + 0.29)'"
as="'int((nf+2)/2) * W/nf * 0.29'"
ps="'2*int((nf+2)/2) * (W/nf + 0.29)'"
nrd="'0.29 / W'" nrs="'0.29 / W'"
sa=0 sb=0 sd=0
model=nfet_01v8
spiceprefix=X
}
C {sky130_fd_pr/nfet_01v8.sym} 890 -60 0 0 {name=M5
L=0.18
W=2
nf=1
mult=1
ad="'int((nf+1)/2) * W/nf * 0.29'"
pd="'2*int((nf+1)/2) * (W/nf + 0.29)'"
as="'int((nf+2)/2) * W/nf * 0.29'"
ps="'2*int((nf+2)/2) * (W/nf + 0.29)'"
nrd="'0.29 / W'" nrs="'0.29 / W'"
sa=0 sb=0 sd=0
model=nfet_01v8
spiceprefix=X
}
C {sky130_fd_pr/pfet_01v8.sym} 690 -180 0 0 {name=M8
L=0.18
W=2
nf=1
mult=1
ad="'int((nf+1)/2) * W/nf * 0.29'"
pd="'2*int((nf+1)/2) * (W/nf + 0.29)'"
as="'int((nf+2)/2) * W/nf * 0.29'"
ps="'2*int((nf+2)/2) * (W/nf + 0.29)'"
nrd="'0.29 / W'" nrs="'0.29 / W'"
sa=0 sb=0 sd=0
model=pfet_01v8
spiceprefix=X
}
C {sky130_fd_pr/pfet_01v8.sym} 530 -180 0 1 {name=M1
L=0.18
W=2
nf=1
mult=1
ad="'int((nf+1)/2) * W/nf * 0.29'"
pd="'2*int((nf+1)/2) * (W/nf + 0.29)'"
as="'int((nf+2)/2) * W/nf * 0.29'"
ps="'2*int((nf+2)/2) * (W/nf + 0.29)'"
nrd="'0.29 / W'" nrs="'0.29 / W'"
sa=0 sb=0 sd=0
model=pfet_01v8
spiceprefix=X
}
C {sky130_fd_pr/pfet_01v8.sym} 950 -370 0 0 {name=M3
L=0.18
W=2
nf=1
mult=1
ad="'int((nf+1)/2) * W/nf * 0.29'"
pd="'2*int((nf+1)/2) * (W/nf + 0.29)'"
as="'int((nf+2)/2) * W/nf * 0.29'"
ps="'2*int((nf+2)/2) * (W/nf + 0.29)'"
nrd="'0.29 / W'" nrs="'0.29 / W'"
sa=0 sb=0 sd=0
model=pfet_01v8
spiceprefix=X
}
C {sky130_fd_pr/pfet_01v8.sym} 790 -370 0 1 {name=M6
L=0.18
W=2
nf=1
mult=1
ad="'int((nf+1)/2) * W/nf * 0.29'"
pd="'2*int((nf+1)/2) * (W/nf + 0.29)'"
as="'int((nf+2)/2) * W/nf * 0.29'"
ps="'2*int((nf+2)/2) * (W/nf + 0.29)'"
nrd="'0.29 / W'" nrs="'0.29 / W'"
sa=0 sb=0 sd=0
model=pfet_01v8
spiceprefix=X
}
C {devices/isource.sym} 510 -80 0 0 {name=I1 value=10u only_toplevel=true}
C {devices/isource.sym} 770 -280 0 0 {name=I2 value=10u only_toplevel=true}
C {devices/gnd.sym} 510 -50 0 0 {name=l4 lab=GND}
C {devices/gnd.sym} 670 180 0 0 {name=l5 lab=GND}
C {devices/gnd.sym} 910 50 0 0 {name=l6 lab=GND}
C {devices/gnd.sym} 770 -250 0 0 {name=l7 lab=GND}
C {devices/capa.sym} 1110 -210 0 0 {name=C1
m=1
value=10p
footprint=1206
device="ceramic capacitor"}
C {devices/gnd.sym} 1110 -180 0 0 {name=l8 lab=GND}
C {devices/lab_pin.sym} 510 -260 2 0 {name=l9 sig_type=std_logic lab=VDD}
C {devices/lab_pin.sym} 770 -450 2 0 {name=l14 sig_type=std_logic lab=VDD}
C {devices/lab_pin.sym} 970 -290 2 0 {name=l15 sig_type=std_logic lab=vout}
C {devices/lab_pin.sym} 420 120 2 0 {name=l1 sig_type=std_logic lab=Vin}
C {devices/vsource.sym} -20 -120 0 0 {name=Vin1 value="0 sin(0 0.1 1k 0 0 0)" only_toplevel=true}
C {devices/ngspice_get_value.sym} 740 230 0 0 {name=r37 node="@m.xm4.msky130_fd_pr__nfet_01v8[gds]"
descr="gds="}
C {devices/ngspice_get_value.sym} 740 270 0 0 {name=r39 node="@m.xm4.msky130_fd_pr__nfet_01v8[cgg]"
descr="cgg="}
C {devices/ngspice_get_value.sym} 660 270 0 0 {name=r40 node="@m.xm4.msky130_fd_pr__nfet_01v8[cgd]"
descr="cgd="}
C {devices/ngspice_get_value.sym} 810 -130 0 0 {name=r1 node=@m.xm8.msky130_fd_pr__pfet_01v8[gds]
descr="gds="}
C {devices/ngspice_get_value.sym} 810 -90 0 0 {name=r2 node="@m.xm8.msky130_fd_pr__pfet_01v8[cgg]"
descr="cgg="}
C {devices/ngspice_get_value.sym} 730 -90 0 0 {name=r3 node="@m.xm8.msky130_fd_pr__pfet_01v8[cgd]"
descr="cgd="}
C {devices/ngspice_get_value.sym} 1140 -400 0 0 {name=r4 node=@m.xm3.msky130_fd_pr__pfet_01v8[gds]
descr="gds="}
C {devices/ngspice_get_value.sym} 1140 -360 0 0 {name=r5 node="@m.xm3.msky130_fd_pr__pfet_01v8[cgg]"
descr="cgg="}
C {devices/ngspice_get_value.sym} 1060 -360 0 0 {name=r6 node="@m.xm3.msky130_fd_pr__pfet_01v8[cgd]"
descr="cgd="}
C {devices/ngspice_get_value.sym} 1040 -40 0 0 {name=r7 node=@m.xm5.msky130_fd_pr__nfet_01v8[gds]
descr="gds="}
C {devices/ngspice_get_value.sym} 1040 0 0 0 {name=r8 node="@m.xm5.msky130_fd_pr__nfet_01v8[cgg]"
descr="cgg="}
C {devices/ngspice_get_value.sym} 960 0 0 0 {name=r9 node="@m.xm5.msky130_fd_pr__nfet_01v8[cgd]"
descr="cgd="}
C {devices/launcher.sym} 980 220 0 0 {name=h1
descr=Backannotate
tclcommand="ngspice::annotate"}
C {devices/spice_probe.sym} 760 80 0 0 {name=p9 attrs=""
voltage=0.6855}
C {devices/launcher.sym} 990 280 0 0 {name=h2
descr="View Raw file"
tclcommand="textwindow $netlist_dir/q1.raw"}
C {devices/ngspice_get_value.sym} 970 -50 0 0 {name=r10 node=@m.xm5.msky130_fd_pr__nfet_01v8[gm]
descr="gm="}
C {devices/ngspice_get_value.sym} 660 230 0 0 {name=r11 node="@m.xm4.msky130_fd_pr__nfet_01v8[gm]"
descr="gm="}