/*
|
/*
|
WARNING: Do NOT edit the input and output ports in this file in a text
|
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
|
editor if you plan to continue editing the block that represents it in
|
the Block Editor! File corruption is VERY likely to occur.
|
the Block Editor! File corruption is VERY likely to occur.
|
*/
|
*/
|
/*
|
/*
|
Copyright (C) 1991-2013 Altera Corporation
|
Copyright (C) 1991-2013 Altera Corporation
|
Your use of Altera Corporation's design tools, logic functions
|
Your use of Altera Corporation's design tools, logic functions
|
and other software and tools, and its AMPP partner logic
|
and other software and tools, and its AMPP partner logic
|
functions, and any output files from any of the foregoing
|
functions, and any output files from any of the foregoing
|
(including device programming or simulation files), and any
|
(including device programming or simulation files), and any
|
associated documentation or information are expressly subject
|
associated documentation or information are expressly subject
|
to the terms and conditions of the Altera Program License
|
to the terms and conditions of the Altera Program License
|
Subscription Agreement, Altera MegaCore Function License
|
Subscription Agreement, Altera MegaCore Function License
|
Agreement, or other applicable license agreement, including,
|
Agreement, or other applicable license agreement, including,
|
without limitation, that your use is for the sole purpose of
|
without limitation, that your use is for the sole purpose of
|
programming logic devices manufactured by Altera and sold by
|
programming logic devices manufactured by Altera and sold by
|
Altera or its authorized distributors. Please refer to the
|
Altera or its authorized distributors. Please refer to the
|
applicable agreement for further details.
|
applicable agreement for further details.
|
*/
|
*/
|
(header "graphic" (version "1.4"))
|
(header "graphic" (version "1.4"))
|
(pin
|
(pin
|
(input)
|
(input)
|
(rect 40 80 216 96)
|
(rect 40 88 216 104)
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
(text "ctl_ir_we" (rect 9 0 51 12)(font "Arial" ))
|
(text "ctl_ir_we" (rect 9 0 51 12)(font "Arial" ))
|
(pt 176 8)
|
(pt 176 8)
|
(drawing
|
(drawing
|
(line (pt 92 12)(pt 117 12))
|
(line (pt 92 12)(pt 117 12))
|
(line (pt 92 4)(pt 117 4))
|
(line (pt 92 4)(pt 117 4))
|
(line (pt 121 8)(pt 176 8))
|
(line (pt 121 8)(pt 176 8))
|
(line (pt 92 12)(pt 92 4))
|
(line (pt 92 12)(pt 92 4))
|
(line (pt 117 4)(pt 121 8))
|
(line (pt 117 4)(pt 121 8))
|
(line (pt 117 12)(pt 121 8))
|
(line (pt 117 12)(pt 121 8))
|
)
|
)
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
)
|
)
|
(pin
|
(pin
|
(input)
|
(input)
|
(rect 40 48 216 64)
|
(rect 40 48 216 64)
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
(text "db[7..0]" (rect 9 0 46 12)(font "Arial" ))
|
(text "db[7..0]" (rect 9 0 46 12)(font "Arial" ))
|
(pt 176 8)
|
(pt 176 8)
|
(drawing
|
(drawing
|
(line (pt 92 12)(pt 117 12))
|
(line (pt 92 12)(pt 117 12))
|
(line (pt 92 4)(pt 117 4))
|
(line (pt 92 4)(pt 117 4))
|
(line (pt 121 8)(pt 176 8))
|
(line (pt 121 8)(pt 176 8))
|
(line (pt 92 12)(pt 92 4))
|
(line (pt 92 12)(pt 92 4))
|
(line (pt 117 4)(pt 121 8))
|
(line (pt 117 4)(pt 121 8))
|
(line (pt 117 12)(pt 121 8))
|
(line (pt 117 12)(pt 121 8))
|
)
|
)
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
)
|
)
|
(pin
|
(pin
|
(input)
|
(input)
|
(rect 40 64 216 80)
|
(rect 40 64 216 80)
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
(text "clk" (rect 9 0 23 12)(font "Arial" ))
|
(text "clk" (rect 9 0 23 12)(font "Arial" ))
|
(pt 176 8)
|
(pt 176 8)
|
(drawing
|
(drawing
|
(line (pt 92 12)(pt 117 12))
|
(line (pt 92 12)(pt 117 12))
|
(line (pt 92 4)(pt 117 4))
|
(line (pt 92 4)(pt 117 4))
|
(line (pt 121 8)(pt 176 8))
|
(line (pt 121 8)(pt 176 8))
|
(line (pt 92 12)(pt 92 4))
|
(line (pt 92 12)(pt 92 4))
|
(line (pt 117 4)(pt 121 8))
|
(line (pt 117 4)(pt 121 8))
|
(line (pt 117 12)(pt 121 8))
|
(line (pt 117 12)(pt 121 8))
|
)
|
)
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
)
|
)
|
(pin
|
(pin
|
(input)
|
(input)
|
(rect 40 120 216 136)
|
(rect 40 152 216 168)
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
(text "nreset" (rect 9 0 39 12)(font "Arial" ))
|
(text "nreset" (rect 9 0 39 12)(font "Arial" ))
|
(pt 176 8)
|
(pt 176 8)
|
(drawing
|
(drawing
|
(line (pt 92 12)(pt 117 12))
|
(line (pt 92 12)(pt 117 12))
|
(line (pt 92 4)(pt 117 4))
|
(line (pt 92 4)(pt 117 4))
|
(line (pt 121 8)(pt 176 8))
|
(line (pt 121 8)(pt 176 8))
|
(line (pt 92 12)(pt 92 4))
|
(line (pt 92 12)(pt 92 4))
|
(line (pt 117 4)(pt 121 8))
|
(line (pt 117 4)(pt 121 8))
|
(line (pt 117 12)(pt 121 8))
|
(line (pt 117 12)(pt 121 8))
|
)
|
)
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
)
|
)
|
(pin
|
(pin
|
|
(input)
|
|
(rect 40 120 216 136)
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
|
(text "hold_clk_wait" (rect 9 0 73 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)
|
(output)
|
(rect 504 48 680 64)
|
(rect 504 48 680 64)
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
(text "opcode[7..0]" (rect 90 0 151 12)(font "Arial" ))
|
(text "opcode[7..0]" (rect 90 0 151 12)(font "Arial" ))
|
(pt 0 8)
|
(pt 0 8)
|
(drawing
|
(drawing
|
(line (pt 0 8)(pt 52 8))
|
(line (pt 0 8)(pt 52 8))
|
(line (pt 52 4)(pt 78 4))
|
(line (pt 52 4)(pt 78 4))
|
(line (pt 52 12)(pt 78 12))
|
(line (pt 52 12)(pt 78 12))
|
(line (pt 52 12)(pt 52 4))
|
(line (pt 52 12)(pt 52 4))
|
(line (pt 78 4)(pt 82 8))
|
(line (pt 78 4)(pt 82 8))
|
(line (pt 82 8)(pt 78 12))
|
(line (pt 82 8)(pt 78 12))
|
(line (pt 78 12)(pt 82 8))
|
(line (pt 78 12)(pt 82 8))
|
)
|
)
|
)
|
)
|
(symbol
|
(symbol
|
(rect 392 32 456 112)
|
(rect 392 32 456 112)
|
(text "DFFE" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
(text "DFFE" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
(text "ir" (rect 3 68 8 80)(font "Arial" ))
|
(text "ir" (rect 3 68 8 80)(font "Arial" ))
|
(port
|
(port
|
(pt 32 0)
|
(pt 32 0)
|
(input)
|
(input)
|
(text "PRN" (rect 24 13 41 25)(font "Courier New" (bold)))
|
(text "PRN" (rect 24 13 41 25)(font "Courier New" (bold)))
|
(text "PRN" (rect 24 11 41 23)(font "Courier New" (bold)))
|
(text "PRN" (rect 24 11 41 23)(font "Courier New" (bold)))
|
(line (pt 32 4)(pt 32 0))
|
(line (pt 32 4)(pt 32 0))
|
)
|
)
|
(port
|
(port
|
(pt 32 80)
|
(pt 32 80)
|
(input)
|
(input)
|
(text "CLRN" (rect 21 59 44 71)(font "Courier New" (bold)))
|
(text "CLRN" (rect 21 59 44 71)(font "Courier New" (bold)))
|
(text "CLRN" (rect 21 58 44 70)(font "Courier New" (bold)))
|
(text "CLRN" (rect 21 58 44 70)(font "Courier New" (bold)))
|
(line (pt 32 80)(pt 32 76))
|
(line (pt 32 80)(pt 32 76))
|
)
|
)
|
(port
|
(port
|
(pt 0 24)
|
(pt 0 24)
|
(input)
|
(input)
|
(text "D" (rect 14 20 19 32)(font "Courier New" (bold)))
|
(text "D" (rect 14 20 19 32)(font "Courier New" (bold)))
|
(text "D" (rect 14 20 19 32)(font "Courier New" (bold)))
|
(text "D" (rect 14 20 19 32)(font "Courier New" (bold)))
|
(line (pt 0 24)(pt 12 24))
|
(line (pt 0 24)(pt 12 24))
|
)
|
)
|
(port
|
(port
|
(pt 0 40)
|
(pt 0 40)
|
(input)
|
(input)
|
(text "CLK" (rect 2 28 19 40)(font "Courier New" (bold))(invisible))
|
(text "CLK" (rect 2 28 19 40)(font "Courier New" (bold))(invisible))
|
(text "CLK" (rect 2 28 19 40)(font "Courier New" (bold))(invisible))
|
(text "CLK" (rect 2 28 19 40)(font "Courier New" (bold))(invisible))
|
(line (pt 0 40)(pt 12 40))
|
(line (pt 0 40)(pt 12 40))
|
)
|
)
|
(port
|
(port
|
(pt 0 56)
|
(pt 0 56)
|
(input)
|
(input)
|
(text "ENA" (rect 14 50 31 62)(font "Courier New" (bold)))
|
(text "ENA" (rect 14 50 31 62)(font "Courier New" (bold)))
|
(text "ENA" (rect 14 50 31 62)(font "Courier New" (bold)))
|
(text "ENA" (rect 14 50 31 62)(font "Courier New" (bold)))
|
(line (pt 0 56)(pt 12 56))
|
(line (pt 0 56)(pt 12 56))
|
)
|
)
|
(port
|
(port
|
(pt 64 24)
|
(pt 64 24)
|
(output)
|
(output)
|
(text "Q" (rect 44 20 49 32)(font "Courier New" (bold)))
|
(text "Q" (rect 44 20 49 32)(font "Courier New" (bold)))
|
(text "Q" (rect 44 20 49 32)(font "Courier New" (bold)))
|
(text "Q" (rect 44 20 49 32)(font "Courier New" (bold)))
|
(line (pt 53 24)(pt 64 24))
|
(line (pt 53 24)(pt 64 24))
|
)
|
)
|
(drawing
|
(drawing
|
(line (pt 12 68)(pt 52 68))
|
(line (pt 12 68)(pt 52 68))
|
(line (pt 12 12)(pt 52 12))
|
(line (pt 12 12)(pt 52 12))
|
(line (pt 52 68)(pt 52 12))
|
(line (pt 52 68)(pt 52 12))
|
(line (pt 12 68)(pt 12 12))
|
(line (pt 12 68)(pt 12 12))
|
(line (pt 12 34)(pt 19 41))
|
(line (pt 12 34)(pt 19 41))
|
(line (pt 18 41)(pt 12 47))
|
(line (pt 18 41)(pt 12 47))
|
(circle (rect 28 4 36 12))
|
(circle (rect 28 4 36 12))
|
(circle (rect 28 68 36 76))
|
(circle (rect 28 68 36 76))
|
)
|
)
|
)
|
)
|
|
(symbol
|
|
(rect 296 80 360 128)
|
|
(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 232 112 280 144)
|
|
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
|
|
(text "inst3" (rect 3 21 26 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 49 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))
|
|
)
|
|
)
|
(connector
|
(connector
|
(pt 216 56)
|
(pt 216 56)
|
(pt 392 56)
|
(pt 392 56)
|
(bus)
|
(bus)
|
)
|
)
|
(connector
|
(connector
|
(pt 216 72)
|
(pt 216 72)
|
(pt 392 72)
|
(pt 392 72)
|
)
|
)
|
(connector
|
(connector
|
(pt 456 56)
|
(pt 456 56)
|
(pt 504 56)
|
(pt 504 56)
|
(bus)
|
(bus)
|
)
|
)
|
(connector
|
(connector
|
(pt 216 88)
|
|
(pt 392 88)
|
(pt 392 88)
|
|
(pt 376 88)
|
)
|
)
|
(connector
|
(connector
|
(pt 216 128)
|
(pt 424 160)
|
(pt 424 128)
|
(pt 216 160)
|
)
|
)
|
(connector
|
(connector
|
(pt 424 128)
|
|
(pt 424 112)
|
(pt 424 112)
|
|
(pt 424 160)
|
|
)
|
|
(connector
|
|
(pt 216 128)
|
|
(pt 232 128)
|
|
)
|
|
(connector
|
|
(pt 376 88)
|
|
(pt 376 104)
|
|
)
|
|
(connector
|
|
(pt 376 104)
|
|
(pt 360 104)
|
|
)
|
|
(connector
|
|
(pt 216 96)
|
|
(pt 296 96)
|
|
)
|
|
(connector
|
|
(pt 280 128)
|
|
(pt 288 128)
|
|
)
|
|
(connector
|
|
(pt 296 112)
|
|
(pt 288 112)
|
|
)
|
|
(connector
|
|
(pt 288 112)
|
|
(pt 288 128)
|
)
|
)
|
(text "8 latches implement the opcode Instruction Register" (rect 352 160 643 174)(font "Arial" (font_size 8)))
|
(text "8 latches implement the opcode Instruction Register" (rect 328 216 619 230)(font "Arial" (font_size 8)))
|
(title_block
|
(title_block
|
(rect 40 160 297 212)
|
(rect 40 216 297 268)
|
(name "title-custom-small")
|
(name "title-custom-small")
|
(section (rect 0 35 256 51)(text "DATE" (rect 2 0 30 12)(font "Arial" ))(text "May 3, 2014, 2016" (rect 56 3 161 17)(font "Arial" (font_size 8)))(border))
|
(section (rect 0 35 256 51)(text "DATE" (rect 2 0 30 12)(font "Arial" ))(text "May 3, 2014, 2016" (rect 56 3 161 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 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 "ir" (rect 43 2 52 17)(font "Arial" (font_size 9)(bold)))(border))
|
(section (rect 104 0 256 17)(text "MODULE" (rect 2 1 48 13)(font "Arial" ))(text "ir" (rect 43 2 52 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 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.3" (rect 43 3 60 17)(font "Arial" (font_size 8)))(border))
|
(section (rect 192 35 256 51)(text "REV" (rect 2 1 25 13)(font "Arial" ))(text "1.4" (rect 43 3 60 17)(font "Arial" (font_size 8)))(border))
|
(drawing
|
(drawing
|
)
|
)
|
)
|
)
|
|
|