544 lines
12 KiB
Plaintext
544 lines
12 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 0 288 168 304)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "Cin" (rect 5 0 22 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)))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 0 224 168 240)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "A[3..0]" (rect 5 0 39 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)))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 0 208 168 224)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "B[3..0]" (rect 5 0 36 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)))
|
||
|
)
|
||
|
(pin
|
||
|
(output)
|
||
|
(rect 728 288 904 304)
|
||
|
(text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
|
||
|
(text "Cout" (rect 90 0 114 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))
|
||
|
)
|
||
|
)
|
||
|
(pin
|
||
|
(output)
|
||
|
(rect 728 368 904 384)
|
||
|
(text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
|
||
|
(text "S" (rect 90 0 99 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))
|
||
|
)
|
||
|
)
|
||
|
(pin
|
||
|
(output)
|
||
|
(rect 808 328 984 344)
|
||
|
(text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
|
||
|
(text "Overflow" (rect 90 0 134 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))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 200 264 296 360)
|
||
|
(text "AdderDemo" (rect 5 0 75 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "inst" (rect 8 79 28 92)(font "Intel Clear" ))
|
||
|
(port
|
||
|
(pt 0 32)
|
||
|
(input)
|
||
|
(text "Cin" (rect 0 0 20 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "Cin" (rect 21 27 41 42)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 32)(pt 16 32))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 48)
|
||
|
(input)
|
||
|
(text "A" (rect 0 0 9 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "A" (rect 21 43 30 58)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 48)(pt 16 48))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 64)
|
||
|
(input)
|
||
|
(text "B" (rect 0 0 9 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "B" (rect 21 59 30 74)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 64)(pt 16 64))
|
||
|
)
|
||
|
(port
|
||
|
(pt 96 32)
|
||
|
(output)
|
||
|
(text "Cout" (rect 0 0 28 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "Cout" (rect 47 27 75 42)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 96 32)(pt 80 32))
|
||
|
)
|
||
|
(port
|
||
|
(pt 96 48)
|
||
|
(output)
|
||
|
(text "S" (rect 0 0 9 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "S" (rect 66 43 75 58)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 96 48)(pt 80 48))
|
||
|
)
|
||
|
(drawing
|
||
|
(rectangle (rect 16 16 80 80))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 336 264 432 360)
|
||
|
(text "AdderDemo" (rect 5 0 75 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "inst3" (rect 8 79 32 92)(font "Intel Clear" ))
|
||
|
(port
|
||
|
(pt 0 32)
|
||
|
(input)
|
||
|
(text "Cin" (rect 0 0 20 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "Cin" (rect 21 27 41 42)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 32)(pt 16 32))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 48)
|
||
|
(input)
|
||
|
(text "A" (rect 0 0 9 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "A" (rect 21 43 30 58)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 48)(pt 16 48))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 64)
|
||
|
(input)
|
||
|
(text "B" (rect 0 0 9 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "B" (rect 21 59 30 74)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 64)(pt 16 64))
|
||
|
)
|
||
|
(port
|
||
|
(pt 96 32)
|
||
|
(output)
|
||
|
(text "Cout" (rect 0 0 28 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "Cout" (rect 47 27 75 42)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 96 32)(pt 80 32))
|
||
|
)
|
||
|
(port
|
||
|
(pt 96 48)
|
||
|
(output)
|
||
|
(text "S" (rect 0 0 9 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "S" (rect 66 43 75 58)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 96 48)(pt 80 48))
|
||
|
)
|
||
|
(drawing
|
||
|
(rectangle (rect 16 16 80 80))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 472 264 568 360)
|
||
|
(text "AdderDemo" (rect 5 0 75 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "inst4" (rect 8 79 33 92)(font "Intel Clear" ))
|
||
|
(port
|
||
|
(pt 0 32)
|
||
|
(input)
|
||
|
(text "Cin" (rect 0 0 20 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "Cin" (rect 21 27 41 42)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 32)(pt 16 32))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 48)
|
||
|
(input)
|
||
|
(text "A" (rect 0 0 9 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "A" (rect 21 43 30 58)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 48)(pt 16 48))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 64)
|
||
|
(input)
|
||
|
(text "B" (rect 0 0 9 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "B" (rect 21 59 30 74)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 64)(pt 16 64))
|
||
|
)
|
||
|
(port
|
||
|
(pt 96 32)
|
||
|
(output)
|
||
|
(text "Cout" (rect 0 0 28 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "Cout" (rect 47 27 75 42)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 96 32)(pt 80 32))
|
||
|
)
|
||
|
(port
|
||
|
(pt 96 48)
|
||
|
(output)
|
||
|
(text "S" (rect 0 0 9 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "S" (rect 66 43 75 58)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 96 48)(pt 80 48))
|
||
|
)
|
||
|
(drawing
|
||
|
(rectangle (rect 16 16 80 80))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 608 264 704 360)
|
||
|
(text "AdderDemo" (rect 5 0 75 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "inst6" (rect 8 79 33 92)(font "Intel Clear" ))
|
||
|
(port
|
||
|
(pt 0 32)
|
||
|
(input)
|
||
|
(text "Cin" (rect 0 0 20 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "Cin" (rect 21 27 41 42)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 32)(pt 16 32))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 48)
|
||
|
(input)
|
||
|
(text "A" (rect 0 0 9 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "A" (rect 21 43 30 58)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 48)(pt 16 48))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 64)
|
||
|
(input)
|
||
|
(text "B" (rect 0 0 9 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "B" (rect 21 59 30 74)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 64)(pt 16 64))
|
||
|
)
|
||
|
(port
|
||
|
(pt 96 32)
|
||
|
(output)
|
||
|
(text "Cout" (rect 0 0 28 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "Cout" (rect 47 27 75 42)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 96 32)(pt 80 32))
|
||
|
)
|
||
|
(port
|
||
|
(pt 96 48)
|
||
|
(output)
|
||
|
(text "S" (rect 0 0 9 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "S" (rect 66 43 75 58)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 96 48)(pt 80 48))
|
||
|
)
|
||
|
(drawing
|
||
|
(rectangle (rect 16 16 80 80))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 728 312 792 360)
|
||
|
(text "XOR" (rect 1 0 23 10)(font "Arial" (font_size 6)))
|
||
|
(text "inst5" (rect 3 37 27 50)(font "Intel Clear" ))
|
||
|
(port
|
||
|
(pt 0 16)
|
||
|
(input)
|
||
|
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
|
||
|
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
|
||
|
(line (pt 0 16)(pt 11 16))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 32)
|
||
|
(input)
|
||
|
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
|
||
|
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
|
||
|
(line (pt 0 32)(pt 11 32))
|
||
|
)
|
||
|
(port
|
||
|
(pt 64 24)
|
||
|
(output)
|
||
|
(text "OUT" (rect 48 15 69 26)(font "Courier New" (bold))(invisible))
|
||
|
(text "OUT" (rect 48 15 69 26)(font "Courier New" (bold))(invisible))
|
||
|
(line (pt 49 24)(pt 64 24))
|
||
|
)
|
||
|
(drawing
|
||
|
(line (pt 14 13)(pt 25 13))
|
||
|
(line (pt 14 36)(pt 25 36))
|
||
|
(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))
|
||
|
(arc (pt 8 36)(pt 8 12)(rect -21 7 14 42))
|
||
|
)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 296 296)
|
||
|
(pt 336 296)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 432 296)
|
||
|
(pt 472 296)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 608 312)
|
||
|
(pt 584 312)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 472 312)
|
||
|
(pt 448 312)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 200 312)
|
||
|
(pt 176 312)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 472 328)
|
||
|
(pt 456 328)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 336 328)
|
||
|
(pt 320 328)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 296 312)
|
||
|
(pt 304 312)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 304 312)
|
||
|
(pt 304 376)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 432 312)
|
||
|
(pt 440 312)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 440 312)
|
||
|
(pt 440 376)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 304 376)
|
||
|
(pt 440 376)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 568 312)
|
||
|
(pt 576 312)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 576 312)
|
||
|
(pt 576 376)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 440 376)
|
||
|
(pt 576 376)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 704 312)
|
||
|
(pt 712 312)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 712 312)
|
||
|
(pt 712 376)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 200 296)
|
||
|
(pt 168 296)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 576 376)
|
||
|
(pt 712 376)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 712 376)
|
||
|
(pt 728 376)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 792 336)
|
||
|
(pt 808 336)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 592 328)
|
||
|
(pt 608 328)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 728 344)
|
||
|
(pt 600 344)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 600 344)
|
||
|
(pt 600 296)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 568 296)
|
||
|
(pt 600 296)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 600 296)
|
||
|
(pt 608 296)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 728 328)
|
||
|
(pt 720 328)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 720 328)
|
||
|
(pt 720 296)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 704 296)
|
||
|
(pt 720 296)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 720 296)
|
||
|
(pt 728 296)
|
||
|
)
|
||
|
(connector
|
||
|
(text "A3" (rect 160 260 173 274)(font "Intel Clear" )(vertical))
|
||
|
(pt 176 232)
|
||
|
(pt 176 312)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 200 328)
|
||
|
(pt 184 328)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 336 312)
|
||
|
(pt 312 312)
|
||
|
)
|
||
|
(connector
|
||
|
(text "A2" (rect 296 268 309 282)(font "Intel Clear" )(vertical))
|
||
|
(pt 312 232)
|
||
|
(pt 312 312)
|
||
|
)
|
||
|
(connector
|
||
|
(text "B2" (rect 304 300 317 314)(font "Intel Clear" )(vertical))
|
||
|
(pt 320 216)
|
||
|
(pt 320 328)
|
||
|
)
|
||
|
(connector
|
||
|
(text "A1" (rect 432 284 445 298)(font "Intel Clear" )(vertical))
|
||
|
(pt 448 312)
|
||
|
(pt 448 232)
|
||
|
)
|
||
|
(connector
|
||
|
(text "B1" (rect 440 300 453 314)(font "Intel Clear" )(vertical))
|
||
|
(pt 456 216)
|
||
|
(pt 456 328)
|
||
|
)
|
||
|
(connector
|
||
|
(text "A0" (rect 568 283 581 298)(font "Intel Clear" )(vertical))
|
||
|
(pt 584 232)
|
||
|
(pt 584 312)
|
||
|
)
|
||
|
(connector
|
||
|
(text "B0" (rect 576 299 589 314)(font "Intel Clear" )(vertical))
|
||
|
(pt 592 328)
|
||
|
(pt 592 216)
|
||
|
)
|
||
|
(connector
|
||
|
(text "B3" (rect 168 260 181 274)(font "Intel Clear" )(vertical))
|
||
|
(pt 184 216)
|
||
|
(pt 184 328)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 168 216)
|
||
|
(pt 184 216)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 184 216)
|
||
|
(pt 320 216)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 320 216)
|
||
|
(pt 456 216)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 456 216)
|
||
|
(pt 592 216)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 168 232)
|
||
|
(pt 176 232)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 176 232)
|
||
|
(pt 312 232)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 312 232)
|
||
|
(pt 448 232)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 448 232)
|
||
|
(pt 584 232)
|
||
|
(bus)
|
||
|
)
|
||
|
(junction (pt 440 376))
|
||
|
(junction (pt 576 376))
|
||
|
(junction (pt 712 376))
|
||
|
(junction (pt 600 296))
|
||
|
(junction (pt 720 296))
|
||
|
(junction (pt 184 216))
|
||
|
(junction (pt 320 216))
|
||
|
(junction (pt 456 216))
|
||
|
(junction (pt 176 232))
|
||
|
(junction (pt 312 232))
|
||
|
(junction (pt 448 232))
|