summaryrefslogtreecommitdiff
path: root/lib/analoglib2.lps
blob: b2c8f7fdecb3cff2be5ae2a1983975373d9895ae (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
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
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
%! PostScript set of library objects for XCircuit
%  Version: 3.2
%  Library name is: analoglib2
%  Author: R. Timothy Edwards <tim@khachaturian>
%

% Depend analoglib2::Transformer analog::inductor
% Depend analoglib2::Vsource analog::source
% Depend analoglib2::Isource generic::arrowhead analog::source
% Depend analoglib2::ACsource analoglib2::sinusoid analog::source
% Depend analoglib2::NPN generic::arrowhead
% Depend analoglib2::PNP generic::arrowhead

% XCircuitLib library objects
/analoglib2::Capacitor {
<< /value (1.0) /units (p) /@index (?) /p_jst 20 /p_rot 0 /pkg (AXIAL_400) >> begingate
1 1.00 0 -64 0 -6 2 polygon
1 1.00 0 64 0 6 2 polygon
1 1.00 -32 6 32 6 2 polygon
1 1.00 -32 -6 32 -6 2 polygon
1.000 0.000 0.000 scb
(1) {/Times-Roman cf} 2 9 0 1.00 0 64 pinlabel
(2) {/Times-Roman cf} 2 13 0 1.00 0 -64 pinlabel
0.180 0.545 0.341 scb
mark units value ( %p1 %p2 ) @index (spice:C) {/Times-Roman cf} ctmk 4 0 1.00 -208 -160 
infolabel
(sim:c %p1 %p2) {/Times-Roman cf} 2 4 0 1.00 -208 -208 infolabel
sce
mark (F) units {hS} value {/Times-Roman cf} ctmk p_jst p_rot 1.00 48 0 label
0.180 0.545 0.341 scb
mark @index (pcb:C) {/Times-Roman cf} ctmk 20 0 1.00 -208 -256 infolabel
endgate
} def

1.00 270 << /p_jst 17 /p_rot 90 >> /analoglib2::Capacitor libinst

/analoglib2::Polarized {
<< /value (1.0) /units (p) /@index (?) /p_jst 20 /p_rot 0 /pkg (AXIAL_400) >> begingate
1 1.00 0 -64 0 -6 2 polygon
1 1.00 0 64 0 6 2 polygon
1 1.00 -32 6 32 6 2 polygon
1 1.00 0 -80 74 66.00 114.00 xcarc
1.000 0.000 0.000 scb
(1) {/Times-Roman cf} 2 9 0 1.00 0 64 pinlabel
(2) {/Times-Roman cf} 2 13 0 1.00 0 -64 pinlabel
0.180 0.545 0.341 scb
mark units value ( %p1 %p2 ) @index (spice:C) {/Times-Roman cf} ctmk 4 0 1.00 -208 -160 
infolabel
(sim:e %p1 %p2) {/Times-Roman cf} 2 4 0 1.00 -208 -208 infolabel
sce
mark (F) units {hS} value {/Times-Roman cf} ctmk p_jst p_rot 1.00 48 0 label
0.180 0.545 0.341 scb
mark @index (pcb:C) {/Times-Roman cf} ctmk 20 0 1.00 -208 -256 infolabel
endgate
} def

1.00 270 << /p_jst 17 /p_rot 90 >> /analoglib2::Polarized libinst

/analoglib2::Resistor {
<< /value (1.0) /units (k) /@index (?) /p_jst 20 /p_rot 0 /pkg (AXIAL_400) >> begingate
1 1.00 0 64 0 36 2 polygon
1 1.00 0 -64 0 -36 2 polygon
1 1.00 0 -36 14 -30 -14 -18 14 -6 -14 6 14 18 -14 30 0 36 8 polygon
1.000 0.000 0.000 scb
(1) {/Times-Roman cf} 2 9 0 1.00 0 64 pinlabel
(2) {/Times-Roman cf} 2 13 0 1.00 0 -64 pinlabel
0.180 0.545 0.341 scb
mark units value ( %p1 %p2 ) @index (spice:R) {/Times-Roman cf} ctmk 4 0 1.00 -208 -160 
infolabel
(sim:r %p1 %p2) {/Times-Roman cf} 2 4 0 1.00 -208 -208 infolabel
sce
mark (W) {/Symbol cf} units {hS} value {/Times-Roman cf} ctmk p_jst p_rot 1.00 32 0 label
0.180 0.545 0.341 scb
mark @index (pcb:R) {/Times-Roman cf} ctmk 20 0 1.00 -208 -256 infolabel
endgate
} def

1.00 270 << /p_jst 17 /p_rot 90 >> /analoglib2::Resistor libinst

/analoglib2::Inductor {
<< /value (1.0) /units (m) /@index (?) /p_jst 20 /p_rot 0 >> begingate
1 1.00 20 -28 20 -44 0 -48 0 -24 spline
1 1.00 -20 -20 -20 -32 0 -28 0 -24 spline
1 1.00 20 32 20 16 0 12 0 36 spline
1 1.00 20 12 20 -4 0 -8 0 16 spline
1 1.00 20 -8 20 -24 0 -28 0 -4 spline
1 1.00 -20 20 -20 8 0 12 0 16 spline
1 1.00 -20 0 -20 -12 0 -8 0 -4 spline
1 1.00 0 -48 0 -64 2 polygon
1 1.00 0 36 0 48 2 polygon
1.000 0.000 0.000 scb
(1) {/Times-Roman cf} 2 9 0 1.00 0 48 pinlabel
(2) {/Times-Roman cf} 2 13 0 1.00 0 -64 pinlabel
0.180 0.545 0.341 scb
mark units value ( %p1 %p2 ) @index (spice:L) {/Times-Roman cf} ctmk 4 0 1.00 -208 -160 
infolabel
(sim:l %p1 %p2) {/Times-Roman cf} 2 4 0 1.00 -208 -208 infolabel
sce
mark (H) units {hS} value {/Times-Roman cf} ctmk p_jst p_rot 1.00 32 0 label
0.180 0.545 0.341 scb
mark @index (pcb:L) {/Times-Roman cf} ctmk 20 0 1.00 -208 -256 infolabel
endgate
} def

1.00 270 << /p_jst 17 /p_rot 90 >> /analoglib2::Inductor libinst

/analog::inductor {
begingate
1 1.00 20 -28 20 -44 0 -48 0 -24 spline
1 1.00 -20 -20 -20 -32 0 -28 0 -24 spline
1 1.00 20 32 20 16 0 12 0 36 spline
1 1.00 20 12 20 -4 0 -8 0 16 spline
1 1.00 20 -8 20 -24 0 -28 0 -4 spline
1 1.00 -20 20 -20 8 0 12 0 16 spline
1 1.00 -20 0 -20 -12 0 -8 0 -4 spline
1 1.00 0 -48 0 -64 2 polygon
1 1.00 0 36 0 48 2 polygon
1.000 0.000 0.000 scb
(l.1) {/Times-Roman cf} 2 9 0 1.00 0 48 pinlabel
(l.2) {/Times-Roman cf} 2 13 0 1.00 0 -64 pinlabel
0.180 0.545 0.341 scb
(spice:L%i %pl.1 %pl.2 1.0U) {/Times-Roman cf} 2 0 0 1.00 -208 -160 infolabel
(sim:l %pl.1 %pl.2) {/Times-Roman cf} 2 0 0 1.00 -208 -208 infolabel
endgate
} def

/analoglib2::Transformer {
<< /@index (?) >> begingate
1.00 0 -48 0 analog::inductor
1 1.00 -16 48 -16 -64 2 polygon
1 1.00 0 48 0 -64 2 polygon
1.00 180 32 -16 analog::inductor
1.000 0.000 0.000 scb
(1) {/Times-Roman cf} 2 25 0 1.00 -48 48 pinlabel
(2) {/Times-Roman cf} 2 29 0 1.00 -48 -64 pinlabel
(3) {/Times-Roman cf} 2 25 0 1.00 32 48 pinlabel
(4) {/Times-Roman cf} 2 29 0 1.00 32 -64 pinlabel
0.180 0.545 0.341 scb
mark @index (pcb:T) {/Times-Roman cf} ctmk 20 0 1.00 -96 -160 infolabel
endgate
} def

/analog::source {
% hidden
begingate
1 1.00 0 0 32 0.00 360.00 xcarc
1 1.00 0 32 0 64 2 polygon
1 1.00 0 -32 0 -64 2 polygon
endgate
} def

/analoglib2::Vsource {
<< /value (5) /p_jst 20 /p_rot 0 >> begingate
1.00 0 0 0 analog::source
(+) {/Symbol cf} 2 5 p_rot 1.00 0 14 label
(-) {/Symbol cf} 2 5 p_rot 1.00 0 -22 label
1.000 0.000 0.000 scb
(v.p) {/Times-Roman cf} 2 9 0 1.00 0 64 pinlabel
(v.m) {/Times-Roman cf} 2 13 0 1.00 0 -64 pinlabel
0.180 0.545 0.341 scb
mark value (spice:V%i %pv.p %pv.m ) {/Times-Roman cf} ctmk 20 0 1.00 -96 -160 
infolabel
sce
mark (V) {hS} value {/Times-Roman cf} ctmk p_jst p_rot 1.00 48 0 label
endgate
} def

1.00 270 << /p_jst 17 /p_rot 90 >> /analoglib2::Vsource libinst

/generic::arrowhead {
% trivial
begingate
8 -28 beginpath
3 -18 3 -15 0 0 curveto
-3 -15 -3 -18 -8 -28 curveto
-2 -26 2 -26 8 -28 curveto
249 1.00 endpath
endgate
} def

/analoglib2::Isource {
<< /value (1) /units (m) /p_jst 20 /p_rot 0 >> begingate
1.00 0 0 0 analog::source
1 0.75 0 20 0 -8 2 polygon
0.80 180 0 -20 generic::arrowhead
1.000 0.000 0.000 scb
(i.p) {/Times-Roman cf} 2 9 0 1.00 0 64 pinlabel
(i.m) {/Times-Roman cf} 2 13 0 1.00 0 -64 pinlabel
0.180 0.545 0.341 scb
mark units value (spice:I%i %pi.p %pi.m ) {/Times-Roman cf} ctmk 20 0 1.00 -96 -160 
infolabel
sce
mark (A) units {hS} value {/Times-Roman cf} ctmk p_jst p_rot 1.00 48 0 label
endgate
} def

1.00 270 << /p_jst 17 /p_rot 90 >> /analoglib2::Isource libinst

/analoglib2::sinusoid {
% hidden
begingate
1 0.80 0 -48 0 48 -16 0 16 0 spline
endgate
} def

/analoglib2::ACsource {
<< /value (5) /offset (0) /freq (1) /units (k) /p_jst 20 /p_rot 0 >> begingate
1.00 0 0 0 analog::source
1.000 0.000 0.000 scb
(s.p) {/Times-Roman cf} 2 9 0 1.00 0 64 pinlabel
(s.m) {/Times-Roman cf} 2 13 0 1.00 0 -64 pinlabel
0.180 0.545 0.341 scb
mark (\)) units freq ( ) value ( ) offset (spice:V%i %ps.p %ps.m SIN\()
{/Times-Roman cf} ctmk 20 0 1.00 -336 -160 infolabel
sce
mark (Hz) units {hS} freq {CR} (offset) {ss} (V) {hS} offset {CR} (p-p)
{ss} (V) {hS} value {/Times-Roman cf} ctmk p_jst p_rot 1.00 48 0 label
1.00 p_rot 0 0 analoglib2::sinusoid
endgate
} def

1.00 270 << /p_jst 17 /p_rot 90 >> /analoglib2::ACsource libinst

/analoglib2::nMOS {
<< /width (3) /length (2) /model (nmos) /@index (?) /p_jst 20 /p_rot 0 >> begingate
1 1.00 0 -64 0 -28 -32 -28 -32 28 0 28 0 64 6 polygon
1 1.00 -44 -28 -44 28 2 polygon
1 1.00 -44 0 -64 0 2 polygon
1.000 0.000 0.000 scb
(G) {/Times-Roman cf} 2 7 0 1.00 -64 0 pinlabel
(S) {/Times-Roman cf} 2 13 0 1.00 0 -64 pinlabel
(D) {/Times-Roman cf} 2 9 0 1.00 0 64 pinlabel
0.180 0.545 0.341 scb
mark length ( L=) width ( W=) model ( %pD %pG %pS GND ) @index (spice:M) {/Times-Roman cf} 
ctmk 4 0 1.00 -244 -139 infolabel
mark ( %x %y) width ( ) length (sim:n %pG %pD %pS ) {/Times-Roman cf} ctmk 4 0 1.00 
-244 -187 infolabel
sce
mark length (=) {Tf} (L) {hS} {CR} width (=) {Ts} (W) {/Times-Roman cf} ctmk p_jst
p_rot 1.00 16 0 label
endgate
} def

1.00 270 << /p_jst 17 /p_rot 90 >> /analoglib2::nMOS libinst

/analoglib2::pMOS {
<< /width (3) /length (2) /model (pmos) /@index (?) /p_jst 20 /p_rot 0 >> begingate
1 1.00 -44 -28 -44 28 2 polygon
1 1.00 -60 0 -64 0 2 polygon
1 1.00 0 -64 0 -28 -32 -28 -32 28 0 28 0 64 6 polygon
1 1.00 -52 0 8 0.00 360.00 xcarc
1.000 0.000 0.000 scb
(S) {/Times-Roman cf} 2 9 0 1.00 0 64 pinlabel
(D) {/Times-Roman cf} 2 13 0 1.00 0 -64 pinlabel
(G) {/Times-Roman cf} 2 7 0 1.00 -64 0 pinlabel
0.180 0.545 0.341 scb
mark length ( L=) width ( W=) model ( %pD %pG %pS Vdd ) @index (spice:M) {/Times-Roman cf} 
ctmk 4 0 1.00 -196 -139 infolabel
mark ( %x %y) width ( ) length (sim:p %pG %pD %pS ) {/Times-Roman cf} ctmk 4 0 1.00 
-196 -187 infolabel
sce
mark length (=) {Tf} (L) {hS} {CR} width (=) {Ts} (W) {/Times-Roman cf} ctmk p_jst
p_rot 1.00 16 0 label
endgate
} def

1.00 270 << /p_jst 17 /p_rot 90 >> /analoglib2::pMOS libinst

/analoglib2::nMOS4 {
<< /width (3) /length (2) /model (nmos) /@index (?) /p_jst 20 /p_rot 0 >> begingate
1 1.00 0 -64 0 -28 -32 -28 -32 28 0 28 0 64 6 polygon
1 1.00 -44 -28 -44 28 2 polygon
1 1.00 -44 0 -64 0 2 polygon
1.000 0.000 0.000 scb
(G) {/Times-Roman cf} 2 7 0 1.00 -64 0 pinlabel
(S) {/Times-Roman cf} 2 13 0 1.00 0 -64 pinlabel
(D) {/Times-Roman cf} 2 9 0 1.00 0 64 pinlabel
(B) {/Times-Roman cf} 2 4 0 1.00 32 0 pinlabel
0.180 0.545 0.341 scb
mark length ( L=) width ( W=) model ( %pD %pG %pS %pB ) @index (spice:M) {/Times-Roman cf} 
ctmk 4 0 1.00 -244 -139 infolabel
mark ( %x %y) width ( ) length (sim:n %pG %pD %pS ) {/Times-Roman cf} ctmk 4 0 1.00 
-244 -187 infolabel
sce
mark length (/) width (W/L=) {/Times-Roman cf} ctmk p_jst p_rot 1.00 16 32 label
1 1.00 -32 0 32 0 2 polygon
endgate
} def

1.00 270 << /p_jst 17 /p_rot 90 >> /analoglib2::nMOS4 libinst

/analoglib2::pMOS4 {
<< /width (3) /length (2) /model (pmos) /@index (?) /p_jst 20 /p_rot 0 >> begingate
1 1.00 -44 -28 -44 28 2 polygon
1 1.00 -60 0 -64 0 2 polygon
1 1.00 0 -64 0 -28 -32 -28 -32 28 0 28 0 64 6 polygon
1 1.00 -52 0 8 0.00 360.00 xcarc
1.000 0.000 0.000 scb
(S) {/Times-Roman cf} 2 9 0 1.00 0 64 pinlabel
(D) {/Times-Roman cf} 2 13 0 1.00 0 -64 pinlabel
(G) {/Times-Roman cf} 2 7 0 1.00 -64 0 pinlabel
(B) {/Times-Roman cf} 2 4 0 1.00 32 0 pinlabel
0.180 0.545 0.341 scb
mark length ( L=) width ( W=) model ( %pD %pG %pS %pB ) @index (spice:M) {/Times-Roman cf} 
ctmk 4 0 1.00 -196 -139 infolabel
mark ( %x %y) width ( ) length (sim:p %pG %pD %pS ) {/Times-Roman cf} ctmk 4 0 1.00 
-196 -187 infolabel
sce
mark length (/) width (W/L=) {/Times-Roman cf} ctmk p_jst p_rot 1.00 16 32 label
1 1.00 -32 0 32 0 2 polygon
endgate
} def

1.00 270 << /p_jst 17 /p_rot 90 >> /analoglib2::pMOS4 libinst

/analoglib2::NPN {
<< /model (npn) /@index (?) >> begingate
1 1.00 -48 0 -64 0 2 polygon
1 1.00 -48 48 -48 -48 2 polygon
1 1.00 0 48 -48 22 2 polygon
1 1.00 0 48 0 64 2 polygon
1 1.00 0 -48 -48 -22 2 polygon
1 1.00 0 -48 0 -64 2 polygon
1.00 120 0 -48 generic::arrowhead
1.000 0.000 0.000 scb
(C) {/Times-Roman cf} 2 9 0 1.00 0 64 pinlabel
(B) {/Times-Roman cf} 2 7 0 1.00 -64 0 pinlabel
(E) {/Times-Roman cf} 2 13 0 1.00 0 -64 pinlabel
0.180 0.545 0.341 scb
mark model ( %pC %pB %pE ) @index (spice:Q) {/Times-Roman cf} ctmk 4 0 1.00 -244 -139 
infolabel
(sim:b %pB %pE %pC) {/Times-Roman cf} 2 4 0 1.00 -244 -187 infolabel
endgate
} def

/analoglib2::PNP {
<< /model (pnp) /@index (?) >> begingate
1 1.00 -48 0 -64 0 2 polygon
1 1.00 -48 48 -48 -48 2 polygon
1 1.00 0 48 -48 22 2 polygon
1 1.00 0 48 0 64 2 polygon
1 1.00 0 -48 -48 -22 2 polygon
1 1.00 0 -48 0 -64 2 polygon
1.00 240 -48 22 generic::arrowhead
1.000 0.000 0.000 scb
(C) {/Times-Roman cf} 2 13 0 1.00 0 -64 pinlabel
(B) {/Times-Roman cf} 2 7 0 1.00 -64 0 pinlabel
(E) {/Times-Roman cf} 2 9 0 1.00 0 64 pinlabel
0.180 0.545 0.341 scb
mark model ( %pC %pB %pE ) @index (spice:Q) {/Times-Roman cf} ctmk 4 0 1.00 -244 -139 
infolabel
endgate
} def

/analoglib2::Diode {
<< /@index (?) >> begingate
248 1.00 -18 -16 0 16 18 -16 3 polygon
1 1.00 0 -48 0 -16 2 polygon
1 1.00 0 48 0 16 2 polygon
1 1.00 -18 16 18 16 2 polygon
1.000 0.000 0.000 scb
(1) {/Times-Roman cf} 2 9 0 1.00 0 48 pinlabel
(2) {/Times-Roman cf} 2 13 0 1.00 0 -48 pinlabel
0.180 0.545 0.341 scb
mark @index (pcb:D) {/Times-Roman cf} ctmk 20 0 1.00 -64 -144 infolabel
mark ( %p2 %p1 diode) @index (spice:D) {/Times-Roman cf} ctmk 4 0 1.00 -64 -192 
infolabel
endgate
} def


% EndLib