242 lines
6.0 KiB
Plaintext
242 lines
6.0 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 280 256 448 272)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "KEY[1]" (rect 5 0 40 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 216 272 280 288))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 128 312 296 328)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "CLOCK_50" (rect 5 0 60 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 216 304 280 320))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 280 272 448 288)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[17]" (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 216 288 280 304))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 280 240 448 256)
|
||
|
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
|
||
|
(text "SW[16..0]" (rect 5 0 54 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 216 256 280 272))
|
||
|
)
|
||
|
(pin
|
||
|
(output)
|
||
|
(rect 728 240 904 256)
|
||
|
(text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
|
||
|
(text "LEDR[16..0]" (rect 90 0 150 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 904 256 968 272))
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 456 248 504 280)
|
||
|
(text "NOT" (rect 1 0 22 10)(font "Arial" (font_size 6)))
|
||
|
(text "inst1" (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 512 216 720 328)
|
||
|
(text "AccN" (rect 5 0 32 11)(font "Arial" ))
|
||
|
(text "inst" (rect 8 96 26 107)(font "Arial" ))
|
||
|
(port
|
||
|
(pt 0 32)
|
||
|
(input)
|
||
|
(text "dataIn[n-1..0]" (rect 0 0 64 11)(font "Arial" ))
|
||
|
(text "dataIn[n-1..0]" (rect 21 27 85 38)(font "Arial" ))
|
||
|
(line (pt 0 32)(pt 16 32)(line_width 3))
|
||
|
)
|
||
|
(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 "enable" (rect 0 0 34 11)(font "Arial" ))
|
||
|
(text "enable" (rect 21 59 55 70)(font "Arial" ))
|
||
|
(line (pt 0 64)(pt 16 64))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 80)
|
||
|
(input)
|
||
|
(text "clk" (rect 0 0 15 11)(font "Arial" ))
|
||
|
(text "clk" (rect 21 75 36 86)(font "Arial" ))
|
||
|
(line (pt 0 80)(pt 16 80))
|
||
|
)
|
||
|
(port
|
||
|
(pt 208 32)
|
||
|
(output)
|
||
|
(text "dataOut[n-1..0]" (rect 0 0 74 11)(font "Arial" ))
|
||
|
(text "dataOut[n-1..0]" (rect 125 27 199 38)(font "Arial" ))
|
||
|
(line (pt 208 32)(pt 192 32)(line_width 3))
|
||
|
)
|
||
|
(parameter
|
||
|
"N"
|
||
|
"17"
|
||
|
""
|
||
|
(type "PARAMETER_SIGNED_DEC") )
|
||
|
(drawing
|
||
|
(rectangle (rect 16 16 192 96))
|
||
|
)
|
||
|
(annotation_block (parameter)(rect 720 184 891 214))
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 304 288 448 368)
|
||
|
(text "FreqDivider" (rect 5 0 64 11)(font "Arial" ))
|
||
|
(text "inst4" (rect 8 64 33 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 720 248)
|
||
|
(pt 728 248)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 512 248)
|
||
|
(pt 448 248)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 512 280)
|
||
|
(pt 448 280)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 448 264)
|
||
|
(pt 456 264)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 504 264)
|
||
|
(pt 512 264)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 480 296)
|
||
|
(pt 512 296)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 480 296)
|
||
|
(pt 480 320)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 296 320)
|
||
|
(pt 304 320)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 448 320)
|
||
|
(pt 480 320)
|
||
|
)
|