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

% XCircuitLib library built-in objects

/digital::nand {
% trivial
begingate
1 1.0 0 -48 -64 -48 -64 48 0 48 4 polygon
1 1.0 56 0 8 0 360 xcarc
1 1.0 0 0 48 -90 90 xcarc
1 0 0 scb
(Out) {/Times-Roman cf} 1 4 0 1.0 64 0 pinlabel
(In.1) {/Times-Roman cf} 1 7 0 1.0 -64 32 pinlabel
(In.2) {/Times-Roman cf} 1 7 0 1.0 -64 -32 pinlabel
sce
endgate
} def

/digital::nor {
% trivial
begingate
-64 48 -35 48 wire
-64 -48 -35 -48 wire
1 1.0 -128 0 80 -37 37 xcarc
1 1.0 56 0 8 0 360 xcarc
1 1.0 -35 -48 96 30 90 xcarc
1 1.0 -35 48 96 270 330 xcarc
1 0 0 scb
(Out) {/Times-Roman cf} 1 4 0 1.0 64 0 pinlabel
(In.1) {/Times-Roman cf} 1 7 0 1.0 -56 32 pinlabel
(In.2) {/Times-Roman cf} 1 7 0 1.0 -56 -32 pinlabel
sce
endgate
} def

/digital::invert {
% trivial
begingate
0  1.00 -32 -40 -32 40 40 0 3 polygon
1  1.00 48 0 8 0.00 360.00 xcarc
1  1.00 -32 0 -48 0 2 polygon
1  1.00 56 0 64 0 2 polygon
1.000 0.000 0.000 scb
(Out) {/Times-Roman cf} 1 4 0 1.0 64 0 pinlabel
(In) {/Times-Roman cf} 1 7 0 1.0 -48 0 pinlabel
sce
endgate
} def

/digital::and {
% trivial
begingate
1 1.0 0 -48 -64 -48 -64 48 0 48 4 polygon
1 1.0 0 0 48 -90 90 xcarc
1 0 0 scb
(Out) {/Times-Roman cf} 1 4 0 1.0 48 0 pinlabel
(In.1) {/Times-Roman cf} 1 7 0 1.0 -64 32 pinlabel
(In.2) {/Times-Roman cf} 1 7 0 1.0 -64 -32 pinlabel
sce
endgate
} def

/digital::or {
% trivial
begingate
1 1.0 -19 -48 96 30 90 xcarc
1 1.0 -19 48 96 270 330 xcarc
1 1.0 -112 0 80 -37 37 xcarc
-48 48 -19 48 wire
-48 -48 -19 -48 wire
1 0 0 scb
(Out) {/Times-Roman cf} 1 4 0 1.0 64 0 pinlabel
(In.1) {/Times-Roman cf} 1 7 0 1.0 -40 32 pinlabel
(In.2) {/Times-Roman cf} 1 7 0 1.0 -40 -32 pinlabel
sce
endgate
} def

/digital::buffer {
% trivial
begingate
0 1.0 -32 -40 -32 40 40 0 3 polygon
-32 0 -48 0 wire
40 0 64 0 wire
1.000 0.000 0.000 scb
(Out) {/Times-Roman cf} 1 4 0 1.0 64 0 pinlabel
(In) {/Times-Roman cf} 1 7 0 1.0 -48 0 pinlabel
sce
endgate
} def

/digital::xor {
% trivial
begingate
1 1.0 -19 -48 96 30 90 xcarc
1 1.0 -19 48 96 270 330 xcarc
1 1.0 -128 0 80 -37 37 xcarc
1 1.0 -112 0 80 -37 37 xcarc
-48 48 -19 48 wire
-48 -48 -19 -48 wire
1 0 0 scb
(Out) {/Times-Roman cf} 1 4 0 1.0 64 0 pinlabel
(In.1) {/Times-Roman cf} 1 7 0 1.0 -56 32 pinlabel
(In.2) {/Times-Roman cf} 1 7 0 1.0 -56 -32 pinlabel
sce
endgate
} def

/digital::xnor {
% trivial
begingate
1 1.0 72 0 8 0 360 xcarc
1 1.0 -19 -48 96 30 90 xcarc
1 1.0 -19 48 96 270 330 xcarc
1 1.0 -128 0 80 -37 37 xcarc
1 1.0 -112 0 80 -37 37 xcarc
-48 48 -19 48 wire
-48 -48 -19 -48 wire
1 0 0 scb
(Out) {/Times-Roman cf} 1 4 0 1.0 80 0 pinlabel
(In.1) {/Times-Roman cf} 1 7 0 1.0 -56 32 pinlabel
(In.2) {/Times-Roman cf} 1 7 0 1.0 -56 -32 pinlabel
sce
endgate
} def

/digital::5V {
% trivial
begingate
-32 0 32 0 wire
0 0 0 -32 wire
(V) {/Times-Roman cf} (+5) {/Symbol cf} 2 17 0 0.9 0 8 label
0.933 0.604 0 scb
(dVdd) {/Times-Roman cf} 1 13 0 1.0 0 -32 pinglobal
sce
endgate
} def

/analog::gnd {
% trivial
begingate
0 0 0 -32 wire
-32 -32 32 -32 wire
-18 -46 18 -46 wire
-4 -60 4 -60 wire
0.933 0.604 0 scb
(GND) {/Times-Roman cf} 1 1 0 1.0 0 0 pinglobal
sce
endgate
} def

/digital::battery {
% trivial
begingate
-32 32 32 32 wire
0 64 0 32 wire
-16 12 16 12 wire
-16 -28 16 -28 wire
-32 -8 32 -8 wire
0 -64 0 -28 wire
1 0 0 scb
(b.p) {/Times-Roman cf} 1 9 0 1.0 0 64 pinlabel
(b.m) {/Times-Roman cf} 1 13 0 1.0 0 -64 pinlabel
sce
endgate
} def

/digital::passtrans {
% trivial
begingate
0 1.0 -64 48 0 -48 64 48 3 polygon
0 1.0 0 48 -64 -48 64 -48 3 polygon
-50 0 -80 0 wire
32 0 80 0 wire
0 48 0 64 wire
0 -48 0 -64 wire
1 1.0 -42 0 8 0 360 xcarc
1 0 0 scb
(c.p) {/Times-Roman cf} 1 7 0 1.0 -80 0 pinlabel
(c.n) {/Times-Roman cf} 1 4 0 1.0 80 0 pinlabel
(p.1) {/Times-Roman cf} 1 9 0 1.0 0 64 pinlabel
(p.2) {/Times-Roman cf} 1 13 0 1.0 0 -64 pinlabel
sce
endgate
} def

% EndLib