582 lines
13 KiB
Plaintext
582 lines
13 KiB
Plaintext
/*
|
|
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-2012 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 8 72 176 88)
|
|
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
|
(text "Enable" (rect 5 0 38 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)))
|
|
(annotation_block (location)(rect -48 88 8 104))
|
|
)
|
|
(pin
|
|
(bidir)
|
|
(rect -8 104 168 120)
|
|
(text "BIDIR" (rect 151 0 175 10)(font "Arial" (font_size 6)))
|
|
(text "Data[7..0]" (rect 5 0 55 12)(font "Arial" ))
|
|
(pt 176 8)
|
|
(drawing
|
|
(line (pt 120 4)(pt 98 4))
|
|
(line (pt 176 8)(pt 124 8))
|
|
(line (pt 120 12)(pt 98 12))
|
|
(line (pt 98 4)(pt 94 8))
|
|
(line (pt 98 12)(pt 94 8))
|
|
(line (pt 120 4)(pt 124 8))
|
|
(line (pt 124 8)(pt 120 12))
|
|
)
|
|
(flipy)
|
|
(text "VCC" (rect 152 7 172 17)(font "Arial" (font_size 6)))
|
|
(annotation_block (location)(rect 168 120 224 136))
|
|
)
|
|
(pin
|
|
(bidir)
|
|
(rect 416 96 592 112)
|
|
(text "BIDIR" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
|
(text "Out[7..0]" (rect 90 0 133 12)(font "Arial" ))
|
|
(pt 0 8)
|
|
(drawing
|
|
(line (pt 56 4)(pt 78 4))
|
|
(line (pt 0 8)(pt 52 8))
|
|
(line (pt 56 12)(pt 78 12))
|
|
(line (pt 78 4)(pt 82 8))
|
|
(line (pt 78 12)(pt 82 8))
|
|
(line (pt 56 4)(pt 52 8))
|
|
(line (pt 52 8)(pt 56 12))
|
|
)
|
|
(text "VCC" (rect 4 7 24 17)(font "Arial" (font_size 6)))
|
|
)
|
|
(symbol
|
|
(rect 216 80 280 128)
|
|
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
|
(text "inst" (rect 3 37 20 49)(font "Arial" ))
|
|
(port
|
|
(pt 0 16)
|
|
(input)
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 16)(pt 14 16))
|
|
)
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 32)(pt 14 32))
|
|
)
|
|
(port
|
|
(pt 64 24)
|
|
(output)
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 42 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 14 12)(pt 30 12))
|
|
(line (pt 14 37)(pt 31 37))
|
|
(line (pt 14 12)(pt 14 37))
|
|
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 216 176 280 224)
|
|
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
|
(text "inst1" (rect 3 37 26 49)(font "Arial" ))
|
|
(port
|
|
(pt 0 16)
|
|
(input)
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 16)(pt 14 16))
|
|
)
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 32)(pt 14 32))
|
|
)
|
|
(port
|
|
(pt 64 24)
|
|
(output)
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 42 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 14 12)(pt 30 12))
|
|
(line (pt 14 37)(pt 31 37))
|
|
(line (pt 14 12)(pt 14 37))
|
|
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 216 272 280 320)
|
|
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
|
(text "inst2" (rect 3 37 26 49)(font "Arial" ))
|
|
(port
|
|
(pt 0 16)
|
|
(input)
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 16)(pt 14 16))
|
|
)
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 32)(pt 14 32))
|
|
)
|
|
(port
|
|
(pt 64 24)
|
|
(output)
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 42 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 14 12)(pt 30 12))
|
|
(line (pt 14 37)(pt 31 37))
|
|
(line (pt 14 12)(pt 14 37))
|
|
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 216 368 280 416)
|
|
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
|
(text "inst3" (rect 3 37 26 49)(font "Arial" ))
|
|
(port
|
|
(pt 0 16)
|
|
(input)
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 16)(pt 14 16))
|
|
)
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 32)(pt 14 32))
|
|
)
|
|
(port
|
|
(pt 64 24)
|
|
(output)
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 42 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 14 12)(pt 30 12))
|
|
(line (pt 14 37)(pt 31 37))
|
|
(line (pt 14 12)(pt 14 37))
|
|
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 216 464 280 512)
|
|
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
|
(text "inst4" (rect 3 37 26 49)(font "Arial" ))
|
|
(port
|
|
(pt 0 16)
|
|
(input)
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 16)(pt 14 16))
|
|
)
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 32)(pt 14 32))
|
|
)
|
|
(port
|
|
(pt 64 24)
|
|
(output)
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 42 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 14 12)(pt 30 12))
|
|
(line (pt 14 37)(pt 31 37))
|
|
(line (pt 14 12)(pt 14 37))
|
|
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 216 560 280 608)
|
|
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
|
(text "inst5" (rect 3 37 26 49)(font "Arial" ))
|
|
(port
|
|
(pt 0 16)
|
|
(input)
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 16)(pt 14 16))
|
|
)
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 32)(pt 14 32))
|
|
)
|
|
(port
|
|
(pt 64 24)
|
|
(output)
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 42 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 14 12)(pt 30 12))
|
|
(line (pt 14 37)(pt 31 37))
|
|
(line (pt 14 12)(pt 14 37))
|
|
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 216 656 280 704)
|
|
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
|
(text "inst6" (rect 3 37 26 49)(font "Arial" ))
|
|
(port
|
|
(pt 0 16)
|
|
(input)
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 16)(pt 14 16))
|
|
)
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 32)(pt 14 32))
|
|
)
|
|
(port
|
|
(pt 64 24)
|
|
(output)
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 42 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 14 12)(pt 30 12))
|
|
(line (pt 14 37)(pt 31 37))
|
|
(line (pt 14 12)(pt 14 37))
|
|
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 216 752 280 800)
|
|
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
|
(text "inst7" (rect 3 37 26 49)(font "Arial" ))
|
|
(port
|
|
(pt 0 16)
|
|
(input)
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 16)(pt 14 16))
|
|
)
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 32)(pt 14 32))
|
|
)
|
|
(port
|
|
(pt 64 24)
|
|
(output)
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 42 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 14 12)(pt 30 12))
|
|
(line (pt 14 37)(pt 31 37))
|
|
(line (pt 14 12)(pt 14 37))
|
|
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
|
)
|
|
)
|
|
(connector
|
|
(text "Data[0]" (rect 197 96 233 108)(font "Arial" ))
|
|
(pt 216 112)
|
|
(pt 184 112)
|
|
)
|
|
(connector
|
|
(text "Data[1]" (rect 190 192 226 204)(font "Arial" ))
|
|
(pt 216 208)
|
|
(pt 184 208)
|
|
)
|
|
(connector
|
|
(text "Data[2]" (rect 192 288 228 300)(font "Arial" ))
|
|
(pt 216 304)
|
|
(pt 184 304)
|
|
)
|
|
(connector
|
|
(text "Data[3]" (rect 194 384 230 396)(font "Arial" ))
|
|
(pt 216 400)
|
|
(pt 184 400)
|
|
)
|
|
(connector
|
|
(text "Data[4]" (rect 194 480 230 492)(font "Arial" ))
|
|
(pt 216 496)
|
|
(pt 184 496)
|
|
)
|
|
(connector
|
|
(text "Data[5]" (rect 190 576 226 588)(font "Arial" ))
|
|
(pt 216 592)
|
|
(pt 184 592)
|
|
)
|
|
(connector
|
|
(text "Data[6]" (rect 195 672 231 684)(font "Arial" ))
|
|
(pt 216 688)
|
|
(pt 184 688)
|
|
)
|
|
(connector
|
|
(text "Data[7]" (rect 200 768 236 780)(font "Arial" ))
|
|
(pt 216 784)
|
|
(pt 184 784)
|
|
)
|
|
(connector
|
|
(pt 176 80)
|
|
(pt 208 80)
|
|
)
|
|
(connector
|
|
(pt 184 208)
|
|
(pt 184 304)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 184 304)
|
|
(pt 184 400)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 184 400)
|
|
(pt 184 496)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 184 496)
|
|
(pt 184 592)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 184 592)
|
|
(pt 184 688)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "Data[7..0]" (rect 169 725 181 774)(font "Arial" )(vertical))
|
|
(pt 184 688)
|
|
(pt 184 784)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 208 768)
|
|
(pt 216 768)
|
|
)
|
|
(connector
|
|
(pt 208 96)
|
|
(pt 216 96)
|
|
)
|
|
(connector
|
|
(pt 208 192)
|
|
(pt 216 192)
|
|
)
|
|
(connector
|
|
(pt 208 288)
|
|
(pt 216 288)
|
|
)
|
|
(connector
|
|
(pt 208 384)
|
|
(pt 216 384)
|
|
)
|
|
(connector
|
|
(pt 208 480)
|
|
(pt 216 480)
|
|
)
|
|
(connector
|
|
(pt 208 576)
|
|
(pt 216 576)
|
|
)
|
|
(connector
|
|
(pt 208 672)
|
|
(pt 216 672)
|
|
)
|
|
(connector
|
|
(pt 304 104)
|
|
(pt 416 104)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "Out[1]" (rect 284 184 314 196)(font "Arial" ))
|
|
(pt 280 200)
|
|
(pt 304 200)
|
|
)
|
|
(connector
|
|
(text "Out[0]" (rect 294 88 324 100)(font "Arial" ))
|
|
(pt 280 104)
|
|
(pt 304 104)
|
|
)
|
|
(connector
|
|
(text "Out[2]" (rect 287 280 317 292)(font "Arial" ))
|
|
(pt 280 296)
|
|
(pt 304 296)
|
|
)
|
|
(connector
|
|
(text "Out[3]" (rect 289 376 319 388)(font "Arial" ))
|
|
(pt 280 392)
|
|
(pt 304 392)
|
|
)
|
|
(connector
|
|
(text "Out[4]" (rect 292 472 322 484)(font "Arial" ))
|
|
(pt 280 488)
|
|
(pt 304 488)
|
|
)
|
|
(connector
|
|
(text "Out[5]" (rect 290 568 320 580)(font "Arial" ))
|
|
(pt 280 584)
|
|
(pt 304 584)
|
|
)
|
|
(connector
|
|
(text "Out[6]" (rect 282 664 312 676)(font "Arial" ))
|
|
(pt 280 680)
|
|
(pt 304 680)
|
|
)
|
|
(connector
|
|
(text "Out[7]" (rect 292 760 322 772)(font "Arial" ))
|
|
(pt 280 776)
|
|
(pt 304 776)
|
|
)
|
|
(connector
|
|
(pt 208 80)
|
|
(pt 208 96)
|
|
)
|
|
(connector
|
|
(pt 208 96)
|
|
(pt 208 192)
|
|
)
|
|
(connector
|
|
(pt 208 192)
|
|
(pt 208 288)
|
|
)
|
|
(connector
|
|
(pt 208 288)
|
|
(pt 208 384)
|
|
)
|
|
(connector
|
|
(pt 208 384)
|
|
(pt 208 480)
|
|
)
|
|
(connector
|
|
(pt 208 480)
|
|
(pt 208 576)
|
|
)
|
|
(connector
|
|
(pt 208 576)
|
|
(pt 208 672)
|
|
)
|
|
(connector
|
|
(pt 208 672)
|
|
(pt 208 768)
|
|
)
|
|
(connector
|
|
(pt 304 104)
|
|
(pt 304 200)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 304 200)
|
|
(pt 304 296)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 304 296)
|
|
(pt 304 392)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 304 392)
|
|
(pt 304 488)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 304 488)
|
|
(pt 304 584)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 304 584)
|
|
(pt 304 680)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "Out[7..0]" (rect 293 721 305 764)(font "Arial" )(vertical))
|
|
(pt 304 680)
|
|
(pt 304 776)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 184 112)
|
|
(pt 184 208)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 168 112)
|
|
(pt 184 112)
|
|
(bus)
|
|
)
|
|
(junction (pt 184 208))
|
|
(junction (pt 184 304))
|
|
(junction (pt 184 400))
|
|
(junction (pt 184 496))
|
|
(junction (pt 184 592))
|
|
(junction (pt 184 688))
|
|
(junction (pt 208 96))
|
|
(junction (pt 208 192))
|
|
(junction (pt 208 288))
|
|
(junction (pt 208 384))
|
|
(junction (pt 208 480))
|
|
(junction (pt 208 576))
|
|
(junction (pt 208 672))
|
|
(junction (pt 304 104))
|
|
(junction (pt 304 200))
|
|
(junction (pt 304 296))
|
|
(junction (pt 304 392))
|
|
(junction (pt 304 488))
|
|
(junction (pt 304 584))
|
|
(junction (pt 304 680))
|
|
(junction (pt 184 112))
|