-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathThirtyTwoBitAdder.bdf
More file actions
534 lines (534 loc) · 11.7 KB
/
Copy pathThirtyTwoBitAdder.bdf
File metadata and controls
534 lines (534 loc) · 11.7 KB
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
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
/*
WARNING: Do NOT edit the input and output ports in this file in a text
editor if you plan to continue editing the block that represents it in
the Block Editor! File corruption is VERY likely to occur.
*/
/*
Copyright (C) 1991-2013 Altera Corporation
Your use of Altera Corporation's design tools, logic functions
and other software and tools, and its AMPP partner logic
functions, and any output files from any of the foregoing
(including device programming or simulation files), and any
associated documentation or information are expressly subject
to the terms and conditions of the Altera Program License
Subscription Agreement, Altera MegaCore Function License
Agreement, or other applicable license agreement, including,
without limitation, that your use is for the sole purpose of
programming logic devices manufactured by Altera and sold by
Altera or its authorized distributors. Please refer to the
applicable agreement for further details.
*/
(header "graphic" (version "1.4"))
(pin
(input)
(rect 288 408 456 424)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "c0" (rect 5 0 16 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 84 12)(pt 109 12))
(line (pt 84 4)(pt 109 4))
(line (pt 113 8)(pt 168 8))
(line (pt 84 12)(pt 84 4))
(line (pt 109 4)(pt 113 8))
(line (pt 109 12)(pt 113 8))
)
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 320 288 488 304)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "X[31..0]" (rect 5 0 42 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 84 12)(pt 109 12))
(line (pt 84 4)(pt 109 4))
(line (pt 113 8)(pt 168 8))
(line (pt 84 12)(pt 84 4))
(line (pt 109 4)(pt 113 8))
(line (pt 109 12)(pt 113 8))
)
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 288 352 456 368)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "Y[31..0]" (rect 5 0 45 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 84 12)(pt 109 12))
(line (pt 84 4)(pt 109 4))
(line (pt 113 8)(pt 168 8))
(line (pt 84 12)(pt 84 4))
(line (pt 109 4)(pt 113 8))
(line (pt 109 12)(pt 113 8))
)
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
)
(pin
(output)
(rect 1600 432 1776 448)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Gpp" (rect 90 0 110 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8))
(line (pt 52 4)(pt 78 4))
(line (pt 52 12)(pt 78 12))
(line (pt 52 12)(pt 52 4))
(line (pt 78 4)(pt 82 8))
(line (pt 82 8)(pt 78 12))
(line (pt 78 12)(pt 82 8))
)
)
(pin
(output)
(rect 1600 480 1776 496)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Ppp" (rect 90 0 108 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8))
(line (pt 52 4)(pt 78 4))
(line (pt 52 12)(pt 78 12))
(line (pt 52 12)(pt 52 4))
(line (pt 78 4)(pt 82 8))
(line (pt 82 8)(pt 78 12))
(line (pt 78 12)(pt 82 8))
)
)
(pin
(output)
(rect 1600 528 1776 544)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "S[31..0]" (rect 90 0 128 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8))
(line (pt 52 4)(pt 78 4))
(line (pt 52 12)(pt 78 12))
(line (pt 52 12)(pt 52 4))
(line (pt 78 4)(pt 82 8))
(line (pt 82 8)(pt 78 12))
(line (pt 78 12)(pt 82 8))
)
)
(symbol
(rect 1216 440 1312 632)
(text "carrylookaheadlogic" (rect 5 0 119 14)(font "Arial" (font_size 8)))
(text "inst4" (rect 8 176 31 188)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "c0" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "c0" (rect 21 27 35 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32))
)
(port
(pt 0 48)
(input)
(text "P0" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "P0" (rect 21 43 35 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 0 64)
(input)
(text "G0" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "G0" (rect 21 59 37 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64))
)
(port
(pt 0 80)
(input)
(text "P1" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "P1" (rect 21 75 35 89)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80))
)
(port
(pt 0 96)
(input)
(text "G1" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "G1" (rect 21 91 37 105)(font "Arial" (font_size 8)))
(line (pt 0 96)(pt 16 96))
)
(port
(pt 0 112)
(input)
(text "P2" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "P2" (rect 21 107 35 121)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 16 112))
)
(port
(pt 0 128)
(input)
(text "G2" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "G2" (rect 21 123 37 137)(font "Arial" (font_size 8)))
(line (pt 0 128)(pt 16 128))
)
(port
(pt 0 144)
(input)
(text "P3" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "P3" (rect 21 139 35 153)(font "Arial" (font_size 8)))
(line (pt 0 144)(pt 16 144))
)
(port
(pt 0 160)
(input)
(text "G3" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "G3" (rect 21 155 37 169)(font "Arial" (font_size 8)))
(line (pt 0 160)(pt 16 160))
)
(port
(pt 96 32)
(output)
(text "c1" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "c1" (rect 61 27 75 41)(font "Arial" (font_size 8)))
(line (pt 96 32)(pt 80 32))
)
(port
(pt 96 48)
(output)
(text "c2" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "c2" (rect 61 43 75 57)(font "Arial" (font_size 8)))
(line (pt 96 48)(pt 80 48))
)
(port
(pt 96 64)
(output)
(text "c3" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "c3" (rect 61 59 75 73)(font "Arial" (font_size 8)))
(line (pt 96 64)(pt 80 64))
)
(port
(pt 96 80)
(output)
(text "Gp" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Gp" (rect 59 75 75 89)(font "Arial" (font_size 8)))
(line (pt 96 80)(pt 80 80))
)
(port
(pt 96 96)
(output)
(text "c4" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "c4" (rect 61 91 75 105)(font "Arial" (font_size 8)))
(line (pt 96 96)(pt 80 96))
)
(port
(pt 96 112)
(output)
(text "Pp" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "Pp" (rect 61 107 75 121)(font "Arial" (font_size 8)))
(line (pt 96 112)(pt 80 112))
)
(drawing
(rectangle (rect 16 16 80 176))
)
)
(symbol
(rect 896 280 1040 376)
(text "SixteenBitAdder" (rect 5 0 97 14)(font "Arial" (font_size 8)))
(text "inst" (rect 8 80 25 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "X[15..0]" (rect 0 0 43 14)(font "Arial" (font_size 8)))
(text "X[15..0]" (rect 21 27 64 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "Y[15..0]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "Y[15..0]" (rect 21 43 65 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "c0" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "c0" (rect 21 59 35 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64))
)
(port
(pt 144 32)
(output)
(text "Gpp" (rect 0 0 23 14)(font "Arial" (font_size 8)))
(text "Gpp" (rect 100 27 123 41)(font "Arial" (font_size 8)))
(line (pt 144 32)(pt 128 32))
)
(port
(pt 144 48)
(output)
(text "Ppp" (rect 0 0 21 14)(font "Arial" (font_size 8)))
(text "Ppp" (rect 102 43 123 57)(font "Arial" (font_size 8)))
(line (pt 144 48)(pt 128 48))
)
(port
(pt 144 64)
(output)
(text "S[15..0]" (rect 0 0 43 14)(font "Arial" (font_size 8)))
(text "S[15..0]" (rect 80 59 123 73)(font "Arial" (font_size 8)))
(line (pt 144 64)(pt 128 64)(line_width 3))
)
(drawing
(rectangle (rect 16 16 128 80))
)
)
(symbol
(rect 896 432 1040 528)
(text "SixteenBitAdder" (rect 5 0 97 14)(font "Arial" (font_size 8)))
(text "inst5" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "X[15..0]" (rect 0 0 43 14)(font "Arial" (font_size 8)))
(text "X[15..0]" (rect 21 27 64 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "Y[15..0]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "Y[15..0]" (rect 21 43 65 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "c0" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "c0" (rect 21 59 35 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64))
)
(port
(pt 144 32)
(output)
(text "Gpp" (rect 0 0 23 14)(font "Arial" (font_size 8)))
(text "Gpp" (rect 100 27 123 41)(font "Arial" (font_size 8)))
(line (pt 144 32)(pt 128 32))
)
(port
(pt 144 48)
(output)
(text "Ppp" (rect 0 0 21 14)(font "Arial" (font_size 8)))
(text "Ppp" (rect 102 43 123 57)(font "Arial" (font_size 8)))
(line (pt 144 48)(pt 128 48))
)
(port
(pt 144 64)
(output)
(text "S[15..0]" (rect 0 0 43 14)(font "Arial" (font_size 8)))
(text "S[15..0]" (rect 80 59 123 73)(font "Arial" (font_size 8)))
(line (pt 144 64)(pt 128 64)(line_width 3))
)
(drawing
(rectangle (rect 16 16 128 80))
)
)
(connector
(pt 1216 472)
(pt 1136 472)
)
(connector
(pt 1136 472)
(pt 1136 248)
)
(connector
(pt 1136 248)
(pt 840 248)
)
(connector
(pt 1080 312)
(pt 1080 504)
)
(connector
(pt 1080 504)
(pt 1216 504)
)
(connector
(pt 1104 328)
(pt 1104 488)
)
(connector
(pt 1104 488)
(pt 1216 488)
)
(connector
(pt 1048 464)
(pt 1048 536)
)
(connector
(pt 1048 536)
(pt 1216 536)
)
(connector
(pt 1064 520)
(pt 1064 480)
)
(connector
(pt 1064 520)
(pt 1216 520)
)
(connector
(text "c1" (rect 1322 456 1333 468)(font "Arial" ))
(pt 1312 472)
(pt 1344 472)
)
(connector
(text "c2" (rect 1322 472 1333 484)(font "Arial" ))
(pt 1312 488)
(pt 1344 488)
)
(connector
(text "c3" (rect 1322 488 1333 500)(font "Arial" ))
(pt 1312 504)
(pt 1344 504)
)
(connector
(pt 1400 824)
(pt 1400 536)
)
(connector
(pt 1312 536)
(pt 1400 536)
)
(connector
(text "c0" (rect 586 240 597 252)(font "Arial" ))
(pt 584 256)
(pt 840 256)
)
(connector
(text "c0" (rect 458 400 469 412)(font "Arial" ))
(pt 456 416)
(pt 488 416)
)
(connector
(text "c4" (rect 1410 808 1421 820)(font "Arial" ))
(pt 1432 824)
(pt 1400 824)
)
(connector
(pt 1496 520)
(pt 1312 520)
)
(connector
(pt 1496 520)
(pt 1496 440)
)
(connector
(pt 1496 440)
(pt 1600 440)
)
(connector
(pt 1600 488)
(pt 1368 488)
)
(connector
(pt 1368 488)
(pt 1368 552)
)
(connector
(pt 1312 552)
(pt 1368 552)
)
(connector
(pt 1040 312)
(pt 1080 312)
)
(connector
(pt 1040 328)
(pt 1104 328)
)
(connector
(pt 1040 464)
(pt 1048 464)
)
(connector
(pt 1040 480)
(pt 1064 480)
)
(connector
(pt 1040 496)
(pt 1056 496)
(bus)
)
(connector
(pt 1056 496)
(pt 1056 400)
(bus)
)
(connector
(pt 840 344)
(pt 896 344)
)
(connector
(text "c1" (rect 882 480 893 492)(font "Arial" ))
(pt 896 496)
(pt 872 496)
)
(connector
(text "X[15..0]" (rect 810 296 847 308)(font "Arial" ))
(pt 800 312)
(pt 896 312)
(bus)
)
(connector
(text "X[31..16]" (rect 754 448 797 460)(font "Arial" ))
(pt 896 464)
(pt 744 464)
(bus)
)
(connector
(text "S[15..0]" (rect 1394 328 1432 340)(font "Arial" ))
(pt 1040 344)
(pt 1424 344)
(bus)
)
(connector
(pt 840 248)
(pt 840 256)
)
(connector
(pt 840 256)
(pt 840 344)
)
(connector
(text "Y[15..0]" (rect 722 312 762 324)(font "Arial" ))
(pt 712 328)
(pt 896 328)
(bus)
)
(connector
(text "Y[31..16]" (rect 533 487 579 499)(font "Arial" ))
(pt 544 480)
(pt 896 480)
(bus)
)
(connector
(text "Y[31..0]" (rect 466 344 506 356)(font "Arial" ))
(pt 456 360)
(pt 496 360)
(bus)
)
(connector
(text "X[31..0]" (rect 498 280 535 292)(font "Arial" ))
(pt 536 296)
(pt 488 296)
(bus)
)
(connector
(text "S[31..16]" (rect 1155 403 1199 415)(font "Arial" ))
(pt 1056 400)
(pt 1192 400)
(bus)
)
(connector
(text "S[31..0]" (rect 1538 520 1576 532)(font "Arial" ))
(pt 1536 536)
(pt 1600 536)
(bus)
)
(junction (pt 840 256))