301 lines
7.1 KiB
Text
301 lines
7.1 KiB
Text
/*
|
|
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) 2017 Intel Corporation. All rights reserved.
|
|
Your use of Intel Corporation's design tools, logic functions
|
|
and other software and tools, and its AMPP 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.
|
|
*/
|
|
(header "graphic" (version "1.4"))
|
|
(pin
|
|
(input)
|
|
(rect 0 48 168 64)
|
|
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
|
(text "Horloge" (rect 5 0 42 17)(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 148 17)(font "Arial" (font_size 6)))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect 56 64 224 80)
|
|
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
|
(text "Clear" (rect 5 0 30 12)(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 148 17)(font "Arial" (font_size 6)))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect 104 80 272 96)
|
|
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
|
(text "Enable" (rect 5 0 38 12)(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 148 17)(font "Arial" (font_size 6)))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 648 64 824 80)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "Seg1[6..0]" (rect 90 0 137 17)(font "Intel Clear" ))
|
|
(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 664 152 840 168)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "Seg2[6..0]" (rect 90 0 137 17)(font "Intel Clear" ))
|
|
(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 680 240 856 256)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "Seg3[6..0]" (rect 90 0 137 17)(font "Intel Clear" ))
|
|
(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 472 128 632 208)
|
|
(text "dec_7seg" (rect 5 0 52 12)(font "Arial" ))
|
|
(text "inst5" (rect 8 64 30 81)(font "Intel Clear" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "d[3..0]" (rect 0 0 31 12)(font "Arial" ))
|
|
(text "d[3..0]" (rect 21 27 52 39)(font "Arial" ))
|
|
(line (pt 0 32)(pt 16 32)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 160 32)
|
|
(output)
|
|
(text "seg[6..0]" (rect 0 0 43 12)(font "Arial" ))
|
|
(text "seg[6..0]" (rect 103 27 146 39)(font "Arial" ))
|
|
(line (pt 160 32)(pt 144 32)(line_width 3))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 144 64))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 472 216 632 296)
|
|
(text "dec_7seg" (rect 5 0 52 12)(font "Arial" ))
|
|
(text "inst6" (rect 8 64 30 81)(font "Intel Clear" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "d[3..0]" (rect 0 0 31 12)(font "Arial" ))
|
|
(text "d[3..0]" (rect 21 27 52 39)(font "Arial" ))
|
|
(line (pt 0 32)(pt 16 32)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 160 32)
|
|
(output)
|
|
(text "seg[6..0]" (rect 0 0 43 12)(font "Arial" ))
|
|
(text "seg[6..0]" (rect 103 27 146 39)(font "Arial" ))
|
|
(line (pt 160 32)(pt 144 32)(line_width 3))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 144 64))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 472 40 632 120)
|
|
(text "dec_7seg" (rect 5 0 52 12)(font "Arial" ))
|
|
(text "inst7" (rect 8 64 30 81)(font "Intel Clear" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "d[3..0]" (rect 0 0 31 12)(font "Arial" ))
|
|
(text "d[3..0]" (rect 21 27 52 39)(font "Arial" ))
|
|
(line (pt 0 32)(pt 16 32)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 160 32)
|
|
(output)
|
|
(text "seg[6..0]" (rect 0 0 43 12)(font "Arial" ))
|
|
(text "seg[6..0]" (rect 103 27 146 39)(font "Arial" ))
|
|
(line (pt 160 32)(pt 144 32)(line_width 3))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 144 64))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 272 24 424 136)
|
|
(text "digit" (rect 5 0 25 12)(font "Arial" ))
|
|
(text "inst" (rect 8 96 25 108)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "clk" (rect 0 0 14 12)(font "Arial" ))
|
|
(text "clk" (rect 21 27 35 39)(font "Arial" ))
|
|
(line (pt 0 32)(pt 16 32))
|
|
)
|
|
(port
|
|
(pt 0 48)
|
|
(input)
|
|
(text "raz" (rect 0 0 14 12)(font "Arial" ))
|
|
(text "raz" (rect 21 43 35 55)(font "Arial" ))
|
|
(line (pt 0 48)(pt 16 48))
|
|
)
|
|
(port
|
|
(pt 0 64)
|
|
(input)
|
|
(text "E" (rect 0 0 7 12)(font "Arial" ))
|
|
(text "E" (rect 21 59 28 71)(font "Arial" ))
|
|
(line (pt 0 64)(pt 16 64))
|
|
)
|
|
(port
|
|
(pt 152 32)
|
|
(output)
|
|
(text "QA[3..0]" (rect 0 0 41 12)(font "Arial" ))
|
|
(text "QA[3..0]" (rect 97 27 138 39)(font "Arial" ))
|
|
(line (pt 152 32)(pt 136 32)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 152 48)
|
|
(output)
|
|
(text "QB[3..0]" (rect 0 0 41 12)(font "Arial" ))
|
|
(text "QB[3..0]" (rect 97 43 138 55)(font "Arial" ))
|
|
(line (pt 152 48)(pt 136 48)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 152 64)
|
|
(output)
|
|
(text "QC[3..0]" (rect 0 0 42 12)(font "Arial" ))
|
|
(text "QC[3..0]" (rect 96 59 138 71)(font "Arial" ))
|
|
(line (pt 152 64)(pt 136 64)(line_width 3))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 136 96))
|
|
)
|
|
)
|
|
(connector
|
|
(pt 272 56)
|
|
(pt 168 56)
|
|
)
|
|
(connector
|
|
(pt 272 72)
|
|
(pt 224 72)
|
|
)
|
|
(connector
|
|
(pt 632 72)
|
|
(pt 648 72)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 632 160)
|
|
(pt 664 160)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 632 248)
|
|
(pt 680 248)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 424 56)
|
|
(pt 464 56)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 464 56)
|
|
(pt 464 72)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 464 72)
|
|
(pt 472 72)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 424 72)
|
|
(pt 456 72)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 456 72)
|
|
(pt 456 160)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 456 160)
|
|
(pt 472 160)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 424 88)
|
|
(pt 448 88)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 448 88)
|
|
(pt 448 248)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 448 248)
|
|
(pt 472 248)
|
|
(bus)
|
|
)
|