557 lines
13 KiB
Plaintext
557 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-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 192 208 208)
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
|
(text "in0" (rect 9 0 23 12)(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 156 17)(font "Arial" (font_size 6)))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect 32 240 208 256)
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
|
(text "in1" (rect 9 0 23 12)(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 156 17)(font "Arial" (font_size 6)))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect 32 288 208 304)
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
|
(text "in2" (rect 9 0 23 12)(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 156 17)(font "Arial" (font_size 6)))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect 32 336 208 352)
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
|
(text "in3" (rect 9 0 23 12)(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 156 17)(font "Arial" (font_size 6)))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect 32 32 208 48)
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
|
(text "sel[1..0]" (rect 9 0 49 12)(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 156 17)(font "Arial" (font_size 6)))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 568 256 744 272)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "out" (rect 90 0 105 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 264 88 296 136)
|
|
(text "NOT" (rect 22 1 32 21)(font "Arial" (font_size 6))(vertical))
|
|
(text "not1" (rect -1 3 11 24)(font "Arial" )(vertical))
|
|
(port
|
|
(pt 16 0)
|
|
(input)
|
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
|
(text "IN" (rect 13 2 25 13)(font "Courier New" (bold))(vertical)(invisible))
|
|
(line (pt 16 0)(pt 16 13))
|
|
)
|
|
(port
|
|
(pt 16 48)
|
|
(output)
|
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 13 32 25 49)(font "Courier New" (bold))(vertical)(invisible))
|
|
(line (pt 16 39)(pt 16 48))
|
|
)
|
|
(drawing
|
|
(line (pt 7 13)(pt 25 13))
|
|
(line (pt 25 13)(pt 16 31))
|
|
(line (pt 7 13)(pt 16 31))
|
|
(circle (rect 12 31 20 39))
|
|
)
|
|
(rotate270)
|
|
)
|
|
(symbol
|
|
(rect 312 88 344 136)
|
|
(text "NOT" (rect 22 1 32 21)(font "Arial" (font_size 6))(vertical))
|
|
(text "not0" (rect -1 3 11 24)(font "Arial" )(vertical))
|
|
(port
|
|
(pt 16 0)
|
|
(input)
|
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
|
(text "IN" (rect 13 2 25 13)(font "Courier New" (bold))(vertical)(invisible))
|
|
(line (pt 16 0)(pt 16 13))
|
|
)
|
|
(port
|
|
(pt 16 48)
|
|
(output)
|
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 13 32 25 49)(font "Courier New" (bold))(vertical)(invisible))
|
|
(line (pt 16 39)(pt 16 48))
|
|
)
|
|
(drawing
|
|
(line (pt 7 13)(pt 25 13))
|
|
(line (pt 25 13)(pt 16 31))
|
|
(line (pt 7 13)(pt 16 31))
|
|
(circle (rect 12 31 20 39))
|
|
)
|
|
(rotate270)
|
|
)
|
|
(symbol
|
|
(rect 376 168 440 216)
|
|
(text "AND3" (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 16 16))
|
|
)
|
|
(port
|
|
(pt 0 24)
|
|
(input)
|
|
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
|
|
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 24)(pt 16 24))
|
|
)
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 32)(pt 16 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 43 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 16 12)(pt 31 12))
|
|
(line (pt 16 37)(pt 31 37))
|
|
(line (pt 16 12)(pt 16 37))
|
|
(arc (pt 31 36)(pt 31 12)(rect 19 12 44 37))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 376 216 440 264)
|
|
(text "AND3" (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 16 16))
|
|
)
|
|
(port
|
|
(pt 0 24)
|
|
(input)
|
|
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
|
|
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 24)(pt 16 24))
|
|
)
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 32)(pt 16 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 43 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 16 12)(pt 31 12))
|
|
(line (pt 16 37)(pt 31 37))
|
|
(line (pt 16 12)(pt 16 37))
|
|
(arc (pt 31 36)(pt 31 12)(rect 19 12 44 37))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 376 264 440 312)
|
|
(text "AND3" (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 16 16))
|
|
)
|
|
(port
|
|
(pt 0 24)
|
|
(input)
|
|
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
|
|
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 24)(pt 16 24))
|
|
)
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 32)(pt 16 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 43 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 16 12)(pt 31 12))
|
|
(line (pt 16 37)(pt 31 37))
|
|
(line (pt 16 12)(pt 16 37))
|
|
(arc (pt 31 36)(pt 31 12)(rect 19 12 44 37))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 376 312 440 360)
|
|
(text "AND3" (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 16 16))
|
|
)
|
|
(port
|
|
(pt 0 24)
|
|
(input)
|
|
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
|
|
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 24)(pt 16 24))
|
|
)
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 32)(pt 16 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 43 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 16 12)(pt 31 12))
|
|
(line (pt 16 37)(pt 31 37))
|
|
(line (pt 16 12)(pt 16 37))
|
|
(arc (pt 31 36)(pt 31 12)(rect 19 12 44 37))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 488 224 552 304)
|
|
(text "OR4" (rect 1 0 19 10)(font "Arial" (font_size 6)))
|
|
(text "inst4" (rect 3 69 26 81)(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 13 16))
|
|
)
|
|
(port
|
|
(pt 0 48)
|
|
(input)
|
|
(text "IN3" (rect 2 39 19 51)(font "Courier New" (bold))(invisible))
|
|
(text "IN3" (rect 2 39 19 51)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 48)(pt 15 48))
|
|
)
|
|
(port
|
|
(pt 0 64)
|
|
(input)
|
|
(text "IN4" (rect 2 55 19 67)(font "Courier New" (bold))(invisible))
|
|
(text "IN4" (rect 2 55 19 67)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 64)(pt 13 64))
|
|
)
|
|
(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 15 32))
|
|
)
|
|
(port
|
|
(pt 64 40)
|
|
(output)
|
|
(text "OUT" (rect 48 31 65 43)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 48 31 65 43)(font "Courier New" (bold))(invisible))
|
|
(line (pt 48 40)(pt 64 40))
|
|
)
|
|
(drawing
|
|
(line (pt 13 67)(pt 13 51))
|
|
(line (pt 25 52)(pt 13 52))
|
|
(line (pt 13 12)(pt 13 29))
|
|
(line (pt 13 29)(pt 25 29))
|
|
(arc (pt 7 45)(pt 7 35)(rect -14 24 19 57))
|
|
(arc (pt 49 40)(pt 25 29)(rect -6 29 57 92))
|
|
(arc (pt 25 51)(pt 49 40)(rect -6 -11 57 52))
|
|
)
|
|
)
|
|
(connector
|
|
(text "sel[0]" (rect 312 49 324 76)(font "Arial" )(vertical))
|
|
(pt 328 88)
|
|
(pt 328 40)
|
|
)
|
|
(connector
|
|
(text "sel[1]" (rect 264 49 276 76)(font "Arial" )(vertical))
|
|
(pt 280 88)
|
|
(pt 280 40)
|
|
)
|
|
(connector
|
|
(pt 328 40)
|
|
(pt 352 40)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 304 40)
|
|
(pt 328 40)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 376 184)
|
|
(pt 328 184)
|
|
)
|
|
(connector
|
|
(pt 376 192)
|
|
(pt 280 192)
|
|
)
|
|
(connector
|
|
(pt 472 192)
|
|
(pt 472 240)
|
|
)
|
|
(connector
|
|
(pt 472 240)
|
|
(pt 488 240)
|
|
)
|
|
(connector
|
|
(pt 440 192)
|
|
(pt 472 192)
|
|
)
|
|
(connector
|
|
(pt 488 288)
|
|
(pt 472 288)
|
|
)
|
|
(connector
|
|
(pt 472 288)
|
|
(pt 472 336)
|
|
)
|
|
(connector
|
|
(pt 472 336)
|
|
(pt 440 336)
|
|
)
|
|
(connector
|
|
(pt 488 256)
|
|
(pt 456 256)
|
|
)
|
|
(connector
|
|
(pt 456 256)
|
|
(pt 456 240)
|
|
)
|
|
(connector
|
|
(pt 488 272)
|
|
(pt 456 272)
|
|
)
|
|
(connector
|
|
(pt 456 272)
|
|
(pt 456 288)
|
|
)
|
|
(connector
|
|
(pt 456 240)
|
|
(pt 440 240)
|
|
)
|
|
(connector
|
|
(pt 456 288)
|
|
(pt 440 288)
|
|
)
|
|
(connector
|
|
(pt 552 264)
|
|
(pt 568 264)
|
|
)
|
|
(connector
|
|
(pt 376 232)
|
|
(pt 352 232)
|
|
)
|
|
(connector
|
|
(pt 376 240)
|
|
(pt 280 240)
|
|
)
|
|
(connector
|
|
(pt 280 136)
|
|
(pt 280 192)
|
|
)
|
|
(connector
|
|
(pt 280 192)
|
|
(pt 280 240)
|
|
)
|
|
(connector
|
|
(pt 376 280)
|
|
(pt 328 280)
|
|
)
|
|
(connector
|
|
(pt 328 136)
|
|
(pt 328 184)
|
|
)
|
|
(connector
|
|
(pt 328 184)
|
|
(pt 328 280)
|
|
)
|
|
(connector
|
|
(pt 376 288)
|
|
(pt 304 288)
|
|
)
|
|
(connector
|
|
(pt 376 328)
|
|
(pt 352 328)
|
|
)
|
|
(connector
|
|
(text "sel[0]" (rect 336 48 348 75)(font "Arial" )(vertical))
|
|
(pt 352 40)
|
|
(pt 352 232)
|
|
)
|
|
(connector
|
|
(pt 352 232)
|
|
(pt 352 328)
|
|
)
|
|
(connector
|
|
(pt 376 336)
|
|
(pt 304 336)
|
|
)
|
|
(connector
|
|
(text "sel[1]" (rect 288 49 300 76)(font "Arial" )(vertical))
|
|
(pt 304 40)
|
|
(pt 304 288)
|
|
)
|
|
(connector
|
|
(pt 304 288)
|
|
(pt 304 336)
|
|
)
|
|
(connector
|
|
(pt 280 40)
|
|
(pt 304 40)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 208 40)
|
|
(pt 280 40)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 208 200)
|
|
(pt 376 200)
|
|
)
|
|
(connector
|
|
(pt 208 248)
|
|
(pt 376 248)
|
|
)
|
|
(connector
|
|
(pt 208 296)
|
|
(pt 376 296)
|
|
)
|
|
(connector
|
|
(pt 208 344)
|
|
(pt 376 344)
|
|
)
|
|
(junction (pt 328 40))
|
|
(junction (pt 304 40))
|
|
(junction (pt 280 40))
|
|
(junction (pt 280 192))
|
|
(junction (pt 328 184))
|
|
(junction (pt 352 232))
|
|
(junction (pt 304 288))
|
|
(title_block
|
|
(rect 32 392 289 444)
|
|
(name "title-custom-small")
|
|
(section (rect 0 35 256 51)(text "DATE" (rect 2 0 30 12)(font "Arial" ))(text "June 21, 2014" (rect 56 3 136 17)(font "Arial" (font_size 8)))(border))
|
|
(section (rect 0 18 256 34)(text "DESIGNER" (rect 2 0 59 12)(font "Arial" ))(text "Goran Devic" (rect 56 2 135 17)(font "Arial" (font_size 9)))(border))
|
|
(section (rect 104 0 256 17)(text "MODULE" (rect 2 1 48 13)(font "Arial" ))(text "alu_mux_4" (rect 43 2 117 17)(font "Arial" (font_size 9)(bold)))(border))
|
|
(section (rect 0 0 256 17)(text "PROJECT" (rect 2 0 52 12)(font "Arial" ))(text "A-Z80" (rect 56 2 94 17)(font "Arial" (font_size 9)(bold)))(border))
|
|
(section (rect 192 35 256 51)(text "REV" (rect 2 1 25 13)(font "Arial" ))(text "1.0" (rect 43 3 60 17)(font "Arial" (font_size 8)))(border))
|
|
(drawing
|
|
)
|
|
)
|