176 lines
4.6 KiB
Plaintext
176 lines
4.6 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[7..4]" (rect 5 0 47 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[3..0]" (rect 5 0 48 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 616 144 792 160)
|
||
|
(text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
|
||
|
(text "LEDR[3..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 792 160 856 176))
|
||
|
)
|
||
|
(pin
|
||
|
(output)
|
||
|
(rect 616 160 792 176)
|
||
|
(text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
|
||
|
(text "LEDR[7..4]" (rect 90 0 143 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 792 176 848 192))
|
||
|
)
|
||
|
(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))
|
||
|
)
|
||
|
)
|
||
|
(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 152)
|
||
|
(pt 616 152)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 608 168)
|
||
|
(pt 616 168)
|
||
|
(bus)
|
||
|
)
|