forked from ChairImpSec/PROLEAD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
library.lib
408 lines (354 loc) · 3.76 KB
/
library.lib
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
%%%%%% library file %%%%%%%
% usage:
%
% Library
% library_name
%
% Type of the cell: Gate/Reg
%
% # of its variants
% variant names
%
% # of inputs
% input names
%
% # of outputs
% output names
%
% formula of each output. Possible terms in formula: not, nand, and, or, nor, xor, xnor. Parentheses MUST be placed.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Library
custom
Reg
1 DFF
2 C D
1 Q
((not C) and Q) or (C and D)
Gate
1 AND
2 A B
1 Y
A and B
Gate
1 NAND
2 A B
1 Y
not (A and B)
Gate
1 OR
2 A B
1 Y
A or B
Gate
1 NOR
2 A B
1 Y
not (A or B)
Gate
1 XOR
2 A B
1 Y
A xor B
Gate
1 XNOR
2 A B
1 Y
not (A xor B)
Gate
1 NOT
1 A
1 Y
not A
Gate
1 Mux2
3 S A B
1 Q
(S and B) or (A and (not S))
Buffer
2 BUFF BUF
1 A
1 Y
not (not A)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Library
NANG45
Gate
4
INV_X1 INV_X2 INV_X4 INV_X8
1
A
1
ZN
not A
Gate
3
XNOR2_X1 XNOR2_X2 XNOR2_X4
2
A B
1
ZN
not (A xor B)
Gate
3
XOR2_X1 XOR2_X2 XOR2_X4
2
A B
1
Z
A xor B
Gate
3
AOI22_X1 AOI22_X2 AOI22_X4
4
A1 A2 B1 B2
1
ZN
not ((A1 and A2) or (B1 and B2))
Gate
3
MUX2_X1 MUX2_X2 MUX2_X4
3
A B S
1
Z
(S and B) or (A and (not S))
Gate
3
AND4_X1 AND4_X2 AND4_X4
4
A1 A2 A3 A4
1
ZN
A1 and A2 and A3 and A4
Gate
3
NOR2_X1 NOR2_X2 NOR2_X4
2
A1 A2
1
ZN
not (A1 or A2)
Gate
3
NAND2_X1 NAND2_X2 NAND2_X4
2
A1 A2
1
ZN
not (A1 and A2)
Gate
3
NAND3_X1 NAND3_X2 NAND3_X4
3
A1 A2 A3
1
ZN
not (A1 and A2 and A3)
Gate
3
NAND4_X1 NAND4_X2 NAND4_X4
4
A1 A2 A3 A4
1
ZN
not (A1 and A2 and A3 and A4)
Gate
3
OR2_X1 OR2_X2 OR2_X4
2
A1 A2
1
ZN
A1 or A2
Gate
3
NOR3_X1 NOR3_X2 NOR3_X4
3
A1 A2 A3
1
ZN
not (A1 or A2 or A3)
Gate
3
AOI211_X1 AOI211_X2 AOI211_X4
4
A B C1 C2
1
ZN
not ((C1 and C2) or B or A)
Gate
3
AOI221_X1 AOI221_X2 AOI221_X4
5
A B1 B2 C1 C2
1
ZN
not ((C1 and C2) or A or (B1 and B2))
Gate
3
OAI211_X1 OAI211_X2 OAI211_X4
4
A B C1 C2
1
ZN
not ((C1 or C2) and A and B)
Reg
3
DFF_X1 DFF_X2 DFF_X4
2
D CK
2
Q QN
((not CK) and Q) or (CK and D)
((not CK) and (not Q)) or (CK and (not D))
Reg
3
SDFF_X1 SDFF_X2 SDFF_X4
4
D SI SE CK
2
Q QN
((not CK) and Q) or (CK and (((not SE) and D) or (SE and SI)))
((not CK) and (not Q)) or (CK and (((not SE) and (not D)) or (SE and (not SI))))
Gate
3
OAI21_X1 OAI21_X2 OAI21_X4
3
A B1 B2
1
ZN
not (A and (B1 or B2))
Gate
3
AOI21_X1 AOI21_X2 AOI21_X4
3
A B1 B2
1
ZN
not (A or (B1 and B2))
Gate
3
OAI33_X1 OAI33_X2 OAI33_X4
6
A1 A2 A3 B1 B2 B3
1
ZN
not ((A1 or A2 or A3) and (B1 or B2 or B3))
Buffer
7
BUF_X1 BUF_X2 BUF_X4 BUF_X8
CLKBUF_X1 CLKBUF_X2 CLKBUF_X4
1
A
1
Z
not (not A)
Gate
3
AND2_X1 AND2_X2 AND2_X4
2
A1 A2
1
ZN
A1 and A2
Gate
3
OAI22_X1 OAI22_X2 OAI22_X4
4
A1 A2 B1 B2
1
ZN
not ((A1 or A2) and (B1 or B2))
Gate
3
NOR4_X1 NOR4_X2 NOR4_X4
4
A1 A2 A3 A4
1
ZN
not (A1 or A2 or A3 or A4)
Gate
3
OAI221_X1 OAI221_X2 OAI221_X4
5
A B1 B2 C1 C2
1
ZN
not ((C1 or C2) and A and (B1 or B2))
Gate
3
AOI222_X1 AOI222_X2 AOI222_X4
6
A1 A2 B1 B2 C1 C2
1
ZN
not (((A1 and A2) or (B1 and B2)) or (C1 and C2))
Gate
3
OR3_X1 OR3_X2 OR3_X4
3
A1 A2 A3
1
ZN
A1 or A2 or A3
Gate
3
AND3_X1 AND3_X2 AND3_X4
3
A1 A2 A3
1
ZN
A1 and A2 and A3
Gate
3
OAI222_X1 OAI222_X2 OAI222_X4
6
A1 A2 B1 B2 C1 C2
1
ZN
not (((A1 or A2) and (B1 or B2)) and (C1 or C2))
Gate
3
OR4_X1 OR4_X2 OR4_X4
4
A1 A2 A3 A4
1
ZN
A1 or A2 or A3 or A4
%%%%%%%%%%%%%%%%%%%%%
Gate
3
DLL_X1 DLL_X2 DLL_X4
2
D GN
1
Q
not (not D)
Reg
3
DFFR_X1 DFFR_X2 DFFR_X4
3
D CK RN
2
Q QN
RN and (((not CK) and Q) or (CK and D))
(not RN) or (((not CK) and (not Q)) or (CK and (not D)))
Reg
3
DFFS_X1 DFFS_X2 DFFS_X4
3
D CK SN
2
Q QN
(not SN) or (((not CK) and Q) or (CK and D))
SN and (((not CK) and (not Q)) or (CK and (not D)))
Reg
3
SDFFR_X1 SDFFR_X2 SDFFR_X4
5
D SI SE CK RN
2
Q QN
RN and (((not CK) and Q) or (CK and (((not SE) and D) or (SE and SI))))
(not RN) or (((not CK) and (not Q)) or (CK and (((not SE) and (not D)) or (SE and (not SI)))))