1284 lines
27 KiB
Plaintext
Executable File
1284 lines
27 KiB
Plaintext
Executable File
/*
|
|
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) 2018 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 -24 352 144 368)
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
|
(text "clk" (rect 5 0 19 11)(font "Arial" ))
|
|
(pt 168 8)
|
|
(drawing
|
|
(line (pt 92 12)(pt 117 12))
|
|
(line (pt 92 4)(pt 117 4))
|
|
(line (pt 121 8)(pt 168 8))
|
|
(line (pt 92 12)(pt 92 4))
|
|
(line (pt 117 4)(pt 121 8))
|
|
(line (pt 117 12)(pt 121 8))
|
|
)
|
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
|
(annotation_block (location)(rect -128 352 -80 368))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect -24 368 144 384)
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
|
(text "reset_n" (rect 5 0 42 11)(font "Arial" ))
|
|
(pt 168 8)
|
|
(drawing
|
|
(line (pt 92 12)(pt 117 12))
|
|
(line (pt 92 4)(pt 117 4))
|
|
(line (pt 121 8)(pt 168 8))
|
|
(line (pt 92 12)(pt 92 4))
|
|
(line (pt 117 4)(pt 121 8))
|
|
(line (pt 117 12)(pt 121 8))
|
|
)
|
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
|
(annotation_block (location)(rect -128 384 -80 400))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect 1560 208 1576 376)
|
|
(text "INPUT" (rect 6 133 16 161)(font "Arial" (font_size 6))(vertical))
|
|
(text "in_buttons[4..0]" (rect 5 5 16 80)(font "Arial" )(vertical))
|
|
(pt 8 168)
|
|
(drawing
|
|
(line (pt 4 92)(pt 4 117))
|
|
(line (pt 12 92)(pt 12 117))
|
|
(line (pt 8 121)(pt 8 168))
|
|
(line (pt 4 92)(pt 12 92))
|
|
(line (pt 12 117)(pt 8 121))
|
|
(line (pt 4 117)(pt 8 121))
|
|
)
|
|
(rotate270)
|
|
(text "VCC" (rect -1 136 9 156)(font "Arial" (font_size 6))(vertical))
|
|
(annotation_block (location)(rect 1648 224 1856 312))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 1192 -208 1368 -192)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "row8[11..0]" (rect 115 0 172 13)(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))
|
|
)
|
|
(annotation_block (location)(rect 992 -64 1048 104))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 1192 -192 1368 -176)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "row7[11..0]" (rect 115 0 172 13)(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))
|
|
)
|
|
(annotation_block (location)(rect 960 -64 1016 104))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 1192 -176 1368 -160)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "row6[11..0]" (rect 115 0 172 13)(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))
|
|
)
|
|
(annotation_block (location)(rect 800 -64 856 104))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 1192 -160 1368 -144)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "row5[11..0]" (rect 115 0 172 13)(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))
|
|
)
|
|
(annotation_block (location)(rect 936 -72 992 96))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 1192 -144 1368 -128)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "row4[11..0]" (rect 115 0 172 13)(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))
|
|
)
|
|
(annotation_block (location)(rect 704 -72 760 96))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 1192 -128 1368 -112)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "row3[11..0]" (rect 115 0 172 13)(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))
|
|
)
|
|
(annotation_block (location)(rect 824 -56 880 112))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 1192 -112 1368 -96)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "row2[11..0]" (rect 115 0 172 13)(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))
|
|
)
|
|
(annotation_block (location)(rect 768 -64 824 104))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 1192 -96 1368 -80)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "row1[11..0]" (rect 117 0 172 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 1000 -56 1056 112))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 1744 32 1920 48)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "seg_out[31..0]" (rect 90 0 160 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 1920 48 1976 64))
|
|
)
|
|
(symbol
|
|
(rect 168 328 376 456)
|
|
(text "CPU" (rect 5 0 32 13)(font "Arial" (font_size 8)))
|
|
(text "inst" (rect 8 112 25 123)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "clk" (rect 0 16 17 29)(font "Arial" (font_size 8)))
|
|
(text "clk" (rect 21 27 38 40)(font "Arial" (font_size 8)))
|
|
(line (pt 0 32)(pt 16 32))
|
|
)
|
|
(port
|
|
(pt 0 48)
|
|
(input)
|
|
(text "reset_n" (rect 0 16 42 29)(font "Arial" (font_size 8)))
|
|
(text "reset_n" (rect 21 43 63 56)(font "Arial" (font_size 8)))
|
|
(line (pt 0 48)(pt 16 48))
|
|
)
|
|
(port
|
|
(pt 208 96)
|
|
(input)
|
|
(text "rddata[31..0]" (rect 0 16 70 29)(font "Arial" (font_size 8)))
|
|
(text "rddata[31..0]" (rect 113 88 183 101)(font "Arial" (font_size 8)))
|
|
(line (pt 192 96)(pt 208 96)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 208 48)
|
|
(output)
|
|
(text "write" (rect 0 16 27 29)(font "Arial" (font_size 8)))
|
|
(text "write" (rect 158 43 185 56)(font "Arial" (font_size 8)))
|
|
(line (pt 208 48)(pt 192 48))
|
|
)
|
|
(port
|
|
(pt 208 80)
|
|
(output)
|
|
(text "wrdata[31..0]" (rect 0 16 73 29)(font "Arial" (font_size 8)))
|
|
(text "wrdata[31..0]" (rect 111 75 184 88)(font "Arial" (font_size 8)))
|
|
(line (pt 208 80)(pt 192 80)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 208 64)
|
|
(output)
|
|
(text "address[15..0]" (rect 0 16 80 29)(font "Arial" (font_size 8)))
|
|
(text "address[15..0]" (rect 105 59 185 72)(font "Arial" (font_size 8)))
|
|
(line (pt 208 64)(pt 192 64)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 208 32)
|
|
(output)
|
|
(text "read" (rect 158 24 183 37)(font "Arial" (font_size 8)))
|
|
(text "read" (rect 158 24 183 37)(font "Arial" (font_size 8)))
|
|
(line (pt 208 32)(pt 192 32))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 192 112))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 616 176 736 296)
|
|
(text "ROM" (rect 5 0 30 11)(font "Arial" ))
|
|
(text "ROM_0" (rect 8 104 46 115)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "clk" (rect 0 0 14 11)(font "Arial" ))
|
|
(text "clk" (rect 21 27 35 38)(font "Arial" ))
|
|
(line (pt 0 32)(pt 16 32))
|
|
)
|
|
(port
|
|
(pt 0 48)
|
|
(input)
|
|
(text "cs" (rect 0 0 11 11)(font "Arial" ))
|
|
(text "cs" (rect 21 43 32 54)(font "Arial" ))
|
|
(line (pt 0 48)(pt 16 48))
|
|
)
|
|
(port
|
|
(pt 0 64)
|
|
(input)
|
|
(text "read" (rect 24 56 49 69)(font "Arial" (font_size 8)))
|
|
(text "read" (rect 16 56 38 67)(font "Arial" ))
|
|
(line (pt 0 64)(pt 16 64))
|
|
)
|
|
(port
|
|
(pt 56 120)
|
|
(input)
|
|
(text "address[9..0]" (rect 0 24 63 35)(font "Arial" ))
|
|
(text "address[9..0]" (rect 48 32 59 95)(font "Arial" )(vertical))
|
|
(line (pt 56 120)(pt 56 104)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 72 120)
|
|
(output)
|
|
(text "rddata[31..0]" (rect 0 24 62 35)(font "Arial" ))
|
|
(text "rddata[31..0]" (rect 64 36 75 98)(font "Arial" )(vertical))
|
|
(line (pt 72 120)(pt 72 104)(line_width 3))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 104 104))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 816 176 960 296)
|
|
(text "RAM" (rect 5 0 29 11)(font "Arial" ))
|
|
(text "RAM_0" (rect 8 104 45 115)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "clk" (rect 0 0 14 11)(font "Arial" ))
|
|
(text "clk" (rect 21 27 35 38)(font "Arial" ))
|
|
(line (pt 0 32)(pt 16 32))
|
|
)
|
|
(port
|
|
(pt 0 48)
|
|
(input)
|
|
(text "cs" (rect 0 0 11 11)(font "Arial" ))
|
|
(text "cs" (rect 21 43 32 54)(font "Arial" ))
|
|
(line (pt 0 48)(pt 16 48))
|
|
)
|
|
(port
|
|
(pt 0 80)
|
|
(input)
|
|
(text "write" (rect 0 0 23 11)(font "Arial" ))
|
|
(text "write" (rect 21 75 44 86)(font "Arial" ))
|
|
(line (pt 0 80)(pt 16 80))
|
|
)
|
|
(port
|
|
(pt 80 120)
|
|
(input)
|
|
(text "wrdata[31..0]" (rect 0 -8 63 3)(font "Arial" ))
|
|
(text "wrdata[31..0]" (rect 72 35 83 98)(font "Arial" )(vertical))
|
|
(line (pt 80 120)(pt 80 104)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 0 64)
|
|
(input)
|
|
(text "read" (rect 24 56 49 69)(font "Arial" (font_size 8)))
|
|
(text "read" (rect 21 58 43 69)(font "Arial" ))
|
|
(line (pt 0 64)(pt 16 64))
|
|
)
|
|
(port
|
|
(pt 64 120)
|
|
(input)
|
|
(text "address[9..0]" (rect 0 -8 63 3)(font "Arial" ))
|
|
(text "address[9..0]" (rect 56 32 67 95)(font "Arial" )(vertical))
|
|
(line (pt 64 120)(pt 64 104)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 96 120)
|
|
(output)
|
|
(text "rddata[31..0]" (rect 0 -8 62 3)(font "Arial" ))
|
|
(text "rddata[31..0]" (rect 88 36 99 98)(font "Arial" )(vertical))
|
|
(line (pt 96 120)(pt 96 104)(line_width 3))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 128 104))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 1040 160 1176 336)
|
|
(text "LEDs" (rect 5 0 32 11)(font "Arial" ))
|
|
(text "LEDs_0" (rect 8 160 48 171)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "clk" (rect 0 0 14 11)(font "Arial" ))
|
|
(text "clk" (rect 21 27 35 38)(font "Arial" ))
|
|
(line (pt 0 32)(pt 16 32))
|
|
)
|
|
(port
|
|
(pt 0 48)
|
|
(input)
|
|
(text "reset_n" (rect 0 0 37 11)(font "Arial" ))
|
|
(text "reset_n" (rect 21 43 58 54)(font "Arial" ))
|
|
(line (pt 0 48)(pt 16 48))
|
|
)
|
|
(port
|
|
(pt 0 64)
|
|
(input)
|
|
(text "cs" (rect 0 0 11 11)(font "Arial" ))
|
|
(text "cs" (rect 21 59 32 70)(font "Arial" ))
|
|
(line (pt 0 64)(pt 16 64))
|
|
)
|
|
(port
|
|
(pt 0 96)
|
|
(input)
|
|
(text "write" (rect 0 0 23 11)(font "Arial" ))
|
|
(text "write" (rect 21 91 44 102)(font "Arial" ))
|
|
(line (pt 0 96)(pt 16 96))
|
|
)
|
|
(port
|
|
(pt 64 176)
|
|
(input)
|
|
(text "address[1..0]" (rect 0 16 63 27)(font "Arial" ))
|
|
(text "address[1..0]" (rect 56 88 67 151)(font "Arial" )(vertical))
|
|
(line (pt 64 176)(pt 64 160)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 80 176)
|
|
(input)
|
|
(text "wrdata[31..0]" (rect 0 16 63 27)(font "Arial" ))
|
|
(text "wrdata[31..0]" (rect 72 89 83 152)(font "Arial" )(vertical))
|
|
(line (pt 80 176)(pt 80 160)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 0 80)
|
|
(input)
|
|
(text "read" (rect 0 0 22 11)(font "Arial" ))
|
|
(text "read" (rect 21 75 43 86)(font "Arial" ))
|
|
(line (pt 0 80)(pt 16 80))
|
|
)
|
|
(port
|
|
(pt 96 176)
|
|
(output)
|
|
(text "rddata[31..0]" (rect 0 16 62 27)(font "Arial" ))
|
|
(text "rddata[31..0]" (rect 88 90 99 152)(font "Arial" )(vertical))
|
|
(line (pt 96 176)(pt 96 160)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 80 0)
|
|
(output)
|
|
(text "LEDs[95..0]" (rect 0 0 57 11)(font "Arial" ))
|
|
(text "LEDs[95..0]" (rect 72 24 83 81)(font "Arial" )(vertical))
|
|
(line (pt 80 0)(pt 80 16)(line_width 3))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 120 160))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 408 96 544 232)
|
|
(text "decoder" (rect 5 0 45 11)(font "Arial" ))
|
|
(text "decoder_0" (rect 8 120 61 131)(font "Arial" ))
|
|
(port
|
|
(pt 56 136)
|
|
(input)
|
|
(text "address[15..0]" (rect 0 8 70 19)(font "Arial" ))
|
|
(text "address[15..0]" (rect 48 42 59 112)(font "Arial" )(vertical))
|
|
(line (pt 56 136)(pt 56 120)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 136 64)
|
|
(output)
|
|
(text "cs_RAM" (rect -32 0 10 11)(font "Arial" ))
|
|
(text "cs_RAM" (rect 74 59 116 70)(font "Arial" ))
|
|
(line (pt 136 64)(pt 120 64))
|
|
)
|
|
(port
|
|
(pt 136 80)
|
|
(output)
|
|
(text "cs_ROM" (rect -32 0 11 11)(font "Arial" ))
|
|
(text "cs_ROM" (rect 73 75 116 86)(font "Arial" ))
|
|
(line (pt 136 80)(pt 120 80))
|
|
)
|
|
(port
|
|
(pt 136 32)
|
|
(output)
|
|
(text "cs_Buttons" (rect 86 24 148 37)(font "Arial" (font_size 8)))
|
|
(text "cs_Buttons" (rect 62 24 117 35)(font "Arial" ))
|
|
(line (pt 136 32)(pt 120 32))
|
|
)
|
|
(port
|
|
(pt 136 48)
|
|
(output)
|
|
(text "cs_LEDs" (rect -32 0 12 11)(font "Arial" ))
|
|
(text "cs_LEDs" (rect 79 43 123 54)(font "Arial" ))
|
|
(line (pt 136 48)(pt 120 48))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 120 120))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 1608 80 1720 296)
|
|
(text "seven_seg" (rect 0 157 11 211)(font "Arial" )(vertical))
|
|
(text "inst1" (rect 96 184 109 208)(font "Intel Clear" )(vertical))
|
|
(port
|
|
(pt 32 216)
|
|
(input)
|
|
(text "address[15..0]" (rect 0 0 70 11)(font "Arial" ))
|
|
(text "address[15..0]" (rect 27 125 38 195)(font "Arial" )(vertical))
|
|
(line (pt 32 216)(pt 32 200)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 48 216)
|
|
(input)
|
|
(text "wrdata[7..0]" (rect 0 0 57 11)(font "Arial" ))
|
|
(text "wrdata[7..0]" (rect 43 138 54 195)(font "Arial" )(vertical))
|
|
(line (pt 48 216)(pt 48 200)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 64 216)
|
|
(input)
|
|
(text "clk" (rect 0 0 14 11)(font "Arial" ))
|
|
(text "clk" (rect 59 181 70 195)(font "Arial" )(vertical))
|
|
(line (pt 64 216)(pt 64 200))
|
|
)
|
|
(port
|
|
(pt 80 216)
|
|
(input)
|
|
(text "reset_n" (rect 0 0 37 11)(font "Arial" ))
|
|
(text "reset_n" (rect 75 158 86 195)(font "Arial" )(vertical))
|
|
(line (pt 80 216)(pt 80 200))
|
|
)
|
|
(port
|
|
(pt 32 0)
|
|
(output)
|
|
(text "seg_out[31..0]" (rect 0 0 70 11)(font "Arial" ))
|
|
(text "seg_out[31..0]" (rect 27 10 38 80)(font "Arial" )(vertical))
|
|
(line (pt 32 0)(pt 32 16)(line_width 3))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 96 200))
|
|
)
|
|
(rotate90)
|
|
)
|
|
(symbol
|
|
(rect 1344 144 1544 320)
|
|
(text "buttons" (rect 5 0 41 11)(font "Arial" ))
|
|
(text "inst2" (rect 8 160 32 173)(font "Intel Clear" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "clk" (rect 0 0 14 11)(font "Arial" ))
|
|
(text "clk" (rect 21 27 35 38)(font "Arial" ))
|
|
(line (pt 0 32)(pt 16 32))
|
|
)
|
|
(port
|
|
(pt 0 48)
|
|
(input)
|
|
(text "reset_n" (rect 0 0 37 11)(font "Arial" ))
|
|
(text "reset_n" (rect 21 43 58 54)(font "Arial" ))
|
|
(line (pt 0 48)(pt 16 48))
|
|
)
|
|
(port
|
|
(pt 0 64)
|
|
(input)
|
|
(text "cs" (rect 0 0 11 11)(font "Arial" ))
|
|
(text "cs" (rect 21 59 32 70)(font "Arial" ))
|
|
(line (pt 0 64)(pt 16 64))
|
|
)
|
|
(port
|
|
(pt 0 80)
|
|
(input)
|
|
(text "read" (rect 0 0 22 11)(font "Arial" ))
|
|
(text "read" (rect 21 75 43 86)(font "Arial" ))
|
|
(line (pt 0 80)(pt 16 80))
|
|
)
|
|
(port
|
|
(pt 0 96)
|
|
(input)
|
|
(text "write" (rect 0 0 23 11)(font "Arial" ))
|
|
(text "write" (rect 21 91 44 102)(font "Arial" ))
|
|
(line (pt 0 96)(pt 16 96))
|
|
)
|
|
(port
|
|
(pt 0 112)
|
|
(input)
|
|
(text "address" (rect 0 0 40 11)(font "Arial" ))
|
|
(text "address" (rect 21 107 61 118)(font "Arial" ))
|
|
(line (pt 0 112)(pt 16 112))
|
|
)
|
|
(port
|
|
(pt 0 128)
|
|
(input)
|
|
(text "wrdata[31..0]" (rect 0 0 63 11)(font "Arial" ))
|
|
(text "wrdata[31..0]" (rect 21 123 84 134)(font "Arial" ))
|
|
(line (pt 0 128)(pt 16 128)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 0 144)
|
|
(input)
|
|
(text "buttons[4..0]" (rect 0 0 61 11)(font "Arial" ))
|
|
(text "buttons[4..0]" (rect 21 139 82 150)(font "Arial" ))
|
|
(line (pt 0 144)(pt 16 144)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 200 32)
|
|
(output)
|
|
(text "rddata[31..0]" (rect 0 0 62 11)(font "Arial" ))
|
|
(text "rddata[31..0]" (rect 127 27 189 38)(font "Arial" ))
|
|
(line (pt 200 32)(pt 184 32)(line_width 3))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 184 160))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 928 496 1136 608)
|
|
(text "randgen" (rect 5 0 46 11)(font "Arial" ))
|
|
(text "inst3" (rect 8 96 32 109)(font "Intel Clear" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "address[15..0]" (rect 0 0 70 11)(font "Arial" ))
|
|
(text "address[15..0]" (rect 21 27 91 38)(font "Arial" ))
|
|
(line (pt 0 32)(pt 16 32)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 0 48)
|
|
(input)
|
|
(text "read" (rect 0 0 22 11)(font "Arial" ))
|
|
(text "read" (rect 21 43 43 54)(font "Arial" ))
|
|
(line (pt 0 48)(pt 16 48))
|
|
)
|
|
(port
|
|
(pt 0 64)
|
|
(input)
|
|
(text "clk" (rect 0 0 14 11)(font "Arial" ))
|
|
(text "clk" (rect 21 59 35 70)(font "Arial" ))
|
|
(line (pt 0 64)(pt 16 64))
|
|
)
|
|
(port
|
|
(pt 0 80)
|
|
(input)
|
|
(text "reset_n" (rect 0 0 37 11)(font "Arial" ))
|
|
(text "reset_n" (rect 21 75 58 86)(font "Arial" ))
|
|
(line (pt 0 80)(pt 16 80))
|
|
)
|
|
(port
|
|
(pt 208 32)
|
|
(output)
|
|
(text "rddata[31..0]" (rect 0 0 62 11)(font "Arial" ))
|
|
(text "rddata[31..0]" (rect 135 27 197 38)(font "Arial" ))
|
|
(line (pt 208 32)(pt 192 32)(line_width 3))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 192 96))
|
|
)
|
|
)
|
|
(connector
|
|
(pt 896 296)
|
|
(pt 896 408)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 912 296)
|
|
(pt 912 424)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 688 296)
|
|
(pt 688 424)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 600 240)
|
|
(pt 600 360)
|
|
)
|
|
(connector
|
|
(text "address[3..2]" (rect 1088 329 1099 392)(font "Arial" )(vertical))
|
|
(pt 1104 392)
|
|
(pt 1104 336)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1120 408)
|
|
(pt 1120 336)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "cs_ROM" (rect 553 160 596 171)(font "Arial" ))
|
|
(pt 568 176)
|
|
(pt 544 176)
|
|
)
|
|
(connector
|
|
(pt 992 224)
|
|
(pt 992 144)
|
|
)
|
|
(connector
|
|
(pt 568 224)
|
|
(pt 568 176)
|
|
)
|
|
(connector
|
|
(text "address[11..2]" (rect 656 289 667 359)(font "Arial" )(vertical))
|
|
(pt 672 296)
|
|
(pt 672 392)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "address[11..2]" (rect 864 289 875 359)(font "Arial" )(vertical))
|
|
(pt 880 296)
|
|
(pt 880 392)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 464 232)
|
|
(pt 464 392)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 992 360)
|
|
(pt 992 240)
|
|
)
|
|
(connector
|
|
(pt 1008 376)
|
|
(pt 1008 256)
|
|
)
|
|
(connector
|
|
(pt 768 360)
|
|
(pt 768 240)
|
|
)
|
|
(connector
|
|
(pt 784 376)
|
|
(pt 784 256)
|
|
)
|
|
(connector
|
|
(text "cs_RAM" (rect 557 144 599 155)(font "Arial" ))
|
|
(pt 544 160)
|
|
(pt 768 160)
|
|
)
|
|
(connector
|
|
(text "cs_Buttons" (rect 559 112 614 123)(font "Arial" ))
|
|
(pt 544 128)
|
|
(pt 1192 128)
|
|
)
|
|
(connector
|
|
(text "cs_LEDs" (rect 555 128 599 139)(font "Arial" ))
|
|
(pt 544 144)
|
|
(pt 992 144)
|
|
)
|
|
(connector
|
|
(pt 768 160)
|
|
(pt 768 224)
|
|
)
|
|
(connector
|
|
(pt 376 376)
|
|
(pt 784 376)
|
|
)
|
|
(connector
|
|
(pt 784 376)
|
|
(pt 1008 376)
|
|
)
|
|
(connector
|
|
(pt 1008 376)
|
|
(pt 1208 376)
|
|
)
|
|
(connector
|
|
(text "address[15..0]" (rect 381 376 451 387)(font "Arial" ))
|
|
(pt 376 392)
|
|
(pt 464 392)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 464 392)
|
|
(pt 672 392)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1104 392)
|
|
(pt 1312 392)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "wrdata[31..0]" (rect 383 392 446 403)(font "Arial" ))
|
|
(pt 376 408)
|
|
(pt 896 408)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 896 408)
|
|
(pt 1120 408)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "rddata[31..0]" (rect 382 408 444 419)(font "Arial" ))
|
|
(pt 376 424)
|
|
(pt 688 424)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 376 360)
|
|
(pt 600 360)
|
|
)
|
|
(connector
|
|
(pt 768 360)
|
|
(pt 992 360)
|
|
)
|
|
(connector
|
|
(pt 992 360)
|
|
(pt 1192 360)
|
|
)
|
|
(connector
|
|
(pt 144 360)
|
|
(pt 168 360)
|
|
)
|
|
(connector
|
|
(pt 144 376)
|
|
(pt 168 376)
|
|
)
|
|
(connector
|
|
(text "clk" (rect 592 192 606 203)(font "Arial" ))
|
|
(pt 584 208)
|
|
(pt 616 208)
|
|
)
|
|
(connector
|
|
(pt 568 224)
|
|
(pt 616 224)
|
|
)
|
|
(connector
|
|
(pt 600 240)
|
|
(pt 616 240)
|
|
)
|
|
(connector
|
|
(text "clk" (rect 792 192 806 203)(font "Arial" ))
|
|
(pt 784 208)
|
|
(pt 816 208)
|
|
)
|
|
(connector
|
|
(pt 768 224)
|
|
(pt 816 224)
|
|
)
|
|
(connector
|
|
(pt 784 256)
|
|
(pt 816 256)
|
|
)
|
|
(connector
|
|
(pt 768 240)
|
|
(pt 816 240)
|
|
)
|
|
(connector
|
|
(text "clk" (rect 1016 176 1030 187)(font "Arial" ))
|
|
(pt 1008 192)
|
|
(pt 1040 192)
|
|
)
|
|
(connector
|
|
(text "reset_n" (rect 1016 192 1053 203)(font "Arial" ))
|
|
(pt 1008 208)
|
|
(pt 1040 208)
|
|
)
|
|
(connector
|
|
(pt 992 224)
|
|
(pt 1040 224)
|
|
)
|
|
(connector
|
|
(pt 1008 256)
|
|
(pt 1040 256)
|
|
)
|
|
(connector
|
|
(pt 992 240)
|
|
(pt 1040 240)
|
|
)
|
|
(connector
|
|
(pt 1184 -200)
|
|
(pt 1184 -232)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1192 -200)
|
|
(pt 1184 -200)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1176 -184)
|
|
(pt 1176 -216)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1192 -184)
|
|
(pt 1176 -184)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1168 -168)
|
|
(pt 1168 -200)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1192 -168)
|
|
(pt 1168 -168)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1160 -152)
|
|
(pt 1160 -184)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1192 -152)
|
|
(pt 1160 -152)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1152 -136)
|
|
(pt 1152 -168)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1192 -136)
|
|
(pt 1152 -136)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1144 -120)
|
|
(pt 1144 -152)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1192 -120)
|
|
(pt 1144 -120)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1136 -104)
|
|
(pt 1136 -136)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1192 -104)
|
|
(pt 1136 -104)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1128 -88)
|
|
(pt 1128 -120)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1192 -88)
|
|
(pt 1128 -88)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1120 -232)
|
|
(pt 1120 -216)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1120 -216)
|
|
(pt 1120 -200)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1120 -200)
|
|
(pt 1120 -184)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1120 -184)
|
|
(pt 1120 -168)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1120 -168)
|
|
(pt 1120 -152)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1120 -152)
|
|
(pt 1120 -136)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1120 -136)
|
|
(pt 1120 -120)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "out_LEDs[95..0]" (rect 1103 40 1114 119)(font "Arial" )(vertical))
|
|
(pt 1120 -120)
|
|
(pt 1120 160)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "out_LEDs[11..0]" (rect 1120 -136 1199 -125)(font "Arial" ))
|
|
(pt 1128 -120)
|
|
(pt 1120 -120)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "out_LEDs[23..12]" (rect 1120 -152 1204 -141)(font "Arial" ))
|
|
(pt 1136 -136)
|
|
(pt 1120 -136)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "out_LEDs[35..24]" (rect 1120 -168 1204 -157)(font "Arial" ))
|
|
(pt 1144 -152)
|
|
(pt 1120 -152)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "out_LEDs[95..84]" (rect 1120 -248 1204 -237)(font "Arial" ))
|
|
(pt 1184 -232)
|
|
(pt 1120 -232)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "out_LEDs[83..72]" (rect 1120 -232 1204 -221)(font "Arial" ))
|
|
(pt 1176 -216)
|
|
(pt 1120 -216)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "out_LEDs[71..60]" (rect 1120 -216 1204 -205)(font "Arial" ))
|
|
(pt 1168 -200)
|
|
(pt 1120 -200)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "out_LEDs[59..48]" (rect 1120 -200 1204 -189)(font "Arial" ))
|
|
(pt 1160 -184)
|
|
(pt 1120 -184)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "out_LEDs[47..36]" (rect 1120 -184 1204 -173)(font "Arial" ))
|
|
(pt 1152 -168)
|
|
(pt 1120 -168)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1072 400)
|
|
(pt 1072 392)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 880 392)
|
|
(pt 1072 392)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1072 392)
|
|
(pt 1104 392)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1184 408)
|
|
(pt 1184 440)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1120 408)
|
|
(pt 1184 408)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1184 408)
|
|
(pt 1328 408)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1656 440)
|
|
(pt 1184 440)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1592 176)
|
|
(pt 1592 424)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1640 80)
|
|
(pt 1640 40)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1640 40)
|
|
(pt 1744 40)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1072 400)
|
|
(pt 1640 400)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "address[15..0]" (rect 1624 305 1637 376)(font "Intel Clear" )(vertical))
|
|
(pt 1640 296)
|
|
(pt 1640 400)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "wrdata[7..0]" (rect 1640 379 1653 439)(font "Intel Clear" )(vertical))
|
|
(pt 1656 296)
|
|
(pt 1656 440)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "clk" (rect 1656 394 1669 408)(font "Intel Clear" )(vertical))
|
|
(pt 1672 296)
|
|
(pt 1672 416)
|
|
)
|
|
(connector
|
|
(text "reset_n" (rect 1672 342 1685 379)(font "Intel Clear" )(vertical))
|
|
(pt 1688 296)
|
|
(pt 1688 384)
|
|
)
|
|
(connector
|
|
(text "clk" (rect 1280 160 1294 171)(font "Arial" ))
|
|
(pt 1272 176)
|
|
(pt 1344 176)
|
|
)
|
|
(connector
|
|
(text "reset_n" (rect 1280 176 1317 187)(font "Arial" ))
|
|
(pt 1272 192)
|
|
(pt 1344 192)
|
|
)
|
|
(connector
|
|
(text "address[2]" (rect 1296 332 1307 383)(font "Arial" )(vertical))
|
|
(pt 1312 256)
|
|
(pt 1312 392)
|
|
)
|
|
(connector
|
|
(pt 1312 256)
|
|
(pt 1344 256)
|
|
)
|
|
(connector
|
|
(pt 1344 208)
|
|
(pt 1192 208)
|
|
)
|
|
(connector
|
|
(pt 1192 128)
|
|
(pt 1192 208)
|
|
)
|
|
(connector
|
|
(pt 1192 224)
|
|
(pt 1344 224)
|
|
)
|
|
(connector
|
|
(pt 1192 224)
|
|
(pt 1192 360)
|
|
)
|
|
(connector
|
|
(pt 1208 240)
|
|
(pt 1344 240)
|
|
)
|
|
(connector
|
|
(pt 1208 240)
|
|
(pt 1208 376)
|
|
)
|
|
(connector
|
|
(pt 1344 272)
|
|
(pt 1328 272)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1328 272)
|
|
(pt 1328 408)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1592 176)
|
|
(pt 1544 176)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1568 376)
|
|
(pt 1568 384)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1568 384)
|
|
(pt 1344 384)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1344 384)
|
|
(pt 1344 288)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 688 424)
|
|
(pt 912 424)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 912 424)
|
|
(pt 1136 424)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1136 424)
|
|
(pt 1592 424)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "address[15..0]" (rect 858 512 929 525)(font "Intel Clear" ))
|
|
(pt 840 528)
|
|
(pt 928 528)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 840 528)
|
|
(pt 840 392)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 672 392)
|
|
(pt 840 392)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 840 392)
|
|
(pt 880 392)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 928 544)
|
|
(pt 736 544)
|
|
)
|
|
(connector
|
|
(pt 736 544)
|
|
(pt 736 360)
|
|
)
|
|
(connector
|
|
(pt 600 360)
|
|
(pt 736 360)
|
|
)
|
|
(connector
|
|
(pt 736 360)
|
|
(pt 768 360)
|
|
)
|
|
(connector
|
|
(text "clk" (rect 906 544 920 557)(font "Intel Clear" ))
|
|
(pt 928 560)
|
|
(pt 896 560)
|
|
)
|
|
(connector
|
|
(text "reset_n" (rect 906 560 943 573)(font "Intel Clear" ))
|
|
(pt 928 576)
|
|
(pt 896 576)
|
|
)
|
|
(connector
|
|
(pt 1136 336)
|
|
(pt 1136 424)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 1136 424)
|
|
(pt 1136 528)
|
|
(bus)
|
|
)
|
|
(junction (pt 784 376))
|
|
(junction (pt 1008 376))
|
|
(junction (pt 464 392))
|
|
(junction (pt 672 392))
|
|
(junction (pt 880 392))
|
|
(junction (pt 1104 392))
|
|
(junction (pt 896 408))
|
|
(junction (pt 1120 408))
|
|
(junction (pt 688 424))
|
|
(junction (pt 600 360))
|
|
(junction (pt 768 360))
|
|
(junction (pt 992 360))
|
|
(junction (pt 1120 -184))
|
|
(junction (pt 1120 -168))
|
|
(junction (pt 1120 -152))
|
|
(junction (pt 1120 -136))
|
|
(junction (pt 1120 -120))
|
|
(junction (pt 1120 -216))
|
|
(junction (pt 1120 -200))
|
|
(junction (pt 1072 392))
|
|
(junction (pt 1184 408))
|
|
(junction (pt 912 424))
|
|
(junction (pt 1136 424))
|
|
(junction (pt 840 392))
|
|
(junction (pt 736 360))
|