summaryrefslogtreecommitdiff
path: root/psfiles/analoglib2.lps
blob: c8050c2b1118b0f05da743b2f1a4c9718a706b63 (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
%! PostScript set of library objects for XCircuit
%  Version: 2.0
%  Library name is: analoglib2
%  Author: R. Timothy Edwards <tim@stravinsky.jhuapl.edu>
%

% XCircuitLib library objects
/capacitor {
% -32 -64 177 128 bbox
(1.0)  (p)  2 beginparm
% fundamental
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
(c.1) {/Times-Roman 1.000 cf} 2 9 0 0 64 pinlabel
(c.2) {/Times-Roman 1.000 cf} 2 13 0 0 -64 pinlabel
sce
mark v2 v1 (spice:C%i %pc.1 %pc.2 ) {/Times-Roman 1.000 cf} ctmk 4 0 -208 -160 infolabel
(sim:c %pc.1 %pc.2) {/Times-Roman 1.000 cf} 2 4 0 -208 -208 infolabel
mark (F) v2 {hS} v1 {/Helvetica 1.000 cf} ctmk 20 0 48 0 label
endgate
} def

/polarized {
% -32 -64 177 128 bbox
(1.0)  (p)  2 beginparm
% fundamental
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
(t) {/Times-Roman 1.000 cf} 2 9 0 0 64 pinlabel
(b) {/Times-Roman 1.000 cf} 2 13 0 0 -64 pinlabel
sce
mark v2 v1 (spice:C%i %pt %pb ) {/Times-Roman 1.000 cf} ctmk 4 0 -208 -160 infolabel
(sim:e %pt %pb %pb) {/Times-Roman 1.000 cf} 2 4 0 -208 -208 infolabel
mark (F) v2 {hS} v1 {/Helvetica 1.000 cf} ctmk 20 0 48 0 label
endgate
} def

/resistor {
% -14 -64 151 128 bbox
(1.0)  (k)  2 beginparm
% fundamental
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
(r.1) {/Times-Roman 1.000 cf} 2 9 0 0 64 pinlabel
(r.2) {/Times-Roman 1.000 cf} 2 13 0 0 -64 pinlabel
sce
mark v2 v1 (spice:R%i %pr.1 %pr.2 ) {/Times-Roman 1.000 cf} ctmk 4 0 -208 -160 infolabel
(sim:r %pr.1 %pr.2) {/Times-Roman 1.000 cf} 2 4 0 -208 -208 infolabel
mark (W) {/Symbol 1.000 cf} v2 {hS} v1 {/Helvetica 1.000 cf} ctmk 20 0 32 0 label
endgate
} def

/inductor {
% -14 -64 164 112 bbox
(1.0)  (m)  2 beginparm
% fundamental
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 1.000 cf} 2 9 0 0 48 pinlabel
(l.2) {/Times-Roman 1.000 cf} 2 13 0 0 -64 pinlabel
sce
mark v2 v1 (spice:L%i %pl.1 %pl.2 ) {/Times-Roman 1.000 cf} ctmk 4 0 -208 -160 infolabel
(sim:l %pl.1 %pl.2) {/Times-Roman 1.000 cf} 2 4 0 -208 -208 infolabel
mark (H) v2 {hS} v1 {/Helvetica 1.000 cf} ctmk 20 0 32 0 label
endgate
} def

