351 lines
8.9 KiB
Plaintext
351 lines
8.9 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 96 208 264 224)
|
||
|
(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 40 224 96 240))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 96 224 264 240)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[7..0]" (rect 5 0 48 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 32 240 96 256))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 96 304 264 320)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[14]" (rect 5 0 43 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 32 320 96 336))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 96 256 264 272)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[15]" (rect 5 0 43 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 32 272 96 288))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 96 240 264 256)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[16]" (rect 5 0 42 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 32 256 96 272))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 96 272 264 288)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[17]" (rect 5 0 44 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 24 288 96 304))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 96 288 264 304)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[11]" (rect 5 0 44 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 32 304 96 320))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 96 320 264 336)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[10]" (rect 5 0 44 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 24 336 96 352))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 96 336 264 352)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[13..12]" (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 32 352 96 368))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 96 352 264 368)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[9..8]" (rect 5 0 49 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 48 400 112 416))
|
||
|
)
|
||
|
(pin
|
||
|
(output)
|
||
|
(rect 624 208 800 224)
|
||
|
(text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
|
||
|
(text "LEDR[7..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 800 224 864 240))
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 272 184 416 264)
|
||
|
(text "FreqDivider" (rect 5 0 64 11)(font "Arial" ))
|
||
|
(text "inst" (rect 8 64 26 75)(font "Arial" ))
|
||
|
(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))
|
||
|
)
|
||
|
(parameter
|
||
|
"divFactor"
|
||
|
"12500000"
|
||
|
""
|
||
|
(type "PARAMETER_SIGNED_DEC") )
|
||
|
(drawing
|
||
|
(rectangle (rect 16 16 128 64))
|
||
|
)
|
||
|
(annotation_block (parameter)(rect 416 152 610 182))
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 424 184 616 360)
|
||
|
(text "SeqShiftUnit" (rect 5 0 67 11)(font "Arial" ))
|
||
|
(text "inst1" (rect 8 160 32 171)(font "Arial" ))
|
||
|
(port
|
||
|
(pt 0 32)
|
||
|
(input)
|
||
|
(text "clk" (rect 0 0 15 11)(font "Arial" ))
|
||
|
(text "clk" (rect 21 27 36 38)(font "Arial" ))
|
||
|
(line (pt 0 32)(pt 16 32))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 48)
|
||
|
(input)
|
||
|
(text "dataIn[7..0]" (rect 0 0 55 11)(font "Arial" ))
|
||
|
(text "dataIn[7..0]" (rect 21 43 76 54)(font "Arial" ))
|
||
|
(line (pt 0 48)(pt 16 48)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 64)
|
||
|
(input)
|
||
|
(text "siLeft" (rect 0 0 28 11)(font "Arial" ))
|
||
|
(text "siLeft" (rect 21 59 49 70)(font "Arial" ))
|
||
|
(line (pt 0 64)(pt 16 64))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 80)
|
||
|
(input)
|
||
|
(text "siRight" (rect 0 0 35 11)(font "Arial" ))
|
||
|
(text "siRight" (rect 21 75 56 86)(font "Arial" ))
|
||
|
(line (pt 0 80)(pt 16 80))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 96)
|
||
|
(input)
|
||
|
(text "loadEn" (rect 0 0 36 11)(font "Arial" ))
|
||
|
(text "loadEn" (rect 21 91 57 102)(font "Arial" ))
|
||
|
(line (pt 0 96)(pt 16 96))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 112)
|
||
|
(input)
|
||
|
(text "rotate" (rect 0 0 29 11)(font "Arial" ))
|
||
|
(text "rotate" (rect 21 107 50 118)(font "Arial" ))
|
||
|
(line (pt 0 112)(pt 16 112))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 128)
|
||
|
(input)
|
||
|
(text "dirLeft" (rect 0 0 31 11)(font "Arial" ))
|
||
|
(text "dirLeft" (rect 21 123 52 134)(font "Arial" ))
|
||
|
(line (pt 0 128)(pt 16 128))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 144)
|
||
|
(input)
|
||
|
(text "shArith" (rect 0 0 35 11)(font "Arial" ))
|
||
|
(text "shArith" (rect 21 139 56 150)(font "Arial" ))
|
||
|
(line (pt 0 144)(pt 16 144))
|
||
|
)
|
||
|
(port
|
||
|
(pt 192 32)
|
||
|
(output)
|
||
|
(text "dataOut[7..0]" (rect 0 0 63 11)(font "Arial" ))
|
||
|
(text "dataOut[7..0]" (rect 118 27 181 38)(font "Arial" ))
|
||
|
(line (pt 192 32)(pt 176 32)(line_width 3))
|
||
|
)
|
||
|
(drawing
|
||
|
(rectangle (rect 16 16 176 160))
|
||
|
)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 424 216)
|
||
|
(pt 416 216)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 272 216)
|
||
|
(pt 264 216)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 424 232)
|
||
|
(pt 264 232)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 424 248)
|
||
|
(pt 264 248)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 424 264)
|
||
|
(pt 264 264)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 424 280)
|
||
|
(pt 264 280)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 424 296)
|
||
|
(pt 264 296)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 424 312)
|
||
|
(pt 264 312)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 424 328)
|
||
|
(pt 264 328)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 616 216)
|
||
|
(pt 624 216)
|
||
|
(bus)
|
||
|
)
|