234 lines
5.8 KiB
Plaintext
234 lines
5.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 256 232 424 248)
|
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
|
(text "KEY[1]" (rect 5 0 39 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 192 248 256 264))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect 256 248 424 264)
|
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
|
(text "SW[0]" (rect 5 0 35 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 192 264 256 280))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect 152 176 320 192)
|
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
|
(text "CLOCK_50" (rect 5 0 63 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 88 192 152 208))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 872 216 1048 232)
|
|
(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 1048 232 1112 248))
|
|
)
|
|
(symbol
|
|
(rect 432 224 480 256)
|
|
(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 672 192 880 272)
|
|
(text "Bin7SegDecoder" (rect 5 0 89 11)(font "Arial" ))
|
|
(text "hex" (rect 8 64 28 75)(font "Arial" ))
|
|
(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 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 488 192 664 304)
|
|
(text "CounterUpDown4" (rect 5 0 94 11)(font "Arial" ))
|
|
(text "inst" (rect 8 96 26 107)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "clock" (rect 0 0 27 11)(font "Arial" ))
|
|
(text "clock" (rect 21 27 48 38)(font "Arial" ))
|
|
(line (pt 0 32)(pt 16 32))
|
|
)
|
|
(port
|
|
(pt 0 48)
|
|
(input)
|
|
(text "reset" (rect 0 0 25 11)(font "Arial" ))
|
|
(text "reset" (rect 21 43 46 54)(font "Arial" ))
|
|
(line (pt 0 48)(pt 16 48))
|
|
)
|
|
(port
|
|
(pt 0 64)
|
|
(input)
|
|
(text "upDown" (rect 0 0 42 11)(font "Arial" ))
|
|
(text "upDown" (rect 21 59 63 70)(font "Arial" ))
|
|
(line (pt 0 64)(pt 16 64))
|
|
)
|
|
(port
|
|
(pt 176 32)
|
|
(output)
|
|
(text "count[3..0]" (rect 0 0 51 11)(font "Arial" ))
|
|
(text "count[3..0]" (rect 112 27 163 38)(font "Arial" ))
|
|
(line (pt 176 32)(pt 160 32)(line_width 3))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 160 96))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 328 152 472 232)
|
|
(text "FreqDivider" (rect 5 0 64 11)(font "Arial" ))
|
|
(text "inst1" (rect 8 64 32 77)(font "Intel Clear" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "clkIn" (rect 0 0 24 11)(font "Arial" ))
|
|
(text "clkIn" (rect 21 27 45 38)(font "Arial" ))
|
|
(line (pt 0 32)(pt 16 32))
|
|
)
|
|
(port
|
|
(pt 144 32)
|
|
(output)
|
|
(text "clkOut" (rect 0 0 33 11)(font "Arial" ))
|
|
(text "clkOut" (rect 96 27 129 38)(font "Arial" ))
|
|
(line (pt 144 32)(pt 128 32))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 128 64))
|
|
)
|
|
)
|
|
(connector
|
|
(pt 480 224)
|
|
(pt 488 224)
|
|
)
|
|
(connector
|
|
(pt 488 240)
|
|
(pt 480 240)
|
|
)
|
|
(connector
|
|
(pt 432 240)
|
|
(pt 424 240)
|
|
)
|
|
(connector
|
|
(pt 664 224)
|
|
(pt 672 224)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 872 224)
|
|
(pt 880 224)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 424 256)
|
|
(pt 488 256)
|
|
)
|
|
(connector
|
|
(pt 480 184)
|
|
(pt 472 184)
|
|
)
|
|
(connector
|
|
(pt 480 224)
|
|
(pt 480 184)
|
|
)
|
|
(connector
|
|
(pt 328 184)
|
|
(pt 320 184)
|
|
)
|