/source {
% -32 -64 64 128 bbox
% 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

/vsource {
% -32 -64 139 128 bbox
(5)  1 beginparm
% fundamental
1.00 0 0 0 source
(+) {/Symbol 1.000 cf} 2 5 0 0 18 label
(-) {/Symbol 1.000 cf} 2 5 0 0 -18 label
1.000 0.000 0.000 scb
(v.p) {/Times-Roman 1.000 cf} 2 9 0 0 64 pinlabel
(v.m) {/Times-Roman 1.000 cf} 2 13 0 0 -64 pinlabel
sce
mark v1 (spice:V%i %pv.m %pv.p ) {/Helvetica 1.000 cf} ctmk 20 0 -96 -160 infolabel
mark (V) {hS} v1 {/Helvetica 1.000 cf} ctmk 20 0 48 0 label
endgate
} def

/arrowhead {
% -12 -32 24 36 bbox
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

/isource {
% -32 -64 163 128 bbox
(1)  (m)  2 beginparm
% fundamental
1.00 0 0 0 source
1  0.75 0 20 0 -8 2 polygon
0.80 180 0 -20 arrowhead
1.000 0.000 0.000 scb
(i.p) {/Times-Roman 1.000 cf} 2 9 0 0 64 pinlabel
(i.m) {/Times-Roman 1.000 cf} 2 13 0 0 -64 pinlabel
sce
mark v2 v1 (spice:I%i %pi.m %pi.p ) {/Times-Roman 1.000 cf} ctmk 20 0 -96 -160 infolabel
mark (A) v2 {hS} v1 {/Helvetica 1.000 cf} ctmk 20 0 48 0 label
endgate
} def

/acsource {
% -32 -64 211 128 bbox
(5)  (0)  (1)  (k)  4 beginparm
% fundamental
1.00 0 0 0 source
1  0.80 0 -48 0 48 -16 0 16 0 spline
1.000 0.000 0.000 scb
(s.p) {/Times-Roman 1.000 cf} 2 9 0 0 64 pinlabel
(s.m) {/Times-Roman 1.000 cf} 2 13 0 0 -64 pinlabel
sce
mark (\)) v4 v3 ( ) v1 ( ) v2 (spice:V%i %ps.m %ps.p SIN\() {/Helvetica 1.000 cf} ctmk 20 0 -336 -160 infolabel
mark (offset) {ss} (V) {hS} v2 {/Helvetica 1.000 cf} ctmk 20 0 48 0 label
mark (p-p) {ss} (V) {hS} v1 {/Helvetica 1.000 cf} ctmk 20 0 48 48 label
mark (Hz) v4 {hS} v3 {/Helvetica 1.000 cf} ctmk 20 0 48 -48 label
endgate
} def

/nmos {
% -64 -64 161 128 bbox
(3)  (2)  (nmos)  3 beginparm
% fundamental
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) {/Helvetica 1.000 cf} 2 7 0 -64 0 pinlabel
(S) {/Helvetica 1.000 cf} 2 13 0 0 -64 pinlabel
(D) {/Helvetica 1.000 cf} 2 9 0 0 64 pinlabel
sce
mark v2 ( L=) v1 ( W=) v3 (spice:M%i %pD %pG %pS GND ) {/Times-Roman 1.000 cf} ctmk 4 0 -244 -139 infolabel
(sim:n %pG %pD %pS) {/Times-Roman 1.000 cf} 2 4 0 -244 -187 infolabel
mark v1 (W=) {/Helvetica 1.000 cf} ctmk 20 0 16 16 label
mark v2 (L=) {/Helvetica 1.000 cf} ctmk 20 0 16 -16 label
endgate
} def

/pmos {
% -64 -64 161 128 bbox
(3)  (2)  (pmos)  3 beginparm
% fundamental
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) {/Helvetica 1.000 cf} 2 9 0 0 64 pinlabel
(D) {/Helvetica 1.000 cf} 2 13 0 0 -64 pinlabel
(G) {/Helvetica 1.000 cf} 2 7 0 -64 0 pinlabel
sce
mark v2 ( L=) v1 ( W=) v3 (spice:M%i %pD %pG %pS Vdd ) {/Times-Roman 1.000 cf} ctmk 4 0 -196 -139 infolabel
(sim:p %pG %pD %pS) {/Times-Roman 1.000 cf} 2 4 0 -196 -187 infolabel
mark v1 (W=) {/Helvetica 1.000 cf} ctmk 20 0 16 16 label
mark v2 (L=) {/Helvetica 1.000 cf} ctmk 20 0 16 -16 label
endgate
} def

/npn {
% -64 -64 72 128 bbox
(npn)  1 beginparm
% fundamental
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 0 -48 arrowhead
1.000 0.000 0.000 scb
(C) {/Times-Roman 1.000 cf} 2 9 0 0 64 pinlabel
(B) {/Times-Roman 1.000 cf} 2 7 0 -64 0 pinlabel
(E) {/Times-Roman 1.000 cf} 2 13 0 0 -64 pinlabel
sce
mark v1 (spice:Q%i %pC %pB %pE ) {/Times-Roman 1.000 cf} ctmk 4 0 -244 -139 infolabel
(sim:b %pB %pE %pC) {/Times-Roman 1.000 cf} 2 4 0 -244 -187 infolabel
endgate
} def

/pnp {
% -64 -64 72 128 bbox
(pnp)  1 beginparm
% fundamental
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 -48 22 arrowhead
1.000 0.000 0.000 scb
(C) {/Times-Roman 1.000 cf} 2 13 0 0 -64 pinlabel
(B) {/Times-Roman 1.000 cf} 2 7 0 -64 0 pinlabel
(E) {/Times-Roman 1.000 cf} 2 9 0 0 64 pinlabel
sce
mark v1 (spice:Q%i %pC %pB %pE ) {/Times-Roman 1.000 cf} ctmk 4 0 -244 -139 infolabel
endgate
} def


% EndLib