-
Notifications
You must be signed in to change notification settings - Fork 0
/
andvetores.bdf
518 lines (518 loc) · 12.5 KB
/
andvetores.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
/*
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-2010 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.
*/
//#pragma file_not_in_maxplusii_format
(header "graphic" (version "1.3"))
(pin
(input)
(rect 720 -792 736 -624)
(text "INPUT" (rect 6 133 16 161)(font "Arial" (font_size 6))(vertical))
(text "B[4..0]" (rect 4 5 16 38)(font "Arial" )(vertical))
(pt 8 168)
(drawing
(line (pt 4 92)(pt 4 117)(line_width 1))
(line (pt 12 92)(pt 12 117)(line_width 1))
(line (pt 8 121)(pt 8 168)(line_width 1))
(line (pt 4 92)(pt 12 92)(line_width 1))
(line (pt 12 117)(pt 8 121)(line_width 1))
(line (pt 4 117)(pt 8 121)(line_width 1))
)
(rotate270)
(text "VCC" (rect -1 136 9 156)(font "Arial" (font_size 6))(vertical))
)
(pin
(input)
(rect 112 -808 128 -640)
(text "INPUT" (rect 0 133 10 161)(font "Arial" (font_size 6))(vertical))
(text "A[4..0]" (rect 0 5 12 38)(font "Arial" )(vertical))
(pt 8 168)
(drawing
(line (pt 12 92)(pt 12 117)(line_width 1))
(line (pt 4 92)(pt 4 117)(line_width 1))
(line (pt 8 121)(pt 8 168)(line_width 1))
(line (pt 12 92)(pt 4 92)(line_width 1))
(line (pt 4 117)(pt 8 121)(line_width 1))
(line (pt 12 117)(pt 8 121)(line_width 1))
)
(flipy_rotate90)
(text "VCC" (rect 7 136 17 156)(font "Arial" (font_size 6))(vertical))
)
(pin
(output)
(rect 424 -808 440 -632)
(text "OUTPUT" (rect 0 137 10 175)(font "Arial" (font_size 6))(vertical))
(text "pos0" (rect 0 5 12 28)(font "Arial" )(vertical))
(pt 8 176)
(drawing
(line (pt 8 176)(pt 8 124)(line_width 1))
(line (pt 4 124)(pt 4 98)(line_width 1))
(line (pt 12 124)(pt 12 98)(line_width 1))
(line (pt 12 124)(pt 4 124)(line_width 1))
(line (pt 4 98)(pt 8 94)(line_width 1))
(line (pt 8 94)(pt 12 98)(line_width 1))
(line (pt 12 98)(pt 8 94)(line_width 1))
)
(rotate90)
)
(pin
(output)
(rect 424 -504 440 -328)
(text "OUTPUT" (rect 6 137 16 175)(font "Arial" (font_size 6))(vertical))
(text "pos1" (rect 4 5 16 28)(font "Arial" )(vertical))
(pt 8 176)
(drawing
(line (pt 8 176)(pt 8 124)(line_width 1))
(line (pt 12 124)(pt 12 98)(line_width 1))
(line (pt 4 124)(pt 4 98)(line_width 1))
(line (pt 4 124)(pt 12 124)(line_width 1))
(line (pt 12 98)(pt 8 94)(line_width 1))
(line (pt 8 94)(pt 4 98)(line_width 1))
(line (pt 4 98)(pt 8 94)(line_width 1))
)
(flipx_rotate90)
)
(pin
(output)
(rect 424 -104 440 72)
(text "OUTPUT" (rect 0 1 10 39)(font "Arial" (font_size 6))(vertical))
(text "pos2" (rect 1 89 13 112)(font "Arial" )(vertical))
(pt 8 0)
(drawing
(line (pt 8 0)(pt 8 52)(line_width 1))
(line (pt 4 52)(pt 4 78)(line_width 1))
(line (pt 12 52)(pt 12 78)(line_width 1))
(line (pt 12 52)(pt 4 52)(line_width 1))
(line (pt 4 78)(pt 8 82)(line_width 1))
(line (pt 8 82)(pt 12 78)(line_width 1))
(line (pt 12 78)(pt 8 82)(line_width 1))
)
(flipy_rotate90)
)
(pin
(output)
(rect 424 184 440 360)
(text "OUTPUT" (rect 0 1 10 39)(font "Arial" (font_size 6))(vertical))
(text "pos3" (rect 0 118 12 141)(font "Arial" )(vertical))
(pt 8 0)
(drawing
(line (pt 8 0)(pt 8 52)(line_width 1))
(line (pt 4 52)(pt 4 78)(line_width 1))
(line (pt 12 52)(pt 12 78)(line_width 1))
(line (pt 12 52)(pt 4 52)(line_width 1))
(line (pt 4 78)(pt 8 82)(line_width 1))
(line (pt 8 82)(pt 12 78)(line_width 1))
(line (pt 12 78)(pt 8 82)(line_width 1))
)
(flipy_rotate90)
)
(pin
(output)
(rect 424 456 440 632)
(text "OUTPUT" (rect 0 1 10 39)(font "Arial" (font_size 6))(vertical))
(text "pos4" (rect 0 118 12 141)(font "Arial" )(vertical))
(pt 8 0)
(drawing
(line (pt 8 0)(pt 8 52)(line_width 1))
(line (pt 4 52)(pt 4 78)(line_width 1))
(line (pt 12 52)(pt 12 78)(line_width 1))
(line (pt 12 52)(pt 4 52)(line_width 1))
(line (pt 4 78)(pt 8 82)(line_width 1))
(line (pt 8 82)(pt 12 78)(line_width 1))
(line (pt 12 78)(pt 8 82)(line_width 1))
)
(flipy_rotate90)
)
(symbol
(rect 408 -616 456 -552)
(text "AND2" (rect 0 39 10 63)(font "Arial" (font_size 6))(vertical))
(text "inst" (rect 37 44 49 61)(font "Arial" )(vertical))
(port
(pt 16 64)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 7 45 19 62)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 16 64)(pt 16 50)(line_width 1))
)
(port
(pt 32 64)
(input)
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 23 45 35 62)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 32 64)(pt 32 50)(line_width 1))
)
(port
(pt 24 0)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 15 -1 27 16)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 24 22)(pt 24 0)(line_width 1))
)
(drawing
(line (pt 12 50)(pt 12 34)(line_width 1))
(line (pt 37 50)(pt 37 33)(line_width 1))
(line (pt 12 50)(pt 37 50)(line_width 1))
(arc (pt 37 33)(pt 12 34)(rect 12 21 37 46)(line_width 1))
)
(rotate90)
)
(symbol
(rect 408 -312 456 -248)
(text "AND2" (rect 0 39 10 63)(font "Arial" (font_size 6))(vertical))
(text "inst5" (rect 37 44 49 67)(font "Arial" )(vertical))
(port
(pt 16 64)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 7 45 19 62)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 16 64)(pt 16 50)(line_width 1))
)
(port
(pt 32 64)
(input)
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 23 45 35 62)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 32 64)(pt 32 50)(line_width 1))
)
(port
(pt 24 0)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 15 -1 27 16)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 24 22)(pt 24 0)(line_width 1))
)
(drawing
(line (pt 12 50)(pt 12 34)(line_width 1))
(line (pt 37 50)(pt 37 33)(line_width 1))
(line (pt 12 50)(pt 37 50)(line_width 1))
(arc (pt 37 33)(pt 12 34)(rect 12 21 37 46)(line_width 1))
)
(rotate90)
)
(symbol
(rect 408 -184 456 -120)
(text "AND2" (rect 0 1 10 25)(font "Arial" (font_size 6))(vertical))
(text "inst6" (rect 37 -3 49 20)(font "Arial" )(vertical))
(port
(pt 16 0)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 7 2 19 19)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 16 0)(pt 16 14)(line_width 1))
)
(port
(pt 32 0)
(input)
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 23 2 35 19)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 32 0)(pt 32 14)(line_width 1))
)
(port
(pt 24 64)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 15 48 27 65)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 24 42)(pt 24 64)(line_width 1))
)
(drawing
(line (pt 12 14)(pt 12 30)(line_width 1))
(line (pt 37 14)(pt 37 31)(line_width 1))
(line (pt 12 14)(pt 37 14)(line_width 1))
(arc (pt 12 30)(pt 37 31)(rect 12 18 37 43)(line_width 1))
)
(flipy_rotate90)
)
(symbol
(rect 408 104 456 168)
(text "AND2" (rect 0 1 10 25)(font "Arial" (font_size 6))(vertical))
(text "inst7" (rect 37 -3 49 20)(font "Arial" )(vertical))
(port
(pt 16 0)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 7 2 19 19)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 16 0)(pt 16 14)(line_width 1))
)
(port
(pt 32 0)
(input)
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 23 2 35 19)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 32 0)(pt 32 14)(line_width 1))
)
(port
(pt 24 64)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 15 48 27 65)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 24 42)(pt 24 64)(line_width 1))
)
(drawing
(line (pt 12 14)(pt 12 30)(line_width 1))
(line (pt 37 14)(pt 37 31)(line_width 1))
(line (pt 12 14)(pt 37 14)(line_width 1))
(arc (pt 12 30)(pt 37 31)(rect 12 18 37 43)(line_width 1))
)
(flipy_rotate90)
)
(symbol
(rect 408 376 456 440)
(text "AND2" (rect 0 1 10 25)(font "Arial" (font_size 6))(vertical))
(text "inst8" (rect 37 -3 49 20)(font "Arial" )(vertical))
(port
(pt 16 0)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 7 2 19 19)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 16 0)(pt 16 14)(line_width 1))
)
(port
(pt 32 0)
(input)
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 23 2 35 19)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 32 0)(pt 32 14)(line_width 1))
)
(port
(pt 24 64)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 15 48 27 65)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 24 42)(pt 24 64)(line_width 1))
)
(drawing
(line (pt 12 14)(pt 12 30)(line_width 1))
(line (pt 37 14)(pt 37 31)(line_width 1))
(line (pt 12 14)(pt 37 14)(line_width 1))
(arc (pt 12 30)(pt 37 31)(rect 12 18 37 43)(line_width 1))
)
(flipy_rotate90)
)
(connector
(text "B[3]" (rect 626 -16 646 -4)(font "Arial" ))
(pt 728 0)
(pt 496 0)
)
(connector
(text "B[4]" (rect 664 168 684 180)(font "Arial" ))
(pt 728 184)
(pt 496 184)
)
(connector
(pt 728 0)
(pt 728 184)
(bus)
)
(connector
(pt 728 184)
(pt 728 200)
(bus)
)
(connector
(pt 496 96)
(pt 496 0)
)
(connector
(pt 496 96)
(pt 440 96)
)
(connector
(pt 440 96)
(pt 440 104)
)
(connector
(pt 424 96)
(pt 424 104)
)
(connector
(pt 432 168)
(pt 432 184)
)
(connector
(text "B[2]" (rect 598 -216 618 -204)(font "Arial" ))
(pt 728 -200)
(pt 440 -200)
)
(connector
(pt 440 -200)
(pt 440 -184)
)
(connector
(text "A[2]" (rect 238 -216 258 -204)(font "Arial" ))
(pt 120 -200)
(pt 424 -200)
)
(connector
(pt 424 -200)
(pt 424 -184)
)
(connector
(pt 728 -200)
(pt 728 0)
(bus)
)
(connector
(pt 432 -120)
(pt 432 -104)
)
(connector
(text "B[1]" (rect 614 -248 634 -236)(font "Arial" ))
(pt 728 -232)
(pt 440 -232)
)
(connector
(pt 440 -232)
(pt 440 -248)
)
(connector
(text "A[1]" (rect 214 -248 234 -236)(font "Arial" ))
(pt 120 -232)
(pt 424 -232)
)
(connector
(pt 424 -232)
(pt 424 -248)
)
(connector
(pt 728 -232)
(pt 728 -200)
(bus)
)
(connector
(pt 120 -232)
(pt 120 -200)
(bus)
)
(connector
(pt 432 -328)
(pt 432 -312)
)
(connector
(text "A[0]" (rect 261 -536 281 -524)(font "Arial" ))
(pt 120 -520)
(pt 424 -520)
)
(connector
(pt 424 -520)
(pt 424 -552)
)
(connector
(text "B[0]" (rect 583 -536 603 -524)(font "Arial" ))
(pt 728 -520)
(pt 440 -520)
)
(connector
(pt 440 -520)
(pt 440 -552)
)
(connector
(pt 120 -640)
(pt 120 -520)
(bus)
)
(connector
(pt 120 -520)
(pt 120 -232)
(bus)
)
(connector
(pt 728 -624)
(pt 728 -520)
(bus)
)
(connector
(pt 728 -520)
(pt 728 -232)
(bus)
)
(connector
(pt 432 -632)
(pt 432 -616)
)
(connector
(pt 496 184)
(pt 496 368)
)
(connector
(pt 496 368)
(pt 440 368)
)
(connector
(pt 440 368)
(pt 440 376)
)
(connector
(pt 424 376)
(pt 424 368)
)
(connector
(text "A[3]" (rect 210 -16 230 -4)(font "Arial" ))
(pt 120 0)
(pt 368 0)
)
(connector
(pt 368 0)
(pt 368 96)
)
(connector
(pt 424 96)
(pt 368 96)
)
(connector
(pt 120 -200)
(pt 120 0)
(bus)
)
(connector
(pt 432 440)
(pt 432 456)
)
(connector
(pt 424 368)
(pt 368 368)
)
(connector
(pt 368 184)
(pt 368 368)
)
(connector
(text "A[4]" (rect 164 168 184 180)(font "Arial" ))
(pt 120 184)
(pt 368 184)
)
(connector
(pt 120 0)
(pt 120 184)
(bus)
)
(connector
(pt 120 184)
(pt 120 200)
(bus)
)
(junction (pt 728 0))
(junction (pt 728 184))
(junction (pt 728 -232))
(junction (pt 728 -520))
(junction (pt 120 184))
(junction (pt 120 0))
(junction (pt 120 -232))
(junction (pt 120 -520))
(junction (pt 728 -200))
(junction (pt 120 -200))