300 lines
7.8 KiB
Plaintext
300 lines
7.8 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 24 32 200 48)
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
|
(text "a[3..0]" (rect 9 0 40 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 24 48 200 64)
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
|
(text "sel_a" (rect 9 0 34 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 24 96 200 112)
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
|
(text "sel_zero" (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 480 48 656 64)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "Q[3..0]" (rect 90 0 124 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 480 144 656 160)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "ena" (rect 90 0 107 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 280 24 344 72)
|
|
(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 62 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 392 32 456 80)
|
|
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
|
(text "inst10" (rect 3 37 32 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 62 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 296 88 344 120)
|
|
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
|
|
(text "inst11" (rect 3 21 32 33)(font "Arial" ))
|
|
(port
|
|
(pt 0 16)
|
|
(input)
|
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 16)(pt 13 16))
|
|
)
|
|
(port
|
|
(pt 48 16)
|
|
(output)
|
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 32 7 46 19)(font "Courier New" (bold))(invisible))
|
|
(line (pt 39 16)(pt 48 16))
|
|
)
|
|
(drawing
|
|
(line (pt 13 25)(pt 13 7))
|
|
(line (pt 13 7)(pt 31 16))
|
|
(line (pt 13 25)(pt 31 16))
|
|
(circle (rect 31 12 39 20))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 392 128 456 176)
|
|
(text "OR2" (rect 1 0 19 10)(font "Arial" (font_size 6)))
|
|
(text "inst1" (rect 3 37 26 49)(font "Arial" ))
|
|
(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 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 15 16))
|
|
)
|
|
(port
|
|
(pt 64 24)
|
|
(output)
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 48 15 62 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 48 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 14 36)(pt 25 36))
|
|
(line (pt 14 13)(pt 25 13))
|
|
(arc (pt 7 29)(pt 7 19)(rect -14 8 19 41))
|
|
(arc (pt 49 24)(pt 25 13)(rect -6 13 57 76))
|
|
(arc (pt 25 35)(pt 49 24)(rect -6 -27 57 36))
|
|
)
|
|
)
|
|
(connector
|
|
(pt 368 64)
|
|
(pt 392 64)
|
|
)
|
|
(connector
|
|
(pt 344 48)
|
|
(pt 392 48)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 456 56)
|
|
(pt 480 56)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 200 40)
|
|
(pt 280 40)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 456 152)
|
|
(pt 480 152)
|
|
)
|
|
(connector
|
|
(pt 368 64)
|
|
(pt 368 104)
|
|
)
|
|
(connector
|
|
(pt 368 104)
|
|
(pt 344 104)
|
|
)
|
|
(connector
|
|
(pt 232 56)
|
|
(pt 232 160)
|
|
)
|
|
(connector
|
|
(pt 200 56)
|
|
(pt 232 56)
|
|
)
|
|
(connector
|
|
(pt 232 56)
|
|
(pt 280 56)
|
|
)
|
|
(connector
|
|
(pt 232 160)
|
|
(pt 392 160)
|
|
)
|
|
(connector
|
|
(pt 264 104)
|
|
(pt 264 144)
|
|
)
|
|
(connector
|
|
(pt 264 144)
|
|
(pt 392 144)
|
|
)
|
|
(connector
|
|
(pt 200 104)
|
|
(pt 264 104)
|
|
)
|
|
(connector
|
|
(pt 264 104)
|
|
(pt 296 104)
|
|
)
|
|
(junction (pt 232 56))
|
|
(junction (pt 264 104))
|
|
(title_block
|
|
(rect 24 192 281 244)
|
|
(name "title-custom-small")
|
|
(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 104 0 256 17)(text "MODULE" (rect 2 1 48 13)(font "Arial" ))(text "alu_mux_2z" (rect 43 2 124 17)(font "Arial" (font_size 9)(bold)))(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 0 35 256 51)(text "DATE" (rect 2 0 30 12)(font "Arial" ))(text "May 18, 2014" (rect 56 3 132 17)(font "Arial" (font_size 8)))(border))
|
|
(section (rect 192 35 256 51)(text "REV" (rect 2 1 25 13)(font "Arial" ))(text "1.2" (rect 43 3 60 17)(font "Arial" (font_size 8)))(border))
|
|
(drawing
|
|
)
|
|
)
|