-
Notifications
You must be signed in to change notification settings - Fork 0
/
mux2barramento3_0.bdf
658 lines (658 loc) · 13.4 KB
/
mux2barramento3_0.bdf
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
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
/*
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 32 80 200 96)
(text "INPUT" (rect 125 0 154 9)(font "Arial" (font_size 6)))
(text "ESCOLHA" (rect 5 0 56 10)(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 149 16)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 24 32 200 48)
(text "INPUT" (rect 133 0 162 9)(font "Arial" (font_size 6)))
(text "ENTRADA0[6..0]" (rect 5 0 86 10)(font "Arial" ))
(pt 176 8)
(drawing
(line (pt 92 12)(pt 117 12))
(line (pt 92 4)(pt 117 4))
(line (pt 121 8)(pt 176 8))
(line (pt 92 12)(pt 92 4))
(line (pt 117 4)(pt 121 8))
(line (pt 117 12)(pt 121 8))
)
(text "VCC" (rect 136 7 157 16)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 24 56 200 72)
(text "INPUT" (rect 133 0 162 9)(font "Arial" (font_size 6)))
(text "ENTRADA1[6..0]" (rect 5 0 86 10)(font "Arial" ))
(pt 176 8)
(drawing
(line (pt 92 12)(pt 117 12))
(line (pt 92 4)(pt 117 4))
(line (pt 121 8)(pt 176 8))
(line (pt 92 12)(pt 92 4))
(line (pt 117 4)(pt 121 8))
(line (pt 117 12)(pt 121 8))
)
(text "VCC" (rect 136 7 157 16)(font "Arial" (font_size 6)))
)
(pin
(output)
(rect 1528 296 1704 312)
(text "OUTPUT" (rect 1 0 41 9)(font "Arial" (font_size 6)))
(text "SAIDA[6..0]" (rect 90 0 145 10)(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 208 128 360 240)
(text "mux2" (rect 5 0 32 10)(font "Arial" ))
(text "inst" (rect 8 96 25 106)(font "Arial" ))
(port
(pt 56 0)
(input)
(text "entrada0" (rect 0 0 43 10)(font "Arial" ))
(text "entrada0" (rect 48 25 58 68)(font "Arial" )(vertical))
(line (pt 56 0)(pt 56 17))
)
(port
(pt 104 0)
(input)
(text "entrada1" (rect 0 0 43 10)(font "Arial" ))
(text "entrada1" (rect 96 25 106 68)(font "Arial" )(vertical))
(line (pt 104 0)(pt 104 17))
)
(port
(pt 152 80)
(input)
(text "escolha" (rect -8 0 29 10)(font "Arial" ))
(text "escolha" (rect 96 72 133 82)(font "Arial" ))
(line (pt 136 80)(pt 152 80))
)
(port
(pt 64 112)
(output)
(text "saida" (rect 0 0 27 10)(font "Arial" ))
(text "saida" (rect 56 61 66 88)(font "Arial" )(vertical))
(line (pt 64 112)(pt 64 97))
)
(drawing
(rectangle (rect 40 16 136 96))
)
)
(symbol
(rect 384 128 536 240)
(text "mux2" (rect 5 0 32 10)(font "Arial" ))
(text "inst1" (rect 8 96 31 106)(font "Arial" ))
(port
(pt 56 0)
(input)
(text "entrada0" (rect 0 0 43 10)(font "Arial" ))
(text "entrada0" (rect 48 25 58 68)(font "Arial" )(vertical))
(line (pt 56 0)(pt 56 17))
)
(port
(pt 104 0)
(input)
(text "entrada1" (rect 0 0 43 10)(font "Arial" ))
(text "entrada1" (rect 96 25 106 68)(font "Arial" )(vertical))
(line (pt 104 0)(pt 104 17))
)
(port
(pt 152 80)
(input)
(text "escolha" (rect -8 0 29 10)(font "Arial" ))
(text "escolha" (rect 96 72 133 82)(font "Arial" ))
(line (pt 136 80)(pt 152 80))
)
(port
(pt 64 112)
(output)
(text "saida" (rect 0 0 27 10)(font "Arial" ))
(text "saida" (rect 56 61 66 88)(font "Arial" )(vertical))
(line (pt 64 112)(pt 64 97))
)
(drawing
(rectangle (rect 40 16 136 96))
)
)
(symbol
(rect 560 128 712 240)
(text "mux2" (rect 5 0 32 10)(font "Arial" ))
(text "inst2" (rect 8 96 31 106)(font "Arial" ))
(port
(pt 56 0)
(input)
(text "entrada0" (rect 0 0 43 10)(font "Arial" ))
(text "entrada0" (rect 48 25 58 68)(font "Arial" )(vertical))
(line (pt 56 0)(pt 56 17))
)
(port
(pt 104 0)
(input)
(text "entrada1" (rect 0 0 43 10)(font "Arial" ))
(text "entrada1" (rect 96 25 106 68)(font "Arial" )(vertical))
(line (pt 104 0)(pt 104 17))
)
(port
(pt 152 80)
(input)
(text "escolha" (rect -8 0 29 10)(font "Arial" ))
(text "escolha" (rect 96 72 133 82)(font "Arial" ))
(line (pt 136 80)(pt 152 80))
)
(port
(pt 64 112)
(output)
(text "saida" (rect 0 0 27 10)(font "Arial" ))
(text "saida" (rect 56 61 66 88)(font "Arial" )(vertical))
(line (pt 64 112)(pt 64 97))
)
(drawing
(rectangle (rect 40 16 136 96))
)
)
(symbol
(rect 736 128 888 240)
(text "mux2" (rect 5 0 32 10)(font "Arial" ))
(text "inst3" (rect 8 96 31 106)(font "Arial" ))
(port
(pt 56 0)
(input)
(text "entrada0" (rect 0 0 43 10)(font "Arial" ))
(text "entrada0" (rect 48 25 58 68)(font "Arial" )(vertical))
(line (pt 56 0)(pt 56 17))
)
(port
(pt 104 0)
(input)
(text "entrada1" (rect 0 0 43 10)(font "Arial" ))
(text "entrada1" (rect 96 25 106 68)(font "Arial" )(vertical))
(line (pt 104 0)(pt 104 17))
)
(port
(pt 152 80)
(input)
(text "escolha" (rect -8 0 29 10)(font "Arial" ))
(text "escolha" (rect 96 72 133 82)(font "Arial" ))
(line (pt 136 80)(pt 152 80))
)
(port
(pt 64 112)
(output)
(text "saida" (rect 0 0 27 10)(font "Arial" ))
(text "saida" (rect 56 61 66 88)(font "Arial" )(vertical))
(line (pt 64 112)(pt 64 97))
)
(drawing
(rectangle (rect 40 16 136 96))
)
)
(symbol
(rect 912 128 1064 240)
(text "mux2" (rect 5 0 32 10)(font "Arial" ))
(text "inst4" (rect 8 96 31 106)(font "Arial" ))
(port
(pt 56 0)
(input)
(text "entrada0" (rect 0 0 43 10)(font "Arial" ))
(text "entrada0" (rect 48 25 58 68)(font "Arial" )(vertical))
(line (pt 56 0)(pt 56 17))
)
(port
(pt 104 0)
(input)
(text "entrada1" (rect 0 0 43 10)(font "Arial" ))
(text "entrada1" (rect 96 25 106 68)(font "Arial" )(vertical))
(line (pt 104 0)(pt 104 17))
)
(port
(pt 152 80)
(input)
(text "escolha" (rect -8 0 29 10)(font "Arial" ))
(text "escolha" (rect 96 72 133 82)(font "Arial" ))
(line (pt 136 80)(pt 152 80))
)
(port
(pt 64 112)
(output)
(text "saida" (rect 0 0 27 10)(font "Arial" ))
(text "saida" (rect 56 61 66 88)(font "Arial" )(vertical))
(line (pt 64 112)(pt 64 97))
)
(drawing
(rectangle (rect 40 16 136 96))
)
)
(symbol
(rect 1088 128 1240 240)
(text "mux2" (rect 5 0 32 10)(font "Arial" ))
(text "inst5" (rect 8 96 31 106)(font "Arial" ))
(port
(pt 56 0)
(input)
(text "entrada0" (rect 0 0 43 10)(font "Arial" ))
(text "entrada0" (rect 48 25 58 68)(font "Arial" )(vertical))
(line (pt 56 0)(pt 56 17))
)
(port
(pt 104 0)
(input)
(text "entrada1" (rect 0 0 43 10)(font "Arial" ))
(text "entrada1" (rect 96 25 106 68)(font "Arial" )(vertical))
(line (pt 104 0)(pt 104 17))
)
(port
(pt 152 80)
(input)
(text "escolha" (rect -8 0 29 10)(font "Arial" ))
(text "escolha" (rect 96 72 133 82)(font "Arial" ))
(line (pt 136 80)(pt 152 80))
)
(port
(pt 64 112)
(output)
(text "saida" (rect 0 0 27 10)(font "Arial" ))
(text "saida" (rect 56 61 66 88)(font "Arial" )(vertical))
(line (pt 64 112)(pt 64 97))
)
(drawing
(rectangle (rect 40 16 136 96))
)
)
(symbol
(rect 1264 128 1416 240)
(text "mux2" (rect 5 0 32 10)(font "Arial" ))
(text "inst6" (rect 8 96 31 106)(font "Arial" ))
(port
(pt 56 0)
(input)
(text "entrada0" (rect 0 0 43 10)(font "Arial" ))
(text "entrada0" (rect 48 25 58 68)(font "Arial" )(vertical))
(line (pt 56 0)(pt 56 17))
)
(port
(pt 104 0)
(input)
(text "entrada1" (rect 0 0 43 10)(font "Arial" ))
(text "entrada1" (rect 96 25 106 68)(font "Arial" )(vertical))
(line (pt 104 0)(pt 104 17))
)
(port
(pt 152 80)
(input)
(text "escolha" (rect -8 0 29 10)(font "Arial" ))
(text "escolha" (rect 96 72 133 82)(font "Arial" ))
(line (pt 136 80)(pt 152 80))
)
(port
(pt 64 112)
(output)
(text "saida" (rect 0 0 27 10)(font "Arial" ))
(text "saida" (rect 56 61 66 88)(font "Arial" )(vertical))
(line (pt 64 112)(pt 64 97))
)
(drawing
(rectangle (rect 40 16 136 96))
)
)
(connector
(text "ENTRADA0[0]" (rect 256 54 266 122)(font "Arial" )(vertical))
(pt 264 128)
(pt 264 40)
)
(connector
(text " ENTRADA0[1]" (rect 432 51 442 122)(font "Arial" )(vertical))
(pt 440 128)
(pt 440 40)
)
(connector
(text " ENTRADA0[2]" (rect 608 49 618 123)(font "Arial" )(vertical))
(pt 616 128)
(pt 616 40)
)
(connector
(text " ENTRADA0[3]" (rect 784 49 794 123)(font "Arial" )(vertical))
(pt 792 128)
(pt 792 40)
)
(connector
(text " ENTRADA0[4]" (rect 960 49 970 123)(font "Arial" )(vertical))
(pt 968 128)
(pt 968 40)
)
(connector
(text " ENTRADA0[5]" (rect 1136 49 1146 123)(font "Arial" )(vertical))
(pt 1144 128)
(pt 1144 40)
)
(connector
(text " ENTRADA0[6]" (rect 1312 49 1322 123)(font "Arial" )(vertical))
(pt 1320 128)
(pt 1320 40)
)
(connector
(text " ENTRADA1[6]" (rect 1360 51 1370 122)(font "Arial" )(vertical))
(pt 1368 128)
(pt 1368 64)
)
(connector
(text " ENTRADA1[5]" (rect 1184 51 1194 122)(font "Arial" )(vertical))
(pt 1192 128)
(pt 1192 64)
)
(connector
(text " ENTRADA1[4]" (rect 1008 51 1018 122)(font "Arial" )(vertical))
(pt 1016 128)
(pt 1016 64)
)
(connector
(text " ENTRADA1[3]" (rect 832 51 842 122)(font "Arial" )(vertical))
(pt 840 128)
(pt 840 64)
)
(connector
(text " ENTRADA1[2]" (rect 656 51 666 122)(font "Arial" )(vertical))
(pt 664 128)
(pt 664 64)
)
(connector
(text " ENTRADA1[1]" (rect 480 51 490 122)(font "Arial" )(vertical))
(pt 488 128)
(pt 488 64)
)
(connector
(text " ENTRADA1[0]" (rect 304 51 314 122)(font "Arial" )(vertical))
(pt 312 128)
(pt 312 64)
)
(connector
(pt 1416 208)
(pt 1424 208)
)
(connector
(pt 1424 208)
(pt 1424 88)
)
(connector
(pt 1240 208)
(pt 1248 208)
)
(connector
(pt 1248 208)
(pt 1248 88)
)
(connector
(pt 1064 208)
(pt 1072 208)
)
(connector
(pt 1072 208)
(pt 1072 88)
)
(connector
(pt 888 208)
(pt 896 208)
)
(connector
(pt 896 208)
(pt 896 88)
)
(connector
(pt 712 208)
(pt 720 208)
)
(connector
(pt 720 208)
(pt 720 88)
)
(connector
(pt 536 208)
(pt 544 208)
)
(connector
(pt 544 208)
(pt 544 88)
)
(connector
(pt 368 208)
(pt 368 88)
)
(connector
(pt 368 208)
(pt 360 208)
)
(connector
(text "SAIDA[0]" (rect 266 249 276 292)(font "Arial" )(vertical))
(pt 272 240)
(pt 272 304)
)
(connector
(text "SAIDA[1]" (rect 440 251 450 294)(font "Arial" )(vertical))
(pt 448 240)
(pt 448 304)
)
(connector
(text "SAIDA[2]" (rect 616 251 626 294)(font "Arial" )(vertical))
(pt 624 240)
(pt 624 304)
)
(connector
(text "SAIDA[3]" (rect 792 251 802 294)(font "Arial" )(vertical))
(pt 800 240)
(pt 800 304)
)
(connector
(text "SAIDA[4]" (rect 968 251 978 294)(font "Arial" )(vertical))
(pt 976 240)
(pt 976 304)
)
(connector
(text "SAIDA[5]" (rect 1144 251 1154 294)(font "Arial" )(vertical))
(pt 1152 240)
(pt 1152 304)
)
(connector
(text "SAIDA[6]" (rect 1320 251 1330 294)(font "Arial" )(vertical))
(pt 1328 240)
(pt 1328 304)
)
(connector
(pt 440 40)
(pt 616 40)
(bus)
)
(connector
(pt 616 40)
(pt 792 40)
(bus)
)
(connector
(pt 792 40)
(pt 968 40)
(bus)
)
(connector
(pt 968 40)
(pt 1144 40)
(bus)
)
(connector
(pt 1144 40)
(pt 1320 40)
(bus)
)
(connector
(pt 1192 64)
(pt 1368 64)
(bus)
)
(connector
(pt 1016 64)
(pt 1192 64)
(bus)
)
(connector
(pt 840 64)
(pt 1016 64)
(bus)
)
(connector
(pt 664 64)
(pt 840 64)
(bus)
)
(connector
(pt 488 64)
(pt 664 64)
(bus)
)
(connector
(pt 1072 88)
(pt 1248 88)
)
(connector
(pt 896 88)
(pt 1072 88)
)
(connector
(pt 720 88)
(pt 896 88)
)
(connector
(pt 200 88)
(pt 368 88)
)
(connector
(pt 368 88)
(pt 544 88)
)
(connector
(pt 544 88)
(pt 720 88)
)
(connector
(pt 272 304)
(pt 448 304)
(bus)
)
(connector
(pt 448 304)
(pt 624 304)
(bus)
)
(connector
(pt 624 304)
(pt 800 304)
(bus)
)
(connector
(pt 800 304)
(pt 976 304)
(bus)
)
(connector
(pt 976 304)
(pt 1152 304)
(bus)
)
(connector
(pt 1152 304)
(pt 1328 304)
(bus)
)
(connector
(pt 200 40)
(pt 264 40)
(bus)
)
(connector
(pt 312 64)
(pt 488 64)
(bus)
)
(connector
(text "ENTRADA0[6..0]" (rect 231 32 311 42)(font "Arial" ))
(pt 264 40)
(pt 440 40)
(bus)
)
(connector
(text "ENTRADA1[6..0]" (rect 234 56 314 66)(font "Arial" ))
(pt 200 64)
(pt 312 64)
(bus)
)
(connector
(pt 1248 88)
(pt 1424 88)
)
(connector
(text "SAIDA[6..0]" (rect 1481 296 1536 306)(font "Arial" ))
(pt 1328 304)
(pt 1528 304)
(bus)
)
(junction (pt 264 40))
(junction (pt 440 40))
(junction (pt 616 40))
(junction (pt 792 40))
(junction (pt 968 40))
(junction (pt 1144 40))
(junction (pt 1192 64))
(junction (pt 1016 64))
(junction (pt 840 64))
(junction (pt 664 64))
(junction (pt 488 64))
(junction (pt 312 64))
(junction (pt 1248 88))
(junction (pt 1072 88))
(junction (pt 896 88))
(junction (pt 720 88))
(junction (pt 544 88))
(junction (pt 368 88))
(junction (pt 448 304))
(junction (pt 624 304))
(junction (pt 800 304))
(junction (pt 976 304))
(junction (pt 1152 304))
(junction (pt 1328 304))