389 lines
9.5 KiB
Plaintext
389 lines
9.5 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 312 200 480 216)
|
||
|
(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 248 216 312 232))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 312 184 480 200)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[7..4]" (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 248 200 312 216))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 312 368 480 384)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[17..14]" (rect 5 0 61 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 248 384 312 400))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 312 384 480 400)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[13..10]" (rect 5 0 62 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 240 400 312 416))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 312 400 480 416)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "KEY[0]" (rect 5 0 41 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 248 416 312 432))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 304 288 472 304)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[9..8]" (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 240 304 304 320))
|
||
|
)
|
||
|
(pin
|
||
|
(output)
|
||
|
(rect 648 184 824 200)
|
||
|
(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 824 200 888 216))
|
||
|
)
|
||
|
(pin
|
||
|
(output)
|
||
|
(rect 648 368 824 384)
|
||
|
(text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
|
||
|
(text "LEDR[13..10]" (rect 90 0 156 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 824 384 880 400))
|
||
|
)
|
||
|
(pin
|
||
|
(output)
|
||
|
(rect 648 384 824 400)
|
||
|
(text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
|
||
|
(text "LEDR[14]" (rect 90 0 138 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 824 400 880 416))
|
||
|
)
|
||
|
(pin
|
||
|
(output)
|
||
|
(rect 648 200 824 216)
|
||
|
(text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
|
||
|
(text "LEDR[4]" (rect 90 0 132 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 824 216 880 232))
|
||
|
)
|
||
|
(pin
|
||
|
(output)
|
||
|
(rect 488 288 664 304)
|
||
|
(text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
|
||
|
(text "LEDR[9..5]" (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 664 304 720 320))
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 488 160 640 272)
|
||
|
(text "Adder4" (rect 5 0 42 11)(font "Arial" ))
|
||
|
(text "Adder4Demo" (rect 8 96 74 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 "cin" (rect 0 0 15 11)(font "Arial" ))
|
||
|
(text "cin" (rect 21 59 36 70)(font "Arial" ))
|
||
|
(line (pt 0 64)(pt 16 64))
|
||
|
)
|
||
|
(port
|
||
|
(pt 152 32)
|
||
|
(output)
|
||
|
(text "s[3..0]" (rect 0 0 30 11)(font "Arial" ))
|
||
|
(text "s[3..0]" (rect 106 27 136 38)(font "Arial" ))
|
||
|
(line (pt 152 32)(pt 136 32)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 152 48)
|
||
|
(output)
|
||
|
(text "cout" (rect 0 0 22 11)(font "Arial" ))
|
||
|
(text "cout" (rect 113 43 135 54)(font "Arial" ))
|
||
|
(line (pt 152 48)(pt 136 48))
|
||
|
)
|
||
|
(drawing
|
||
|
(rectangle (rect 16 16 136 96))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 488 344 640 456)
|
||
|
(text "AddSub4" (rect 5 0 52 11)(font "Arial" ))
|
||
|
(text "AddSub4Demo" (rect 8 96 84 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 "sub" (rect 0 0 20 11)(font "Arial" ))
|
||
|
(text "sub" (rect 21 59 41 70)(font "Arial" ))
|
||
|
(line (pt 0 64)(pt 16 64))
|
||
|
)
|
||
|
(port
|
||
|
(pt 152 32)
|
||
|
(output)
|
||
|
(text "s[3..0]" (rect 0 0 30 11)(font "Arial" ))
|
||
|
(text "s[3..0]" (rect 106 27 136 38)(font "Arial" ))
|
||
|
(line (pt 152 32)(pt 136 32)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 152 48)
|
||
|
(output)
|
||
|
(text "cout" (rect 0 0 22 11)(font "Arial" ))
|
||
|
(text "cout" (rect 113 43 135 54)(font "Arial" ))
|
||
|
(line (pt 152 48)(pt 136 48))
|
||
|
)
|
||
|
(drawing
|
||
|
(rectangle (rect 16 16 136 96))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 448 240 480 272)
|
||
|
(text "GND" (rect 8 16 30 26)(font "Arial" (font_size 6)))
|
||
|
(text "Ground1" (rect 3 21 47 32)(font "Arial" )(invisible))
|
||
|
(port
|
||
|
(pt 16 0)
|
||
|
(output)
|
||
|
(text "1" (rect 18 0 26 11)(font "Courier New" (bold))(invisible))
|
||
|
(text "1" (rect 18 0 26 11)(font "Courier New" (bold))(invisible))
|
||
|
(line (pt 16 8)(pt 16 0))
|
||
|
)
|
||
|
(drawing
|
||
|
(line (pt 8 8)(pt 16 16))
|
||
|
(line (pt 16 16)(pt 24 8))
|
||
|
(line (pt 8 8)(pt 24 8))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 464 304 496 336)
|
||
|
(text "GND" (rect 8 16 30 26)(font "Arial" (font_size 6)))
|
||
|
(text "Ground2" (rect 3 21 47 32)(font "Arial" )(invisible))
|
||
|
(port
|
||
|
(pt 16 0)
|
||
|
(output)
|
||
|
(text "1" (rect 18 0 26 11)(font "Courier New" (bold))(invisible))
|
||
|
(text "1" (rect 18 0 26 11)(font "Courier New" (bold))(invisible))
|
||
|
(line (pt 16 8)(pt 16 0))
|
||
|
)
|
||
|
(drawing
|
||
|
(line (pt 8 8)(pt 16 16))
|
||
|
(line (pt 16 16)(pt 24 8))
|
||
|
(line (pt 8 8)(pt 24 8))
|
||
|
)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 488 192)
|
||
|
(pt 480 192)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 488 208)
|
||
|
(pt 480 208)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 640 192)
|
||
|
(pt 648 192)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 640 208)
|
||
|
(pt 648 208)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 464 240)
|
||
|
(pt 464 224)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 464 224)
|
||
|
(pt 488 224)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 640 376)
|
||
|
(pt 648 376)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 640 392)
|
||
|
(pt 648 392)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 488 376)
|
||
|
(pt 480 376)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 488 392)
|
||
|
(pt 480 392)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 488 408)
|
||
|
(pt 480 408)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 480 304)
|
||
|
(pt 480 296)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 488 296)
|
||
|
(pt 480 296)
|
||
|
(bus)
|
||
|
)
|