359 lines
8.2 KiB
Plaintext
359 lines
8.2 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 184 136 352 152)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "A" (rect 5 0 15 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 184 152 352 168)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "B" (rect 5 0 14 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 184 168 352 184)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "C" (rect 5 0 14 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 184 200 352 216)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "D" (rect 5 0 15 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
|
||
|
(output)
|
||
|
(rect 600 176 776 192)
|
||
|
(text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
|
||
|
(text "F" (rect 90 0 98 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 504 152 600 344)
|
||
|
(text "Teste1" (rect 5 0 43 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "inst" (rect 8 175 28 188)(font "Intel Clear" ))
|
||
|
(port
|
||
|
(pt 0 32)
|
||
|
(input)
|
||
|
(text "S[2..0]" (rect 0 0 36 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "S[2..0]" (rect 21 27 57 42)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 32)(pt 16 32)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 48)
|
||
|
(input)
|
||
|
(text "X0" (rect 0 0 17 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "X0" (rect 21 43 38 58)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 48)(pt 16 48))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 64)
|
||
|
(input)
|
||
|
(text "X1" (rect 0 0 16 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "X1" (rect 21 59 37 74)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 64)(pt 16 64))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 80)
|
||
|
(input)
|
||
|
(text "X2" (rect 0 0 17 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "X2" (rect 21 75 38 90)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 80)(pt 16 80))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 96)
|
||
|
(input)
|
||
|
(text "X3" (rect 0 0 17 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "X3" (rect 21 91 38 106)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 96)(pt 16 96))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 112)
|
||
|
(input)
|
||
|
(text "X4" (rect 0 0 17 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "X4" (rect 21 107 38 122)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 112)(pt 16 112))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 128)
|
||
|
(input)
|
||
|
(text "X5" (rect 0 0 17 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "X5" (rect 21 123 38 138)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 128)(pt 16 128))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 144)
|
||
|
(input)
|
||
|
(text "X6" (rect 0 0 17 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "X6" (rect 21 139 38 154)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 144)(pt 16 144))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 160)
|
||
|
(input)
|
||
|
(text "X7" (rect 0 0 17 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "X7" (rect 21 155 38 170)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 0 160)(pt 16 160))
|
||
|
)
|
||
|
(port
|
||
|
(pt 96 32)
|
||
|
(output)
|
||
|
(text "Y" (rect 0 0 9 15)(font "Intel Clear" (font_size 8)))
|
||
|
(text "Y" (rect 66 27 75 42)(font "Intel Clear" (font_size 8)))
|
||
|
(line (pt 96 32)(pt 80 32))
|
||
|
)
|
||
|
(drawing
|
||
|
(rectangle (rect 16 16 80 176))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 416 104 448 120)
|
||
|
(text "VCC" (rect 7 0 28 10)(font "Arial" (font_size 6)))
|
||
|
(text "inst2" (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))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 440 192 488 224)
|
||
|
(text "NOT" (rect 1 0 22 10)(font "Arial" (font_size 6)))
|
||
|
(text "inst3" (rect 3 21 27 34)(font "Intel Clear" ))
|
||
|
(port
|
||
|
(pt 0 16)
|
||
|
(input)
|
||
|
(text "IN" (rect 2 7 16 18)(font "Courier New" (bold))(invisible))
|
||
|
(text "IN" (rect 2 7 16 18)(font "Courier New" (bold))(invisible))
|
||
|
(line (pt 0 16)(pt 13 16))
|
||
|
)
|
||
|
(port
|
||
|
(pt 48 16)
|
||
|
(output)
|
||
|
(text "OUT" (rect 32 7 53 18)(font "Courier New" (bold))(invisible))
|
||
|
(text "OUT" (rect 32 7 53 18)(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))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 400 328 432 360)
|
||
|
(text "GND" (rect 8 16 30 26)(font "Arial" (font_size 6)))
|
||
|
(text "inst4" (rect 3 21 28 34)(font "Intel Clear" )(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 504 184)
|
||
|
(pt 480 184)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 448 176)
|
||
|
(pt 352 176)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 352 144)
|
||
|
(pt 448 144)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 480 184)
|
||
|
(pt 480 160)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 432 232)
|
||
|
(pt 504 232)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 432 120)
|
||
|
(pt 432 232)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 432 232)
|
||
|
(pt 432 296)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 504 296)
|
||
|
(pt 432 296)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 504 264)
|
||
|
(pt 392 264)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 504 280)
|
||
|
(pt 392 280)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 392 208)
|
||
|
(pt 392 264)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 392 264)
|
||
|
(pt 392 280)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 416 312)
|
||
|
(pt 504 312)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 416 248)
|
||
|
(pt 416 312)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 416 312)
|
||
|
(pt 416 328)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 504 248)
|
||
|
(pt 416 248)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 352 208)
|
||
|
(pt 392 208)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 392 208)
|
||
|
(pt 440 208)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 488 208)
|
||
|
(pt 496 208)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 504 200)
|
||
|
(pt 496 200)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 504 216)
|
||
|
(pt 496 216)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 496 200)
|
||
|
(pt 496 208)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 496 208)
|
||
|
(pt 496 216)
|
||
|
)
|
||
|
(connector
|
||
|
(text "S[2]" (rect 448 117 461 139)(font "Intel Clear" )(vertical))
|
||
|
(pt 448 144)
|
||
|
(pt 448 160)
|
||
|
)
|
||
|
(connector
|
||
|
(text "S[1]" (rect 439 144 461 157)(font "Intel Clear" ))
|
||
|
(pt 448 160)
|
||
|
(pt 352 160)
|
||
|
)
|
||
|
(connector
|
||
|
(text "S[0]" (rect 439 164 452 186)(font "Intel Clear" )(vertical))
|
||
|
(pt 448 160)
|
||
|
(pt 448 176)
|
||
|
)
|
||
|
(connector
|
||
|
(text "S[2..0]" (rect 468 144 501 157)(font "Intel Clear" ))
|
||
|
(pt 480 160)
|
||
|
(pt 448 160)
|
||
|
(bus)
|
||
|
)
|
||
|
(junction (pt 448 160))
|
||
|
(junction (pt 432 232))
|
||
|
(junction (pt 392 208))
|
||
|
(junction (pt 392 264))
|
||
|
(junction (pt 416 312))
|
||
|
(junction (pt 496 208))
|