286 lines
6.8 KiB
Plaintext
286 lines
6.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) 2020 Intel Corporation. All rights reserved.
|
||
|
Your use of Intel Corporation's design tools, logic functions
|
||
|
and other software and tools, and any 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 Intel Program License
|
||
|
Subscription Agreement, the Intel Quartus Prime License Agreement,
|
||
|
the Intel FPGA IP License Agreement, or other applicable license
|
||
|
agreement, including, without limitation, that your use is for
|
||
|
the sole purpose of programming logic devices manufactured by
|
||
|
Intel and sold by Intel or its authorized distributors. Please
|
||
|
refer to the applicable agreement for further details, at
|
||
|
https://fpgasoftware.intel.com/eula.
|
||
|
*/
|
||
|
(header "graphic" (version "1.4"))
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 272 144 440 160)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[3..0]" (rect 5 0 48 11)(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 149 17)(font "Arial" (font_size 6)))
|
||
|
(annotation_block (location)(rect 208 160 272 176))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 272 160 440 176)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[7..4]" (rect 5 0 49 13)(font "Intel Clear" ))
|
||
|
(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 149 17)(font "Arial" (font_size 6)))
|
||
|
(annotation_block (location)(rect 208 176 272 192))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 272 176 440 192)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[10..8]" (rect 5 0 54 11)(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 149 17)(font "Arial" (font_size 6)))
|
||
|
(annotation_block (location)(rect 208 192 272 208))
|
||
|
)
|
||
|
(pin
|
||
|
(output)
|
||
|
(rect 856 144 1032 160)
|
||
|
(text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
|
||
|
(text "HEX0[6..0]" (rect 90 0 144 11)(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))
|
||
|
)
|
||
|
(annotation_block (location)(rect 1032 160 1096 176))
|
||
|
)
|
||
|
(pin
|
||
|
(output)
|
||
|
(rect 856 224 1032 240)
|
||
|
(text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
|
||
|
(text "HEX1[6..0]" (rect 90 0 144 13)(font "Intel Clear" ))
|
||
|
(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))
|
||
|
)
|
||
|
(annotation_block (location)(rect 1032 240 1096 256))
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 448 120 608 232)
|
||
|
(text "ALU4" (rect 5 0 34 11)(font "Arial" ))
|
||
|
(text "inst" (rect 8 96 26 107)(font "Arial" ))
|
||
|
(port
|
||
|
(pt 0 32)
|
||
|
(input)
|
||
|
(text "a[3..0]" (rect 0 0 30 11)(font "Arial" ))
|
||
|
(text "a[3..0]" (rect 21 27 51 38)(font "Arial" ))
|
||
|
(line (pt 0 32)(pt 16 32)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 48)
|
||
|
(input)
|
||
|
(text "b[3..0]" (rect 0 0 30 11)(font "Arial" ))
|
||
|
(text "b[3..0]" (rect 21 43 51 54)(font "Arial" ))
|
||
|
(line (pt 0 48)(pt 16 48)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 64)
|
||
|
(input)
|
||
|
(text "op[2..0]" (rect 0 0 37 11)(font "Arial" ))
|
||
|
(text "op[2..0]" (rect 21 59 58 70)(font "Arial" ))
|
||
|
(line (pt 0 64)(pt 16 64)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 32)
|
||
|
(output)
|
||
|
(text "r[3..0]" (rect 0 0 28 11)(font "Arial" ))
|
||
|
(text "r[3..0]" (rect 116 27 144 38)(font "Arial" ))
|
||
|
(line (pt 160 32)(pt 144 32)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 48)
|
||
|
(output)
|
||
|
(text "m[3..0]" (rect 0 0 34 11)(font "Arial" ))
|
||
|
(text "m[3..0]" (rect 111 43 145 54)(font "Arial" ))
|
||
|
(line (pt 160 48)(pt 144 48)(line_width 3))
|
||
|
)
|
||
|
(drawing
|
||
|
(rectangle (rect 16 16 144 96))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 640 120 848 200)
|
||
|
(text "Bin7SegDecoder" (rect 5 0 89 11)(font "Arial" ))
|
||
|
(text "inst1" (rect 8 64 32 77)(font "Intel Clear" ))
|
||
|
(port
|
||
|
(pt 0 32)
|
||
|
(input)
|
||
|
(text "binInput[3..0]" (rect 0 0 63 11)(font "Arial" ))
|
||
|
(text "binInput[3..0]" (rect 21 27 84 38)(font "Arial" ))
|
||
|
(line (pt 0 32)(pt 16 32)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 48)
|
||
|
(input)
|
||
|
(text "enable" (rect 0 0 34 11)(font "Arial" ))
|
||
|
(text "enable" (rect 21 43 55 54)(font "Arial" ))
|
||
|
(line (pt 0 48)(pt 16 48))
|
||
|
)
|
||
|
(port
|
||
|
(pt 208 32)
|
||
|
(output)
|
||
|
(text "decOut_n[6..0]" (rect 0 0 73 11)(font "Arial" ))
|
||
|
(text "decOut_n[6..0]" (rect 126 27 199 38)(font "Arial" ))
|
||
|
(line (pt 208 32)(pt 192 32)(line_width 3))
|
||
|
)
|
||
|
(drawing
|
||
|
(rectangle (rect 16 16 192 64))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 640 200 848 280)
|
||
|
(text "Bin7SegDecoder" (rect 5 0 89 11)(font "Arial" ))
|
||
|
(text "inst2" (rect 8 64 32 77)(font "Intel Clear" ))
|
||
|
(port
|
||
|
(pt 0 32)
|
||
|
(input)
|
||
|
(text "binInput[3..0]" (rect 0 0 63 11)(font "Arial" ))
|
||
|
(text "binInput[3..0]" (rect 21 27 84 38)(font "Arial" ))
|
||
|
(line (pt 0 32)(pt 16 32)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 48)
|
||
|
(input)
|
||
|
(text "enable" (rect 0 0 34 11)(font "Arial" ))
|
||
|
(text "enable" (rect 21 43 55 54)(font "Arial" ))
|
||
|
(line (pt 0 48)(pt 16 48))
|
||
|
)
|
||
|
(port
|
||
|
(pt 208 32)
|
||
|
(output)
|
||
|
(text "decOut_n[6..0]" (rect 0 0 73 11)(font "Arial" ))
|
||
|
(text "decOut_n[6..0]" (rect 126 27 199 38)(font "Arial" ))
|
||
|
(line (pt 208 32)(pt 192 32)(line_width 3))
|
||
|
)
|
||
|
(drawing
|
||
|
(rectangle (rect 16 16 192 64))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 608 128 640 144)
|
||
|
(text "VCC" (rect 7 0 28 10)(font "Arial" (font_size 6)))
|
||
|
(text "inst3" (rect 3 5 27 18)(font "Intel Clear" )(invisible))
|
||
|
(port
|
||
|
(pt 16 16)
|
||
|
(output)
|
||
|
(text "1" (rect 19 7 27 18)(font "Courier New" (bold))(invisible))
|
||
|
(text "1" (rect 19 7 27 18)(font "Courier New" (bold))(invisible))
|
||
|
(line (pt 16 16)(pt 16 8))
|
||
|
)
|
||
|
(drawing
|
||
|
(line (pt 8 8)(pt 24 8))
|
||
|
)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 448 152)
|
||
|
(pt 440 152)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 448 168)
|
||
|
(pt 440 168)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 448 184)
|
||
|
(pt 440 184)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 608 168)
|
||
|
(pt 616 168)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 608 152)
|
||
|
(pt 640 152)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 624 168)
|
||
|
(pt 640 168)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 616 168)
|
||
|
(pt 616 232)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 616 232)
|
||
|
(pt 640 232)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 624 248)
|
||
|
(pt 640 248)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 624 144)
|
||
|
(pt 624 168)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 624 168)
|
||
|
(pt 624 248)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 856 232)
|
||
|
(pt 848 232)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 848 152)
|
||
|
(pt 856 152)
|
||
|
(bus)
|
||
|
)
|
||
|
(junction (pt 624 168))
|