mirror of
https://github.com/noplacenoaddress/RNMnetwork.git
synced 2024-12-13 01:24:34 -05:00
350 lines
9.9 KiB
Plaintext
350 lines
9.9 KiB
Plaintext
%! PostScript set of library objects for XCircuit
|
|
% Version: 2.3
|
|
% Library name is: analoglib2
|
|
% Author: R. Timothy Edwards <tim@stravinsky.jhuapl.edu>
|
|
%
|
|
|
|
% XCircuitLib library objects
|
|
/Capacitor {
|
|
% -32 -64 185 128 bbox
|
|
(1.0) (p) (?) 3 beginparm
|
|
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
|
|
sce
|
|
mark v2 v1 ( %p1 %p2 ) v3 (spice:C) {/Times-Roman cf} ctmk 4 0 1.00 -208 -160
|
|
infolabel
|
|
sce
|
|
(sim:c %p1 %p2) {/Times-Roman cf} 2 4 0 1.00 -208 -208 infolabel
|
|
mark (F) v2 {hS} v1 {/Times-Roman cf} ctmk 20 0 1.00 48 0 label
|
|
sce
|
|
mark v3 (pcb:C) {/Times-Roman cf} ctmk 20 0 1.00 -208 -256 infolabel
|
|
endgate
|
|
} def
|
|
|
|
/Polarized {
|
|
% -32 -64 185 128 bbox
|
|
(1.0) (p) (?) 3 beginparm
|
|
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
|
|
sce
|
|
mark v2 v1 ( %p1 %p2 ) v3 (spice:C) {/Times-Roman cf} ctmk 4 0 1.00 -208 -160
|
|
infolabel
|
|
sce
|
|
(sim:e %p1 %p2) {/Times-Roman cf} 2 4 0 1.00 -208 -208 infolabel
|
|
mark (F) v2 {hS} v1 {/Times-Roman cf} ctmk 20 0 1.00 48 0 label
|
|
sce
|
|
mark v3 (pcb:C) {/Times-Roman cf} ctmk 20 0 1.00 -208 -256 infolabel
|
|
endgate
|
|
} def
|
|
|
|
/Resistor {
|
|
% -14 -64 157 128 bbox
|
|
(1.0) (k) (?) 3 beginparm
|
|
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
|
|
sce
|
|
mark v2 v1 ( %p1 %p2 ) v3 (spice:R) {/Times-Roman cf} ctmk 4 0 1.00 -208 -160
|
|
infolabel
|
|
sce
|
|
(sim:R %p1 %p2) {/Times-Roman cf} 2 4 0 1.00 -208 -208 infolabel
|
|
mark (W) {/Symbol cf} v2 {hS} v1 {/Times-Roman cf} ctmk 20 0 1.00 32 0 label
|
|
sce
|
|
mark v3 (pcb:R) {/Times-Roman cf} ctmk 20 0 1.00 -208 -256 infolabel
|
|
endgate
|
|
} def
|
|
|
|
/Inductor {
|
|
% -14 -64 157 112 bbox
|
|
(1.0) (m) (?) 3 beginparm
|
|
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
|
|
sce
|
|
mark v2 v1 ( %p1 %p2 ) v3 (spice:L) {/Times-Roman cf} ctmk 4 0 1.00 -208 -160
|
|
infolabel
|
|
sce
|
|
(sim:l %p1 %p2) {/Times-Roman cf} 2 4 0 1.00 -208 -208 infolabel
|
|
mark (H) v2 {hS} v1 {/Times-Roman cf} ctmk 20 0 1.00 32 0 label
|
|
sce
|
|
mark v3 (pcb:L) {/Times-Roman cf} ctmk 20 0 1.00 -208 -256 infolabel
|
|
endgate
|
|
} def
|
|
|
|
/inductor {
|
|
% -14 -64 29 112 bbox
|
|
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
|
|
sce
|
|
(spice:L%i %pl.1 %pl.2 1.0U) {/Times-Roman cf} 2 0 0 1.00 -208 -160 infolabel
|
|
sce
|
|
(sim:l %pl.1 %pl.2) {/Times-Roman cf} 2 0 0 1.00 -208 -208 infolabel
|
|
endgate
|
|
} def
|
|
|
|
/Transformer {
|
|
% -62 -64 108 112 bbox
|
|
(?) 1 beginparm
|
|
1.00 0 -48 0 inductor
|
|
1 1.00 -16 48 -16 -64 2 polygon
|
|
1 1.00 0 48 0 -64 2 polygon
|
|
1.00 180 32 -16 inductor
|
|
1.000 0.000 0.000 scb
|
|
(1) {/Helvetica cf} 2 25 0 1.00 -48 48 pinlabel
|
|
(2) {/Helvetica cf} 2 29 0 1.00 -48 -64 pinlabel
|
|
(3) {/Helvetica cf} 2 25 0 1.00 32 48 pinlabel
|
|
(4) {/Helvetica cf} 2 29 0 1.00 32 -64 pinlabel
|
|
sce
|
|
mark v1 (pcb:T) {/Times-Roman cf} ctmk 20 0 1.00 -96 -160 infolabel
|
|
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
|
|
1.00 0 0 0 source
|
|
(+) {/Symbol cf} 2 5 0 1.00 0 18 label
|
|
(-) {/Symbol cf} 2 5 0 1.00 0 -18 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
|
|
sce
|
|
mark v1 (spice:V%i %pv.p %pv.m ) {/Times-Roman cf} ctmk 20 0 1.00 -96 -160
|
|
infolabel
|
|
mark (V) {hS} v1 {/Times-Roman cf} ctmk 20 0 1.00 48 0 label
|
|
endgate
|
|
} def
|
|
|
|
/arrowhead {
|
|
% -12 -32 24 36 bbox
|
|
% 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
|
|
|
|
/Isource {
|
|
% -32 -64 163 128 bbox
|
|
(1) (m) 2 beginparm
|
|
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 cf} 2 9 0 1.00 0 64 pinlabel
|
|
(i.m) {/Times-Roman cf} 2 13 0 1.00 0 -64 pinlabel
|
|
sce
|
|
mark v2 v1 (spice:I%i %pi.p %pi.m ) {/Times-Roman cf} ctmk 20 0 1.00 -96 -160
|
|
infolabel
|
|
mark (A) v2 {hS} v1 {/Times-Roman cf} ctmk 20 0 1.00 48 0 label
|
|
endgate
|
|
} def
|
|
|
|
/ACsource {
|
|
% -32 -64 211 128 bbox
|
|
(5) (0) (1) (k) 4 beginparm
|
|
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 cf} 2 9 0 1.00 0 64 pinlabel
|
|
(s.m) {/Times-Roman cf} 2 13 0 1.00 0 -64 pinlabel
|
|
sce
|
|
mark (\)) v4 v3 ( ) v1 ( ) v2 (spice:V%i %ps.p %ps.m SIN\() {/Times-Roman cf}
|
|
ctmk 20 0 1.00 -336 -160 infolabel
|
|
mark (offset) {ss} (V) {hS} v2 {/Times-Roman cf} ctmk 20 0 1.00 48 0 label
|
|
mark (p-p) {ss} (V) {hS} v1 {/Times-Roman cf} ctmk 20 0 1.00 48 48 label
|
|
mark (Hz) v4 {hS} v3 {/Times-Roman cf} ctmk 20 0 1.00 48 -48 label
|
|
endgate
|
|
} def
|
|
|
|
/nMOS {
|
|
% -64 -64 160 128 bbox
|
|
(3) (2) (nmos) (?) 4 beginparm
|
|
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
|
|
sce
|
|
mark v2 ( L=) v1 ( W=) v3 ( %pD %pG %pS GND ) v4 (spice:M) {/Times-Roman cf}
|
|
ctmk 4 0 1.00 -244 -139 infolabel
|
|
sce
|
|
(sim:n %pG %pD %pS) {/Times-Roman cf} 2 4 0 1.00 -244 -187 infolabel
|
|
mark v1 (W=) {/Times-Roman cf} ctmk 20 0 1.00 16 16 label
|
|
mark v2 (L=) {/Times-Roman cf} ctmk 20 0 1.00 16 -16 label
|
|
endgate
|
|
} def
|
|
|
|
/pMOS {
|
|
% -64 -64 160 128 bbox
|
|
(3) (2) (pmos) (?) 4 beginparm
|
|
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
|
|
sce
|
|
mark v2 ( L=) v1 ( W=) v3 ( %pD %pG %pS Vdd ) v4 (spice:M) {/Times-Roman cf}
|
|
ctmk 4 0 1.00 -196 -139 infolabel
|
|
sce
|
|
(sim:p %pG %pD %pS) {/Times-Roman cf} 2 4 0 1.00 -196 -187 infolabel
|
|
mark v1 (W=) {/Times-Roman cf} ctmk 20 0 1.00 16 16 label
|
|
mark v2 (L=) {/Times-Roman cf} ctmk 20 0 1.00 16 -16 label
|
|
endgate
|
|
} def
|
|
|
|
/nMOS4 {
|
|
% -64 -64 234 128 bbox
|
|
(3) (2) (nmos) (?) 4 beginparm
|
|
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
|
|
sce
|
|
mark v2 ( L=) v1 ( W=) v3 ( %pD %pG %pS %pB ) v4 (spice:M) {/Times-Roman cf}
|
|
ctmk 4 0 1.00 -244 -139 infolabel
|
|
sce
|
|
(sim:n %pG %pD %pS) {/Times-Roman cf} 2 4 0 1.00 -244 -187 infolabel
|
|
mark v2 (/) v1 (W/L=) {/Times-Roman cf} ctmk 20 0 1.00 16 32 label
|
|
1 1.00 -32 0 32 0 2 polygon
|
|
endgate
|
|
} def
|
|
|
|
/pMOS4 {
|
|
% -64 -64 234 128 bbox
|
|
(3) (2) (pmos) (?) 4 beginparm
|
|
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
|
|
sce
|
|
mark v2 ( L=) v1 ( W=) v3 ( %pD %pG %pS %pB ) v4 (spice:M) {/Times-Roman cf}
|
|
ctmk 4 0 1.00 -196 -139 infolabel
|
|
sce
|
|
(sim:p %pG %pD %pS) {/Times-Roman cf} 2 4 0 1.00 -196 -187 infolabel
|
|
mark v2 (/) v1 (W/L=) {/Times-Roman cf} ctmk 20 0 1.00 16 32 label
|
|
1 1.00 -32 0 32 0 2 polygon
|
|
endgate
|
|
} def
|
|
|
|
/NPN {
|
|
% -64 -64 73 128 bbox
|
|
(npn) (?) 2 beginparm
|
|
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 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
|
|
sce
|
|
mark v1 ( %pC %pB %pE ) v2 (spice:Q) {/Times-Roman cf} ctmk 4 0 1.00 -244 -139
|
|
infolabel
|
|
sce
|
|
(sim:b %pB %pE %pC) {/Times-Roman cf} 2 4 0 1.00 -244 -187 infolabel
|
|
endgate
|
|
} def
|
|
|
|
/PNP {
|
|
% -64 -64 64 128 bbox
|
|
(pnp) (?) 2 beginparm
|
|
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 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
|
|
sce
|
|
mark v1 ( %pC %pB %pE ) v2 (spice:Q) {/Times-Roman cf} ctmk 4 0 1.00 -244 -139
|
|
infolabel
|
|
endgate
|
|
} def
|
|
|
|
/Diode {
|
|
% -8 -48 36 96 bbox
|
|
(?) 1 beginparm
|
|
248 1.0 -18 -16 0 16 18 -16 3 polygon
|
|
0 -48 0 -16 wire
|
|
0 48 0 16 wire
|
|
-18 16 18 16 wire
|
|
1 0 0 scb
|
|
(1) {/Times-Roman cf} 2 9 0 1.0 0 48 pinlabel
|
|
(2) {/Times-Roman cf} 2 13 0 1.0 0 -48 pinlabel
|
|
sce
|
|
mark v1 (pcb:D) {/Helvetica cf} ctmk 20 0 1.00 -64 -144 infolabel
|
|
mark ( %p1 %p2 diode) v1 (spice:D) {/Times-Roman cf} ctmk 4 0 1.00 -64 -192
|
|
infolabel
|
|
endgate
|
|
} def
|
|
|
|
% EndLib
|