summaryrefslogtreecommitdiff
path: root/lib/analoglib3.lps
blob: e600a83d92f8f5c9ab1f0103826997a382c28d44 (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
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
%! PostScript set of library objects for XCircuit
%  Version: 3.9
%  Library name is: analoglib3
%  Author:  <tim@stravinsky>
%

% Depend analoglib3::NPNModel generic::arrowhead
% Depend analoglib3::Vsource analog::source
% Depend analoglib3::ACsource analog::source analoglib2::sinusoid
% Depend analoglib3::Vpwl analog::source
% Depend analoglib3::Switch generic::circle generic::arrowhead
% Depend analoglib3::Vpulse analog::source

% XCircuitLib library objects
/analoglib3::pMOS {
<</@subs (avdd) /p_yps2 48 /p_xps2 16 /p_yps1 -8 /p_xps1 16 /p_yps 16 /p_xps 16 /p_rot 
0 /@fingers (1) /@class (M) /@width (1u) /@length (0.18u) /@model (pfet) /@index 
(?) /p_jst 28 >> begingate
1 1.000 -44 -28 -44 28 2 polygon
1 1.000 -60 0 -64 0 2 polygon
1 1.000 0 -64 0 -28 -32 -28 -32 28 0 28 0 64 6 polygon
1 1.000 -52 0 8 0.000 360.000 xcarc
1.000 0.000 0.000 scb
(S) {/Times-Roman cf} 2 9 0.000 1.000 0 64 pinlabel
(D) {/Times-Roman cf} 2 13 0.000 1.000 0 -64 pinlabel
(G) {/Times-Roman cf} 2 7 0.000 1.000 -64 0 pinlabel
0.180 0.545 0.341 scb
mark @fingers ( M=) @length ( L=) @width ( W=) @model ( ) @subs ( %pD %pG %pS ) 
@index @class (spice:) {/Times-Roman cf} ctmk 4 0.000 1.000 -196 -139 infolabel
mark ( %x %y) @width ( ) @length (sim:p %pG %pD %pS ) {/Times-Roman cf} ctmk 4 
0.000 1.000 -196 -187 infolabel
0.647 0.165 0.165 scb
mark @fingers {hS} (=) {hS} (M) {CR} @length (=) {Tf} (L) {hS} {CR} @width (=) 
{Ts} (W) {/Times-Roman cf} ctmk p_jst p_rot 0.700 p_xps1 p_yps1 label
0.000 0.000 1.000 scb
mark @index @class {/Times-Roman cf} ctmk 16 p_rot 0.700 p_xps2 p_yps2 label
sce
mark @model {/Times-RomanISO cf} ctmk 16 p_rot 0.700 p_xps p_yps label
endgate
} def

1.000 90.000 <</p_yps -32 /p_xps1 32 /p_yps1 -40 /p_rot 270 /p_xps2 -32 >> /analoglib3::pMOS libinst
<</@model (hvpfet) /@length (0.36u) /@subs (dvdd3) >> /analoglib3::pMOS libinst
1.000 90.000 <</p_yps -32 /p_xps1 32 /p_yps1 -40 /p_rot 270 /p_xps2 -32 /@model (hvpfet) 
/@length (0.36u) /@subs (dvdd3) >> /analoglib3::pMOS libinst

/analoglib3::pMOS1finger {
<</p_yps2 -16 /p_xps2 16 /p_yps1 8 /p_xps1 16 /p_yps 40 /p_xps 16 /p_rot 0 /@subs 
(avdd) /@class (M) /@width (1u) /@length (0.18u) /@model (pfet) /@index 
(?) /p_jst 28 >> begingate
1 1.000 -44 -28 -44 28 2 polygon
1 1.000 -60 0 -64 0 2 polygon
1 1.000 0 -64 0 -28 -32 -28 -32 28 0 28 0 64 6 polygon
1 1.000 -52 0 8 0.000 360.000 xcarc
1.000 0.000 0.000 scb
(S) {/Times-Roman cf} 2 9 0.000 1.000 0 64 pinlabel
(D) {/Times-Roman cf} 2 13 0.000 1.000 0 -64 pinlabel
(G) {/Times-Roman cf} 2 7 0.000 1.000 -64 0 pinlabel
0.180 0.545 0.341 scb
mark @length ( L=) @width ( W=) @model ( ) @subs ( %pD %pG %pS ) @index @class 
(spice:) {/Times-Roman cf} ctmk 4 0.000 1.000 -196 -139 infolabel
mark ( %x %y) @width ( ) @length (sim:p %pG %pD %pS ) {/Times-Roman cf} ctmk 4 
0.000 1.000 -196 -187 infolabel
0.647 0.165 0.165 scb
mark @length (=) {Tf} (L) {hS} {CR} @width (=) {Ts} (W) {/Times-Roman cf} ctmk 
p_jst p_rot 0.700 p_xps2 p_yps2 label
0.000 0.000 1.000 scb
mark @index @class {/Times-Roman cf} ctmk 16 p_rot 0.700 p_xps p_yps label
sce
mark @model {/Times-RomanISO cf} ctmk 16 p_rot 0.700 p_xps1 p_yps1 label
endgate
} def

1.000 90.000 <</p_yps2 -32 /p_yps1 -24 /p_xps2 32 /p_rot 270 /p_xps -16 >> /analoglib3::pMOS1finger libinst
<</@model (hvpfet) /@length (0.36u) /@subs (dvdd3) >> /analoglib3::pMOS1finger libinst
1.000 90.000 <</p_yps2 -32 /p_yps1 -24 /p_xps2 32 /p_rot 270 /p_xps -16 /@model (hvpfet) 
/@length (0.36u) /@subs (dvdd3) >> /analoglib3::pMOS1finger libinst

/analoglib3::nMOS {
<</@subs (agnd) /p_yps2 -16 /p_xps2 16 /p_yps1 8 /p_xps1 16 /p_yps 40 /p_xps 16 /p_rot 
0 /@fingers (1) /@class (M) /@width (1u) /@length (0.18u) /@model (nfet) /@index 
(?) /p_jst 28 >> begingate
1 1.000 0 -64 0 -28 -32 -28 -32 28 0 28 0 64 6 polygon
1 1.000 -44 -28 -44 28 2 polygon
1 1.000 -44 0 -64 0 2 polygon
1.000 0.000 0.000 scb
(G) {/Times-Roman cf} 2 7 0.000 1.000 -64 0 pinlabel
(S) {/Times-Roman cf} 2 13 0.000 1.000 0 -64 pinlabel
(D) {/Times-Roman cf} 2 9 0.000 1.000 0 64 pinlabel
0.180 0.545 0.341 scb
mark @fingers ( m=) @length ( l=) @width ( w=) @model ( ) @subs ( %pD %pG %pS ) 
@index @class (spice:) {/Times-Roman cf} ctmk 4 0.000 1.000 -244 -139 infolabel
mark ( %x %y) @width ( ) @length (sim:n %pG %pD %pS ) {/Times-Roman cf} ctmk 4 
0.000 1.000 -244 -187 infolabel
0.647 0.165 0.165 scb
mark @fingers (=) {Tf} {Tf} (M) {CR} @length (=) {Tf} (L) {hS} {CR} @width (=) 
{Ts} (W) {/Times-Roman cf} ctmk p_jst p_rot 0.700 p_xps2 p_yps2 label
0.000 0.000 1.000 scb
mark @index @class {/Times-Roman cf} ctmk 20 p_rot 0.700 p_xps p_yps label
sce
mark @model {/Times-RomanISO cf} ctmk 20 p_rot 0.700 p_xps1 p_yps1 label
endgate
} def

1.000 90.000 <</p_yps1 -24 /p_xps2 32 /p_yps2 -32 /p_rot 270 /p_xps -32 >> /analoglib3::nMOS libinst
<</p_jst 28 /p_xps2 16 /p_yps2 -16 /@model (hvnfet) /@length (0.36u) /@subs 
(dgnd) >> /analoglib3::nMOS libinst
1.000 90.000 <</p_yps2 -32 /p_yps1 -24 /p_xps2 32 /p_rot 270 /p_xps -32 /@model (hvnfet) 
/@length (0.36u) /@subs (dgnd) >> /analoglib3::nMOS libinst

/analoglib3::nMOS1finger {
<</@subs (agnd) /p_yps2 -16 /p_xps2 16 /p_yps1 8 /p_xps1 16 /p_yps 40 /p_xps 16 /p_rot 
0 /@class (M) /@width (1u) /@length (0.18u) /@model (nfet) /@index (?) /p_jst 
28 >> begingate
1 1.000 0 -64 0 -28 -32 -28 -32 28 0 28 0 64 6 polygon
1 1.000 -44 -28 -44 28 2 polygon
1 1.000 -44 0 -64 0 2 polygon
1.000 0.000 0.000 scb
(G) {/Times-Roman cf} 2 7 0.000 1.000 -64 0 pinlabel
(S) {/Times-Roman cf} 2 13 0.000 1.000 0 -64 pinlabel
(D) {/Times-Roman cf} 2 9 0.000 1.000 0 64 pinlabel
0.180 0.545 0.341 scb
mark @length ( l=) @width ( w=) @model ( ) @subs ( %pD %pG %pS ) @index @class 
(spice:) {/Times-Roman cf} ctmk 4 360.000 1.000 -244 -139 infolabel
mark ( %x %y) @width ( ) @length (sim:n %pG %pD %pS ) {/Times-Roman cf} ctmk 4 
0.000 1.000 -244 -187 infolabel
0.647 0.165 0.165 scb
mark @length (=) {Tf} (L) {hS} {CR} @width (=) {Ts} (W) {/Times-Roman cf} ctmk 
p_jst p_rot 0.700 p_xps2 p_yps2 label
0.000 0.000 1.000 scb
mark @index @class {/Times-Roman cf} ctmk 20 p_rot 0.700 p_xps p_yps label
sce
mark @model {/Times-RomanISO cf} ctmk 20 p_rot 0.700 p_xps1 p_yps1 label
endgate
} def

1.000 90.000 <</p_yps2 -32 /p_yps1 -24 /p_xps2 32 /p_rot 270 /p_xps -32 >> /analoglib3::nMOS1finger libinst
<</@model (hvnfet) /@length (0.36u) /@subs (dgnd) >> /analoglib3::nMOS1finger libinst
1.000 90.000 <</p_yps2 -32 /p_yps1 -24 /p_xps2 32 /p_rot 270 /p_xps -32 /@model (hvnfet) 
/@length (0.36u) /@subs (dgnd) >> /analoglib3::nMOS1finger libinst

/generic::arrowhead {
% nonetwork
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.000 endpath
endgate
} def

/analoglib3::NPNModel {
<</@subs (agnd) /p_yps2 56 /p_xps2 16 /p_yps1 0 /p_xps1 16 /p_yps 24 /p_xps 16 /p_rot 
0 /@length (10.16u) /@width (0.2u) /@m (1) /@model (bipolar) /@index (?) /@class 
(Q) >> begingate
1 1.000 -48 0 -64 0 2 polygon
1 1.000 -48 48 -48 -48 2 polygon
1 1.000 0 48 -48 22 2 polygon
1 1.000 0 48 0 64 2 polygon
1 1.000 0 -48 -48 -22 2 polygon
1 1.000 0 -48 0 -64 2 polygon
1.000 120.000 0 -48 generic::arrowhead
1.000 0.000 0.000 scb
(C) {/Times-Roman cf} 2 9 0.000 1.000 0 64 pinlabel
(B) {/Times-Roman cf} 2 7 0.000 1.000 -64 0 pinlabel
(E) {/Times-Roman cf} 2 13 0.000 1.000 0 -64 pinlabel
0.180 0.545 0.341 scb
mark @m ( M=) @length ( L=) @width ( W=) @model ( ) @subs ( %pC %pB %pE ) 
@index @class (spice:) {/Times-Roman cf} ctmk 4 0.000 1.000 -244 -139 infolabel
(sim:b %pB %pE %pC) {/Times-Roman cf} 2 4 0.000 1.000 -244 -187 infolabel
0.000 0.000 1.000 scb
mark @index @class {/Times-Roman cf} ctmk 16 p_rot 0.700 p_xps2 p_yps2 label
sce
mark @model {/Times-RomanISO cf} ctmk 16 p_rot 0.700 p_xps p_yps label
0.647 0.165 0.165 scb
mark @m {Tf} (=) {Tf} (M) {CR} @length {Tf} (=) {Tf} (L) {CR} @width {Ts} {hS} 
(=) {Ts} {hS} (W) {/Times-Roman cf} ctmk 28 p_rot 0.700 p_xps1 p_yps1 label
endgate
} def

1.000 90.000 <</p_yps -40 /p_xps2 -32 /p_xps 32 /p_xps1 48 /p_yps1 -32 /p_rot 270 >> /analoglib3::NPNModel libinst

/analoglib3::ResModel {
<</@substype (sub) (lindex {sub well} 0) pop /@subs (avdd) /@width (1u) /@length 
(1u) /p_yps2 -48 /p_xps2 32 /@model (resistor) /p_yps1 0 /p_xps1 32 /p_yps 
32 /p_xps 32 /p_rot 0 /@class (R) /@value (1.0) /@units (k) /@index (?) /p_jst 
20 >> begingate
1 1.000 0 64 0 36 2 polygon
1 1.000 0 -64 0 -36 2 polygon
1 1.000 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.000 1.000 0 64 pinlabel
(2) {/Times-Roman cf} 2 13 0.000 1.000 0 -64 pinlabel
0.180 0.545 0.341 scb
mark @subs (=) @substype ( ) @width ( W=) @length ( L=) @units @value ( R=) 
@model ( %p1 %p2 ) @index @class (spice:) {/Times-Roman cf} ctmk 4 0.000 1.000 
-208 -160 infolabel
(sim:r %p1 %p2) {/Times-Roman cf} 2 4 0.000 1.000 -208 -208 infolabel
0.647 0.165 0.165 scb
mark (W) {/Symbol cf} @units {hS} @value {/Times-Roman cf} ctmk p_jst p_rot 
0.700 p_xps1 p_yps1 label
0.180 0.545 0.341 scb
mark @index @class (pcb:) {/Times-Roman cf} ctmk 20 0.000 1.000 -208 -256 
infolabel
0.000 0.000 1.000 scb
mark @index @class {/Times-Roman cf} ctmk 20 p_rot 0.700 p_xps p_yps label
0.647 0.165 0.165 scb
mark @model {/Times-RomanISO cf} ctmk 16 p_rot 0.700 p_xps2 p_yps2 label
endgate
} def

1.000 90.000 <</@substype (sub) /p_xps -32 /p_yps1 -32 /p_yps -16 /p_xps2 80 /p_yps2 -32 
/p_rot 270 >> /analoglib3::ResModel libinst

/analoglib3::MiMCap {
<</@substype (sub) (lindex {sub well} 0) pop /@subs (agnd) /@fingers (1) /@length 
(1u) /@width (1u) /p_yps2 -8 /p_xps2 48 /p_yps1 24 /p_xps1 48 /p_yps 
56 /p_xps 48 /p_rot 0 /@class (C) /@value (1.0) /@units (p) /@index (?) /p_jst 
20 >> begingate
1 1.000 0 -64 0 -6 2 polygon
1 1.000 0 64 0 6 2 polygon
1 1.000 -32 6 32 6 2 polygon
1.000 0.000 0.000 scb
(1) {/Times-Roman cf} 2 9 0.000 1.000 0 64 pinlabel
(2) {/Times-Roman cf} 2 13 0.000 1.000 0 -64 pinlabel
0.180 0.545 0.341 scb
mark @subs (=) @substype ( ) @fingers ( M=) @width ( W=) @length ( L=) @units 
@value ( %p1 %p2 MIM C=) @index (spice:C) {/Times-Roman cf} ctmk 4 0.000 1.000 
-208 -160 infolabel
(sim:c %p1 %p2) {/Times-Roman cf} 2 4 0.000 1.000 -208 -208 infolabel
0.647 0.165 0.165 scb
mark (F) @units {hS} @value {/Times-Roman cf} ctmk p_jst p_rot 0.700 p_xps1 
p_yps1 label
0.180 0.545 0.341 scb
mark @index (pcb:C) {/Times-Roman cf} ctmk 20 0.000 1.000 -208 -256 infolabel
0.000 0.000 1.000 scb
mark @index @class {/Times-Roman cf} ctmk 20 p_rot 0.700 p_xps p_yps label
0.647 0.165 0.165 scb
mark @fingers {Tf} (=) {Tf} (M) {CR} @length {Tf} (=) {Tf} (L) {CR} @width {Ts} 
{hS} (=) {Ts} {hS} (W) {/Times-RomanISO cf} ctmk 28 p_rot 0.700 p_xps2 p_yps2 
label
sce
1 1.000 0 -80 74 66.000 114.000 xcarc
endgate
} def

1.000 90.000 <</@substype (sub) /p_xps -48 /p_yps 24 /p_yps1 -24 /p_xps2 80 /p_yps2 -24 
/p_rot 270 >> /analoglib3::MiMCap libinst

/analoglib3::IndModel {
<</@size (175u) /@width (2.5u) /@sep (2.5u) /@turns (6.5) /@substype (sub) 
(lindex {sub well} 0) pop /@subs (agnd) /p_yps2 -48 /p_xps2 32 /@model 
(inductor) /p_yps1 -16 /p_xps1 32 /p_yps 16 /p_xps 32 /@value (10) /@units (n) /@index 
(?) /p_jst 20 /p_rot 0 >> begingate
1 1.000 20 -22 20 -38 0 -42 0 -18 spline
1 1.000 -20 -14 -20 -26 0 -22 0 -18 spline
1 1.000 20 38 20 22 0 18 0 42 spline
1 1.000 20 18 20 2 0 -2 0 22 spline
1 1.000 20 -2 20 -18 0 -22 0 2 spline
1 1.000 -20 26 -20 14 0 18 0 22 spline
1 1.000 -20 6 -20 -6 0 -2 0 2 spline
1 1.000 0 -42 0 -64 2 polygon
1 1.000 0 42 0 64 2 polygon
1.000 0.000 0.000 scb
(1) {/Times-Roman cf} 2 9 0.000 1.000 0 64 pinlabel
(2) {/Times-Roman cf} 2 13 0.000 1.000 0 -64 pinlabel
0.180 0.545 0.341 scb
mark @turns ( turns=) @sep ( sep=) @width ( width=) @size ( size=) @subs (=) 
@substype ( ) @units @value ( ind=) @model ( %p1 %p2 ) @index (spice:L) 
{/Times-Roman cf} ctmk 132 360.000 1.000 -208 -160 infolabel
(sim:l %p1 %p2) {/Times-Roman cf} 2 4 0.000 1.000 -208 -208 infolabel
0.647 0.165 0.165 scb
mark (H) @units {hS} @value {/Times-Roman cf} ctmk p_jst p_rot 0.700 p_xps1 
p_yps1 label
0.180 0.545 0.341 scb
mark @index (pcb:L) {/Times-Roman cf} ctmk 20 0.000 1.000 -208 -256 infolabel
0.000 0.000 1.000 scb
mark @index (L) {/Times-Roman cf} ctmk 20 p_rot 0.700 p_xps p_yps label
0.647 0.165 0.165 scb
mark @model {/Times-Roman cf} ctmk 20 p_rot 0.700 p_xps2 p_yps2 label
endgate
} def

1.000 90.000 <</@substype (sub) /p_rot 270 /p_yps1 -48 /p_xps1 48 /p_yps -16 /p_xps -48 
/p_xps2 80 >> /analoglib3::IndModel libinst

/analog::source {
% hidden
begingate
1 1.000 0 0 32 0.000 360.000 xcarc
1 1.000 0 32 0 64 2 polygon
1 1.000 0 -32 0 -64 2 polygon
endgate
} def

/analoglib3::Vsource {
<</p_yps 16 /p_xps 48 /p_rot 0 /@class (V) /@index (?) /@value (5) /p_jst 20 >> begingate
1.000 360.000 0 0 analog::source
(+) {/Symbol cf} 2 5 p_rot 1.000 0 14 label
(-) {/Symbol cf} 2 5 p_rot 1.000 0 -22 label
1.000 0.000 0.000 scb
(v.p) {/Times-Roman cf} 2 9 0.000 1.000 0 64 pinlabel
(v.m) {/Times-Roman cf} 2 13 0.000 1.000 0 -64 pinlabel
0.180 0.545 0.341 scb
mark @value ( %pv.p %pv.m ) @index @class (spice:) {/Times-Roman cf} ctmk 20 
360.000 1.000 -96 -160 infolabel
0.647 0.165 0.165 scb
mark (V) {hS} @value {/Times-Roman cf} ctmk p_jst p_rot 0.700 48 -16 label
0.000 0.000 1.000 scb
mark @index @class {/Times-Roman cf} ctmk 20 p_rot 0.700 p_xps p_yps label
endgate
} def

1.000 270.000 <</p_xps -48 /p_yps -16 /p_rot 270 >> /analoglib3::Vsource libinst

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

/analoglib3::ACsource {
<</p_yps1 -24 /p_xps1 48 /p_yps 32 /p_xps 48 /p_rot 0 /@index (?) /@value (5) /@offset 
(0) /@freq (1) /@units (k) /p_jst 20 >> begingate
1.000 0.000 0 0 analog::source
1.000 0.000 0.000 scb
(s.p) {/Times-Roman cf} 2 9 0.000 1.000 0 64 pinlabel
(s.m) {/Times-Roman cf} 2 13 0.000 1.000 0 -64 pinlabel
0.180 0.545 0.341 scb
mark (\)) @units @freq ( ) @value ( ) @offset ( %ps.p %ps.m SIN\() @index 
(spice:V) {/Times-Roman cf} ctmk 20 0.000 1.000 -336 -160 infolabel
0.647 0.165 0.165 scb
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 0.750 p_xps1 p_yps1 label
sce
1.000 p_rot 0 0 analoglib2::sinusoid
0.000 0.000 1.000 scb
mark @index (V) {/Times-RomanISO cf} ctmk 16 p_rot 0.700 p_xps p_yps label
endgate
} def

1.000 90.000 <</p_xps -48 /p_yps -16 /p_xps1 80 /p_yps1 -40 /p_rot 270 >> /analoglib3::ACsource libinst

/analoglib3::Vpwl {
<</p_yps1 -16 /p_xps1 48 /@pwl (0 0 1u 5 2u 5 3u 0) /p_jst 20 /@index (?) /@class 
(V) /p_rot 0 /p_xps 48 /p_yps 16 >> begingate
1.000 360.000 0 0 analog::source
(+) {/Symbol cf} 2 5 p_rot 1.000 0 14 label
(-) {/Symbol cf} 2 5 p_rot 1.000 0 -22 label
1.000 0.000 0.000 scb
(1) {/Times-Roman cf} 2 9 0.000 1.000 0 64 pinlabel
(2) {/Times-Roman cf} 2 13 0.000 1.000 0 -64 pinlabel
0.000 0.000 1.000 scb
mark @index @class {/Times-Roman cf} ctmk p_jst p_rot 0.700 p_xps p_yps label
0.180 0.545 0.341 scb
mark (\)) @pwl ( %p1 %p2 PWL\() @index @class (spice:) {/Times-Roman cf} ctmk 
16 0.000 1.000 -304 -176 infolabel
0.647 0.165 0.165 scb
mark @pwl {/Times-Roman cf} ctmk p_jst p_rot 0.700 p_xps1 p_yps1 label
endgate
} def

1.000 270.000 <</p_yps1 -112 /p_rot 270 /p_xps -56 /p_yps -16 /p_xps1 56 >> /analoglib3::Vpwl libinst

/analoglib3::Capacitor {
<</p_yps1 16 /p_xps1 48 /p_yps -16 /p_xps 48 /@class (C) /@value (1.0) /@units 
(p) /@index (?) /p_jst 20 /p_rot 0 >> begingate
1 1.000 0 -64 0 -6 2 polygon
1 1.000 0 64 0 6 2 polygon
1 1.000 -32 6 32 6 2 polygon
1.000 0.000 0.000 scb
(1) {/Times-Roman cf} 2 9 0.000 1.000 0 64 pinlabel
(2) {/Times-Roman cf} 2 13 0.000 1.000 0 -64 pinlabel
0.180 0.545 0.341 scb
mark @units @value ( %p1 %p2 ) @index @class (spice:) {/Times-Roman cf} ctmk 4 
0.000 1.000 -208 -160 infolabel
(sim:e %p1 %p2) {/Times-Roman cf} 2 4 0.000 1.000 -208 -208 infolabel
0.647 0.165 0.165 scb
mark (F) @units {hS} @value {/Times-Roman cf} ctmk p_jst p_rot 0.700 p_xps 
p_yps label
0.180 0.545 0.341 scb
mark @index @class (pcb:) {/Times-Roman cf} ctmk 20 0.000 1.000 -208 -256 
infolabel
0.000 0.000 1.000 scb
mark @index @class {/Times-Roman cf} ctmk 20 p_rot 0.700 p_xps1 p_yps1 label
sce
1 1.000 -32 -6 32 -6 2 polygon
endgate
} def

1.000 90.000 <</p_xps 56 /p_yps1 -16 /p_xps1 -56 /p_yps -32 /p_rot 270 >> /analoglib3::Capacitor libinst

/analoglib3::Resistor {
<</@class (R) /@value (1.0) /@units (k) /@index (?) /p_jst 20 /p_rot 0 /p_xps 
32 /p_yps -16 /p_xps1 32 /p_yps1 16 >> begingate
1 1.000 0 64 0 36 2 polygon
1 1.000 0 -64 0 -36 2 polygon
1 1.000 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.000 1.000 0 64 pinlabel
(2) {/Times-Roman cf} 2 13 0.000 1.000 0 -64 pinlabel
0.180 0.545 0.341 scb
mark @units @value ( %p1 %p2 ) @index @class (spice:) {/Times-Roman cf} ctmk 4 
0.000 1.000 -208 -160 infolabel
mark @index @class (pcb:) {/Times-Roman cf} ctmk 20 0.000 1.000 -208 -256 
infolabel
(sim:r %p1 %p2) {/Times-Roman cf} 2 4 0.000 1.000 -208 -208 infolabel
0.647 0.165 0.165 scb
mark (W) {/Symbol cf} @units {hS} @value {/Times-Roman cf} ctmk p_jst p_rot 
0.700 p_xps p_yps label
0.000 0.000 1.000 scb
mark @index @class {/Times-Roman cf} ctmk p_jst p_rot 0.700 p_xps1 p_yps1 label
endgate
} def

1.000 90.000 <</p_yps1 -16 /p_xps1 -32 /p_yps -32 /p_rot 270 >> /analoglib3::Resistor libinst

/generic::circle {
% trivial
begingate
1 1.000 16 0 6 0.000 360.000 xcarc
1 1.000 0 0 10 0 2 polygon
1.000 0.000 0.000 scb
(out) {/Times-Roman cf} 2 4 -0.000 1.000 16 0 pinlabel
(out) {/Times-Roman cf} 2 7 -0.000 1.000 0 0 pinlabel
endgate
} def

/analoglib3::Switch {
<</@model (switch) /@class (S) /@index (?) >> begingate
1 1.300 32 32 2 -43 2 polygon
1 0.600 8 -24 57 49.000 90.000 xcarc
-1.000 /sv 90.000 0 -64 generic::circle
1.000 90.000 0 48 generic::circle
1.000 0.000 0.000 scb
(1) {/Times-Roman cf} 2 9 0.000 1.000 0 48 pinlabel
(2) {/Times-Roman cf} 2 13 0.000 1.000 0 -64 pinlabel
sce
1 1.000 32 -16 96 -16 2 polygon
-1.000 /sv 270.000 16 -16 generic::arrowhead
1.000 0.000 0.000 scb
(3) {/Times-Roman cf} 2 20 0.000 1.000 96 -16 pinlabel
(4) {/Times-Roman cf} 2 20 0.000 1.000 96 -48 pinlabel
0.180 0.545 0.341 scb
mark @model ( %p1 %p2 %p3 %p4 ) @index @class (spice1:) {/Times-Roman cf} ctmk 
16 0.000 0.700 -128 -192 infolabel
sce
(+) {/Symbol cf} 2 17 0.000 0.700 96 -8 label
(-) {/Symbol cf} 2 17 0.000 0.700 96 -40 label
1 1.000 96 -48 72 -48 72 -64 3 polygon
1 1.000 54 -64 90 -64 2 polygon
1 1.000 62 -72 82 -72 2 polygon
1 1.000 70 -80 74 -80 2 polygon
0.180 0.545 0.341 scb
mark ( sw) @model (spice@1:.model ) {/Times-Roman cf} ctmk 16 0.000 0.700 -128 
-160 infolabel
endgate
} def

/analoglib3::Vpulse {
<</@period (10.0u) /@pwidth (1.0u) /@t_fall (1.0u) /@t_rise (1.0u) /@t_delay 
(0.0) /@vpulse (3.3) /@vinit (0.0) /p_jst 20 /@index (?) /@class (V) /p_rot 0 /p_xps 
48 /p_yps 16 >> begingate
1.000 360.000 0 0 analog::source
1.000 0.000 0.000 scb
(v.p) {/Times-Roman cf} 2 9 0.000 1.000 0 64 pinlabel
(v.m) {/Times-Roman cf} 2 13 0.000 1.000 0 -64 pinlabel
0.180 0.545 0.341 scb
mark (\)) @period ( ) @pwidth ( ) @t_fall ( ) @t_rise ( ) @t_delay ( ) @vpulse 
( ) @vinit ( PULSE\() @vpulse ( %pv.p %pv.m DC=) @index @class (spice:) 
{/Times-Roman cf} ctmk 20 360.000 1.000 -96 -160 infolabel
0.647 0.165 0.165 scb
mark (V) {hS} @vpulse (\261) @vinit {/Times-Roman cf} ctmk p_jst p_rot 0.700 48 
-16 label
0.000 0.000 1.000 scb
mark @index @class {/Times-Roman cf} ctmk 20 p_rot 0.700 p_xps p_yps label
sce
1 1.000 -24 -12 -16 -12 -16 12 -8 12 -8 -12 0 -12 0 12 8 12 8 -12 16 -12 16 12 
24 12 12 polygon
mark (s) @period (T=) {0.647 0.165 0.165 scb} {/Times-Roman cf} ctmk 16 0.000 
0.700 48 -52 label
(+) {/Times-Roman cf} 2 21 0.000 0.600 0 22 label
endgate
} def


% EndLib