-
Notifications
You must be signed in to change notification settings - Fork 0
/
opamp.sch
278 lines (277 loc) · 9.78 KB
/
opamp.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
v {xschem version=3.0.0 file_version=1.2 }
G {}
K {}
V {}
S {}
E {}
N 1290 -35 1290 40 { lab=vss}
N 1570 -35 1570 40 { lab=vss}
N 1290 40 1357.5 40 { lab=vss}
N 1357.5 40 1570 40 { lab=vss}
N 1370 -135 1370 -65 { lab=vbn}
N 1210 -65 1290 -65 { lab=vss}
N 1210 -65 1210 40 { lab=vss}
N 1210 40 1290 40 { lab=vss}
N 1570 -65 1637.5 -65 { lab=vss}
N 1637.5 -65 1637.5 40 { lab=vss}
N 1570 -240 1570 -95 { lab=voe1}
N 1290 -360 1290 -300 { lab=vp}
N 1290 -360 1570 -360 { lab=vp}
N 1570 -360 1570 -300 { lab=vp}
N 1287.5 -270 1350 -270 { lab=vp}
N 1350 -360 1350 -270 { lab=vp}
N 1507.5 -360 1507.5 -270 { lab=vp}
N 1430 -410 1430 -360 { lab=vp}
N 1890 -472.5 1890 -470 { lab=vdd}
N 1890 -500 1890 -472.5 { lab=vdd}
N 1430 -500 1890 -500 { lab=vdd}
N 1430 -500 1430 -470 { lab=vdd}
N 1887.5 -440 1967.5 -440 { lab=vdd}
N 1967.5 -500 1967.5 -440 { lab=vdd}
N 1890 -500 1967.5 -500 { lab=vdd}
N 1050 -500 1050 -470 { lab=vdd}
N 1050 -500 1430 -500 { lab=vdd}
N 1050 -360 1152.5 -360 { lab=iref}
N 1152.5 -440 1152.5 -360 { lab=iref}
N 1767.5 -440 1850 -440 { lab=iref}
N 970 -440 1052.5 -440 { lab=vdd}
N 970 -500 970 -440 { lab=vdd}
N 970 -500 1050 -500 { lab=vdd}
N 1430 -440 1510 -440 { lab=vdd}
N 1510 -500 1510 -440 { lab=vdd}
N 1370 -137.5 1370 -135 { lab=vbn}
N 1507.5 -270 1572.5 -270 { lab=vp}
N 1290 -240 1290 -95 { lab=vbn}
N 1290 -137.5 1370 -137.5 { lab=vbn}
N 1090 -440 1152.5 -440 { lab=iref}
N 1275 -440 1390 -440 { lab=iref}
N 1152.5 -440 1275 -440 { lab=iref}
N 1330 -65 1530 -65 { lab=vbn}
N 1050 -410 1050 -360 { lab=iref}
N 1180 -270 1250 -270 { lab=vin_n}
N 1750 -190 1800 -190 { lab=#net1}
N 1720 -250 1720 -230 { lab=vdd}
N 1720 -190 1720 -110 { lab=vss}
N 1570 -190 1690 -190 { lab=voe1}
N 1860 -190 1890 -190 { lab=vout}
N 950 -500 970 -500 { lab=vdd}
N 950 40 1210 40 { lab=vss}
N 1610 -270 1670 -270 { lab=vin_p}
N 950 -360 1050 -360 { lab=iref}
N 1570 40 1890 40 { lab=vss}
N 1890 40 1980 40 { lab=vss}
N 1980 -60 1980 40 { lab=vss}
N 1890 -60 1980 -60 { lab=vss}
N 1670 -60 1850 -60 { lab=voe1}
N 1670 -190 1670 -60 { lab=voe1}
N 1890 -190 1890 -90 { lab=vout}
N 1890 -410 1890 -190 { lab=vout}
N 1890 -240 2030 -240 { lab=vout}
N 1890 -30 1890 40 { lab=vss}
C {sky130_fd_pr/nfet_01v8.sym} 1310 -65 0 1 {name=M3
L=\{l_mirror_2\}
W=\{w_mirror_2\}
ad="'W * 0.29'" pd="'2 * (W + 0.29)'"
as="'W * 0.29'" ps="'2 * (W + 0.29)'"
nrd="'0.29 / W'" nrs="'0.29 / W'"
sa=0 sb=0 sd=0
nf=1 mult=\{m_mirror_2\}
model=nfet_01v8
spiceprefix=X
}
C {sky130_fd_pr/nfet_01v8.sym} 1550 -65 0 0 {name=M4
L=\{l_mirror_2\}
W=\{w_mirror_2\}
ad="'W * 0.29'" pd="'2 * (W + 0.29)'"
as="'W * 0.29'" ps="'2 * (W + 0.29)'"
nrd="'0.29 / W'" nrs="'0.29 / W'"
sa=0 sb=0 sd=0
nf=1 mult=\{m_mirror_2\}
model=nfet_01v8
spiceprefix=X
}
C {sky130_fd_pr/pfet_01v8.sym} 1410 -440 0 0 {name=M5
L=\{l_mirror_1\}
W=\{w_mirror_1\}
ad="'W * 0.29'" pd="'2 * (W + 0.29)'"
as="'W * 0.29'" ps="'2 * (W + 0.29)'"
nrd="'0.29 / W'" nrs="'0.29 / W'"
sa=0 sb=0 sd=0
nf=1 mult=12*10
model=pfet_01v8
spiceprefix=X
}
C {sky130_fd_pr/pfet_01v8.sym} 1870 -440 0 0 {name=M7
L=\{l_mirror_1\}
W=\{w_mirror_1\}
ad="'W * 0.29'" pd="'2 * (W + 0.29)'"
as="'W * 0.29'" ps="'2 * (W + 0.29)'"
nrd="'0.29 / W'" nrs="'0.29 / W'"
sa=0 sb=0 sd=0
nf=1 mult=18*10
model=pfet_01v8
spiceprefix=X
}
C {sky130_fd_pr/pfet_01v8.sym} 1070 -440 0 1 {name=M8
L=\{l_mirror_1\}
W=\{w_mirror_1\}
ad="'W * 0.29'" pd="'2 * (W + 0.29)'"
as="'W * 0.29'" ps="'2 * (W + 0.29)'"
nrd="'0.29 / W'" nrs="'0.29 / W'"
sa=0 sb=0 sd=0
nf=1 mult=\{m_mirror_1\}
model=pfet_01v8
spiceprefix=X
}
C {lab_wire.sym} 1272.5 -500 0 0 {name=l1 sig_type=std_logic lab=vdd
}
C {lab_wire.sym} 1275 -440 0 0 {name=l2 sig_type=std_logic lab=iref
}
C {lab_wire.sym} 1415 -360 0 0 {name=l4 sig_type=std_logic lab=vp}
C {lab_pin.sym} 1767.5 -440 0 0 {name=l5 sig_type=std_logic lab=iref}
C {lab_wire.sym} 1442.5 40 0 0 {name=l7 sig_type=std_logic lab=vss
}
C {lab_wire.sym} 1977.5 -240 0 0 {name=l8 sig_type=std_logic lab=vout
}
C {lab_wire.sym} 1450 -65 0 0 {name=l6 sig_type=std_logic lab=vbn}
C {sky130_fd_pr/nfet_01v8.sym} 1720 -210 1 0 {name=M9
L=0.15
W=20
ad="'W * 0.29'" pd="'2 * (W + 0.29)'"
as="'W * 0.29'" ps="'2 * (W + 0.29)'"
nrd="'0.29 / W'" nrs="'0.29 / W'"
sa=0 sb=0 sd=0
nf=1 mult=1
model=nfet_01v8
spiceprefix=X
}
C {lab_pin.sym} 1720 -250 2 0 {name=l9 sig_type=std_logic lab=vdd
}
C {lab_pin.sym} 1720 -110 2 0 {name=l10 sig_type=std_logic lab=vss
}
C {iopin.sym} 950 -500 2 0 {name=p1 lab=vdd}
C {iopin.sym} 950 40 2 0 {name=p2 lab=vss}
C {ipin.sym} 1180 -270 0 0 {name=p3 lab=vin_n}
C {ipin.sym} 1670 -270 2 0 {name=p4 lab=vin_p}
C {ipin.sym} 950 -360 0 0 {name=p5 lab=iref}
C {sky130_fd_pr/nfet_01v8.sym} 1870 -60 0 0 {name=M6
L=0.3
W=39.46
ad="'W * 0.29'" pd="'2 * (W + 0.29)'"
as="'W * 0.29'" ps="'2 * (W + 0.29)'"
nrd="'0.29 / W'" nrs="'0.29 / W'"
sa=0 sb=0 sd=0
nf=1 mult=17
model=nfet_01v8
spiceprefix=X
}
C {lab_wire.sym} 1630 -190 0 0 {name=l3 sig_type=std_logic lab=voe1}
C {opin.sym} 2030 -240 0 0 {name=p6 lab=vout}
C {ngspice_get_value.sym} 1290 -330 0 0 {name=r2 node=i(@M.X1.XM1.msky130_fd_pr__pfet_01v8_lvt[id])
descr="I= "}
C {ngspice_probe.sym} 1290 -180 0 0 {name=r3}
C {ngspice_probe.sym} 1350 -360 0 0 {name=r4}
C {ngspice_probe.sym} 1570 -160 0 0 {name=r5}
C {ngspice_probe.sym} 1780 -60 0 0 {name=r6}
C {ngspice_get_value.sym} 1290 -120 0 0 {name=r8 node=i(@M.X1.XM3.msky130_fd_pr__nfet_01v8[id])
descr="I= "}
C {ngspice_get_value.sym} 1570 -120 0 0 {name=r9 node=i(@M.X1.XM4.msky130_fd_pr__nfet_01v8[id])
descr="I= "}
C {ngspice_get_value.sym} 1890 -120 0 0 {name=r10 node=i(@M.X1.XM6.msky130_fd_pr__nfet_01v8[id])
descr="I= "}
C {ngspice_get_value.sym} 1570 -330 0 0 {name=r11 node=i(@M.X1.XM2.msky130_fd_pr__pfet_01v8_lvt[id])
descr="I= "}
C {ngspice_get_value.sym} 1890 -370 0 0 {name=r12 node=i(@M.X1.XM7.msky130_fd_pr__pfet_01v8[id])
descr="I= "}
C {ngspice_get_value.sym} 1430 -380 0 0 {name=r13 node=i(@M.X1.XM5.msky130_fd_pr__pfet_01v8[id])
descr="I= "}
C {ngspice_get_value.sym} 1050 -380 0 0 {name=r14 node=i(@M.X1.XM8.msky130_fd_pr__pfet_01v8[id])
descr="I= "}
C {ngspice_get_value.sym} 1290 -300 0 0 {name=r15 [email protected]_fd_pr__pfet_01v8_lvt[gm]
descr="gm= "}
C {launcher.sym} 1000 -170 0 0 {name=h1
descr=Annotate
tclcommand="ngspice::annotate"}
C {ngspice_get_value.sym} 1570 -300 0 0 {name=r16 [email protected]_fd_pr__pfet_01v8_lvt[gm]
descr="gm= "}
C {ngspice_get_value.sym} 1290 -90 0 0 {name=r17 [email protected]_fd_pr__nfet_01v8[gm]
descr="gm= "}
C {ngspice_get_value.sym} 1570 -90 0 0 {name=r18 [email protected]_fd_pr__nfet_01v8[gm]
descr="gm= "}
C {ngspice_get_value.sym} 1890 -90 0 0 {name=r19 [email protected]_fd_pr__nfet_01v8[gm]
descr="gm= "}
C {ngspice_get_value.sym} 1890 -340 0 0 {name=r20 [email protected]_fd_pr__pfet_01v8[gm]
descr="gm= "}
C {ngspice_get_value.sym} 1510 -440 0 0 {name=r21 [email protected]_fd_pr__pfet_01v8[gm]
descr="gm= "}
C {ngspice_get_value.sym} 1090 -440 0 0 {name=r22 [email protected]_fd_pr__pfet_01v8[gm]
descr="gm= "}
C {ngspice_probe.sym} 1750 -190 0 0 {name=r25}
C {sky130_fd_pr/pfet_01v8_lvt.sym} 1270 -270 0 0 {name=M1
L=\{l_par\}
W=\{w_par\}
nf=1
mult=\{m_par\}
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_lvt
spiceprefix=X}
C {sky130_fd_pr/pfet_01v8_lvt.sym} 1590 -270 0 1 {
name=M2
L=\{l_par\}
W=\{w_par\}
nf=1
mult=\{m_par\}
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_lvt
spiceprefix=X}
C {capa.sym} 1830 -190 3 0 {name=C1
m=1
value=\{cc\}
footprint=1206
device="ceramic capacitor"}
C {ngspice_get_value.sym} 1090 -470 0 0 {name=r71 node=v(@M.X1.XM8.msky130_fd_pr__pfet_01v8[vgs])
descr="vsg= "}
C {ngspice_get_value.sym} 1520 -470 0 0 {name=r1 node=v(@M.X1.XM5.msky130_fd_pr__pfet_01v8[vgs])
descr="vsg= "}
C {ngspice_get_value.sym} 1810 -460 0 0 {name=r7 node=v(@M.X1.XM7.msky130_fd_pr__pfet_01v8[vgs])
descr="vsg= "}
C {ngspice_get_value.sym} 1570 -460 0 0 {name=r23 node=v(@M.X1.XM5.msky130_fd_pr__pfet_01v8[vdsat])
descr="vdsat= "}
C {ngspice_get_value.sym} 1210 -290 0 0 {name=r81 node=v(@M.X1.XM1.msky130_fd_pr__pfet_01v8_lvt[vth])
descr="vth= "}
C {ngspice_get_value.sym} 1220 -330 0 0 {name=r24 node=v(@M.X1.XM1.msky130_fd_pr__pfet_01v8_lvt[vgs])
descr="vsg= "}
C {ngspice_get_expr.sym} 1140 -300 0 0 {name=r26 node="[format %.4g [expr 1 / [ngspice::get_node \{@M.X1.XM1.msky130_fd_pr__pfet_01v8_lvt[gds]\}] ] ]"
descr="ro="}
C {ngspice_get_value.sym} 1200 -160 0 0 {name=r28 [email protected]_fd_pr__nfet_01v8[gds]
descr="gds= "}
C {ngspice_get_value.sym} 1790 -90 0 0 {name=r27 [email protected]_fd_pr__nfet_01v8[gds]
descr="gds= "}
C {ngspice_get_value.sym} 1790 -400 0 0 {name=r29 [email protected]_fd_pr__pfet_01v8[gds]
descr="gds= "}
C {ngspice_get_expr.sym} 1200 -110 0 0 {name=r30 node="[format %.4g [expr 1 / [ngspice::get_node \{@M.X1.XM3.msky130_fd_pr__nfet_01v8[gds]\}] ] ]"
descr="ro="}
C {ngspice_get_expr.sym} 1940 -80 0 0 {name=r31 node="[format %.4g [expr 1 / [ngspice::get_node \{@M.X1.XM6.msky130_fd_pr__nfet_01v8[gds]\}] ] ]"
descr="ro="}
C {ngspice_get_expr.sym} 1790 -360 0 0 {name=r32 node="[format %.4g [expr 1 / [ngspice::get_node \{@M.X1.XM7.msky130_fd_pr__pfet_01v8[gds]\}] ] ]"
descr="ro="}
C {ngspice_get_value.sym} 1740 -460 0 0 {name=r33 node=v(@M.X1.XM7.msky130_fd_pr__pfet_01v8[vdsat])
descr="vdsat= "}
C {ngspice_get_value.sym} 1830 -120 0 0 {name=r34 node=v(@M.X1.XM6.msky130_fd_pr__nfet_01v8[vdsat])
descr="vdsat= "}
C {ngspice_get_value.sym} 1590 -430 0 0 {name=r35 node=v(@M.X1.XM5.msky130_fd_pr__pfet_01v8[vth])
descr="vth= "}
C {ngspice_get_value.sym} 1830 -10 0 0 {name=r36 [email protected]_fd_pr__nfet_01v8[cgs]
descr="cgs= "}
C {ngspice_get_value.sym} 1630 -310 0 0 {name=r37 [email protected]_fd_pr__pfet_01v8[cgg]
descr="cgg= "}