968 lines
21 KiB
Plaintext
968 lines
21 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) 1991-2016 Altera Corporation. All rights reserved.
|
||
|
Your use of Altera 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 Altera Program License
|
||
|
Subscription Agreement, the Altera Quartus Prime License Agreement,
|
||
|
the Altera MegaCore Function License Agreement, or other
|
||
|
applicable license agreement, including, without limitation,
|
||
|
that your use is for the sole purpose of programming logic
|
||
|
devices manufactured by Altera and sold by Altera 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 174 11)(font "Arial" (font_size 6)))
|
||
|
(text "clk" (rect 5 0 30 14)(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 160 18)(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 174 11)(font "Arial" (font_size 6)))
|
||
|
(text "reset_n" (rect 5 0 63 14)(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 160 18)(font "Arial" (font_size 6)))
|
||
|
(annotation_block (location)(rect -128 384 -80 400))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 1328 88 1552 104)
|
||
|
(text "INPUT" (rect -6 6 35 17)(font "Arial" (font_size 6)))
|
||
|
(text "in_buttons[3..0]" (rect 86 7 219 21)(font "Arial" ))
|
||
|
(pt 0 8)
|
||
|
(drawing
|
||
|
(line (pt 76 4)(pt 51 4))
|
||
|
(line (pt 76 12)(pt 51 12))
|
||
|
(line (pt 47 8)(pt 0 8))
|
||
|
(line (pt 76 4)(pt 76 12))
|
||
|
(line (pt 51 12)(pt 47 8))
|
||
|
(line (pt 51 4)(pt 47 8))
|
||
|
)
|
||
|
(rotate180)
|
||
|
(text "VCC" (rect 8 -1 32 10)(font "Arial" (font_size 6)))
|
||
|
(annotation_block (location)(rect 1520 56 1584 144))
|
||
|
)
|
||
|
(pin
|
||
|
(output)
|
||
|
(rect 1192 -208 1368 -192)
|
||
|
(text "OUTPUT" (rect 1 0 50 11)(font "Arial" (font_size 6)))
|
||
|
(text "row8[11..0]" (rect 115 0 205 14)(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 50 11)(font "Arial" (font_size 6)))
|
||
|
(text "row7[11..0]" (rect 115 0 205 14)(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 50 11)(font "Arial" (font_size 6)))
|
||
|
(text "row6[11..0]" (rect 115 0 205 14)(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 50 11)(font "Arial" (font_size 6)))
|
||
|
(text "row5[11..0]" (rect 115 0 205 14)(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 50 11)(font "Arial" (font_size 6)))
|
||
|
(text "row4[11..0]" (rect 115 0 205 14)(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 50 11)(font "Arial" (font_size 6)))
|
||
|
(text "row3[11..0]" (rect 115 0 205 14)(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 50 11)(font "Arial" (font_size 6)))
|
||
|
(text "row2[11..0]" (rect 115 0 205 14)(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 50 11)(font "Arial" (font_size 6)))
|
||
|
(text "row1[11..0]" (rect 117 0 207 14)(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))
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 168 328 376 456)
|
||
|
(text "CPU" (rect 5 0 33 16)(font "Arial" (font_size 8)))
|
||
|
(text "inst" (rect 8 112 41 126)(font "Arial" ))
|
||
|
(port
|
||
|
(pt 0 32)
|
||
|
(input)
|
||
|
(text "clk" (rect 0 16 28 32)(font "Arial" (font_size 8)))
|
||
|
(text "clk" (rect 21 27 49 43)(font "Arial" (font_size 8)))
|
||
|
(line (pt 0 32)(pt 16 32))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 48)
|
||
|
(input)
|
||
|
(text "reset_n" (rect 0 16 66 32)(font "Arial" (font_size 8)))
|
||
|
(text "reset_n" (rect 21 43 87 59)(font "Arial" (font_size 8)))
|
||
|
(line (pt 0 48)(pt 16 48))
|
||
|
)
|
||
|
(port
|
||
|
(pt 208 96)
|
||
|
(input)
|
||
|
(text "rddata[31..0]" (rect 0 16 122 32)(font "Arial" (font_size 8)))
|
||
|
(text "rddata[31..0]" (rect 113 88 235 104)(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 47 32)(font "Arial" (font_size 8)))
|
||
|
(text "write" (rect 158 43 205 59)(font "Arial" (font_size 8)))
|
||
|
(line (pt 208 48)(pt 192 48))
|
||
|
)
|
||
|
(port
|
||
|
(pt 208 80)
|
||
|
(output)
|
||
|
(text "wrdata[31..0]" (rect 0 16 122 32)(font "Arial" (font_size 8)))
|
||
|
(text "wrdata[31..0]" (rect 111 75 233 91)(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 132 32)(font "Arial" (font_size 8)))
|
||
|
(text "address[15..0]" (rect 105 59 237 75)(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 195 40)(font "Arial" (font_size 8)))
|
||
|
(text "read" (rect 158 24 195 40)(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 29 14)(font "Arial" ))
|
||
|
(text "ROM_0" (rect 8 104 49 118)(font "Arial" ))
|
||
|
(port
|
||
|
(pt 0 32)
|
||
|
(input)
|
||
|
(text "clk" (rect 0 0 24 14)(font "Arial" ))
|
||
|
(text "clk" (rect 21 27 45 41)(font "Arial" ))
|
||
|
(line (pt 0 32)(pt 16 32))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 48)
|
||
|
(input)
|
||
|
(text "cs" (rect 0 0 16 14)(font "Arial" ))
|
||
|
(text "cs" (rect 21 43 37 57)(font "Arial" ))
|
||
|
(line (pt 0 48)(pt 16 48))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 64)
|
||
|
(input)
|
||
|
(text "read" (rect 24 56 61 72)(font "Arial" (font_size 8)))
|
||
|
(text "read" (rect 16 56 49 70)(font "Arial" ))
|
||
|
(line (pt 0 64)(pt 16 64))
|
||
|
)
|
||
|
(port
|
||
|
(pt 56 120)
|
||
|
(input)
|
||
|
(text "address[9..0]" (rect 0 24 107 38)(font "Arial" ))
|
||
|
(text "address[9..0]" (rect 48 32 62 139)(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 107 38)(font "Arial" ))
|
||
|
(text "rddata[31..0]" (rect 64 36 78 143)(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 14)(font "Arial" ))
|
||
|
(text "RAM_0" (rect 8 104 49 118)(font "Arial" ))
|
||
|
(port
|
||
|
(pt 0 32)
|
||
|
(input)
|
||
|
(text "clk" (rect 0 0 24 14)(font "Arial" ))
|
||
|
(text "clk" (rect 21 27 45 41)(font "Arial" ))
|
||
|
(line (pt 0 32)(pt 16 32))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 48)
|
||
|
(input)
|
||
|
(text "cs" (rect 0 0 16 14)(font "Arial" ))
|
||
|
(text "cs" (rect 21 43 37 57)(font "Arial" ))
|
||
|
(line (pt 0 48)(pt 16 48))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 80)
|
||
|
(input)
|
||
|
(text "write" (rect 0 0 41 14)(font "Arial" ))
|
||
|
(text "write" (rect 21 75 62 89)(font "Arial" ))
|
||
|
(line (pt 0 80)(pt 16 80))
|
||
|
)
|
||
|
(port
|
||
|
(pt 80 120)
|
||
|
(input)
|
||
|
(text "wrdata[31..0]" (rect 0 -8 107 6)(font "Arial" ))
|
||
|
(text "wrdata[31..0]" (rect 72 35 86 142)(font "Arial" )(vertical))
|
||
|
(line (pt 80 120)(pt 80 104)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 64)
|
||
|
(input)
|
||
|
(text "read" (rect 24 56 61 72)(font "Arial" (font_size 8)))
|
||
|
(text "read" (rect 21 58 54 72)(font "Arial" ))
|
||
|
(line (pt 0 64)(pt 16 64))
|
||
|
)
|
||
|
(port
|
||
|
(pt 64 120)
|
||
|
(input)
|
||
|
(text "address[9..0]" (rect 0 -8 107 6)(font "Arial" ))
|
||
|
(text "address[9..0]" (rect 56 32 70 139)(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 107 6)(font "Arial" ))
|
||
|
(text "rddata[31..0]" (rect 88 36 102 143)(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 38 14)(font "Arial" ))
|
||
|
(text "LEDs_0" (rect 8 160 57 174)(font "Arial" ))
|
||
|
(port
|
||
|
(pt 0 32)
|
||
|
(input)
|
||
|
(text "clk" (rect 0 0 24 14)(font "Arial" ))
|
||
|
(text "clk" (rect 21 27 45 41)(font "Arial" ))
|
||
|
(line (pt 0 32)(pt 16 32))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 48)
|
||
|
(input)
|
||
|
(text "reset_n" (rect 0 0 57 14)(font "Arial" ))
|
||
|
(text "reset_n" (rect 21 43 78 57)(font "Arial" ))
|
||
|
(line (pt 0 48)(pt 16 48))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 64)
|
||
|
(input)
|
||
|
(text "cs" (rect 0 0 16 14)(font "Arial" ))
|
||
|
(text "cs" (rect 21 59 37 73)(font "Arial" ))
|
||
|
(line (pt 0 64)(pt 16 64))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 96)
|
||
|
(input)
|
||
|
(text "write" (rect 0 0 41 14)(font "Arial" ))
|
||
|
(text "write" (rect 21 91 62 105)(font "Arial" ))
|
||
|
(line (pt 0 96)(pt 16 96))
|
||
|
)
|
||
|
(port
|
||
|
(pt 64 176)
|
||
|
(input)
|
||
|
(text "address[1..0]" (rect 0 16 107 30)(font "Arial" ))
|
||
|
(text "address[1..0]" (rect 56 88 70 195)(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 107 30)(font "Arial" ))
|
||
|
(text "wrdata[31..0]" (rect 72 89 86 196)(font "Arial" )(vertical))
|
||
|
(line (pt 80 176)(pt 80 160)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 80)
|
||
|
(input)
|
||
|
(text "read" (rect 0 0 33 14)(font "Arial" ))
|
||
|
(text "read" (rect 21 75 54 89)(font "Arial" ))
|
||
|
(line (pt 0 80)(pt 16 80))
|
||
|
)
|
||
|
(port
|
||
|
(pt 96 176)
|
||
|
(output)
|
||
|
(text "rddata[31..0]" (rect 0 16 107 30)(font "Arial" ))
|
||
|
(text "rddata[31..0]" (rect 88 90 102 197)(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 90 14)(font "Arial" ))
|
||
|
(text "LEDs[95..0]" (rect 72 24 86 114)(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 62 14)(font "Arial" ))
|
||
|
(text "decoder_0" (rect 8 120 82 134)(font "Arial" ))
|
||
|
(port
|
||
|
(pt 56 136)
|
||
|
(input)
|
||
|
(text "address[15..0]" (rect 0 8 115 22)(font "Arial" ))
|
||
|
(text "address[15..0]" (rect 48 42 62 157)(font "Arial" )(vertical))
|
||
|
(line (pt 56 136)(pt 56 120)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 136 64)
|
||
|
(output)
|
||
|
(text "cs_RAM" (rect -32 0 17 14)(font "Arial" ))
|
||
|
(text "cs_RAM" (rect 74 59 123 73)(font "Arial" ))
|
||
|
(line (pt 136 64)(pt 120 64))
|
||
|
)
|
||
|
(port
|
||
|
(pt 136 80)
|
||
|
(output)
|
||
|
(text "cs_ROM" (rect -32 0 17 14)(font "Arial" ))
|
||
|
(text "cs_ROM" (rect 73 75 122 89)(font "Arial" ))
|
||
|
(line (pt 136 80)(pt 120 80))
|
||
|
)
|
||
|
(port
|
||
|
(pt 136 32)
|
||
|
(output)
|
||
|
(text "cs_Buttons" (rect 86 24 180 40)(font "Arial" (font_size 8)))
|
||
|
(text "cs_Buttons" (rect 62 24 144 38)(font "Arial" ))
|
||
|
(line (pt 136 32)(pt 120 32))
|
||
|
)
|
||
|
(port
|
||
|
(pt 136 48)
|
||
|
(output)
|
||
|
(text "cs_LEDs" (rect -32 0 25 14)(font "Arial" ))
|
||
|
(text "cs_LEDs" (rect 79 43 136 57)(font "Arial" ))
|
||
|
(line (pt 136 48)(pt 120 48))
|
||
|
)
|
||
|
(drawing
|
||
|
(rectangle (rect 16 16 120 120))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 1248 160 1384 336)
|
||
|
(text "buttons" (rect 5 0 62 14)(font "Arial" ))
|
||
|
(text "buttons_0" (rect 8 160 82 174)(font "Arial" ))
|
||
|
(port
|
||
|
(pt 0 32)
|
||
|
(input)
|
||
|
(text "clk" (rect 0 0 24 14)(font "Arial" ))
|
||
|
(text "clk" (rect 21 27 45 41)(font "Arial" ))
|
||
|
(line (pt 0 32)(pt 16 32))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 48)
|
||
|
(input)
|
||
|
(text "reset_n" (rect 0 0 57 14)(font "Arial" ))
|
||
|
(text "reset_n" (rect 21 43 78 57)(font "Arial" ))
|
||
|
(line (pt 0 48)(pt 16 48))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 64)
|
||
|
(input)
|
||
|
(text "cs" (rect 0 0 16 14)(font "Arial" ))
|
||
|
(text "cs" (rect 21 59 37 73)(font "Arial" ))
|
||
|
(line (pt 0 64)(pt 16 64))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 80)
|
||
|
(input)
|
||
|
(text "read" (rect 0 0 33 14)(font "Arial" ))
|
||
|
(text "read" (rect 21 75 54 89)(font "Arial" ))
|
||
|
(line (pt 0 80)(pt 16 80))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 96)
|
||
|
(input)
|
||
|
(text "write" (rect 0 0 41 14)(font "Arial" ))
|
||
|
(text "write" (rect 21 91 62 105)(font "Arial" ))
|
||
|
(line (pt 0 96)(pt 16 96))
|
||
|
)
|
||
|
(port
|
||
|
(pt 64 176)
|
||
|
(input)
|
||
|
(text "address" (rect 0 -16 57 -2)(font "Arial" ))
|
||
|
(text "address" (rect 56 114 70 171)(font "Arial" )(vertical))
|
||
|
(line (pt 64 176)(pt 64 160))
|
||
|
)
|
||
|
(port
|
||
|
(pt 80 176)
|
||
|
(input)
|
||
|
(text "wrdata[31..0]" (rect 0 -16 107 -2)(font "Arial" ))
|
||
|
(text "wrdata[31..0]" (rect 72 89 86 196)(font "Arial" )(vertical))
|
||
|
(line (pt 80 176)(pt 80 160)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 80 0)
|
||
|
(input)
|
||
|
(text "buttons[3..0]" (rect 0 0 107 14)(font "Arial" ))
|
||
|
(text "buttons[3..0]" (rect 72 16 86 123)(font "Arial" )(vertical))
|
||
|
(line (pt 80 16)(pt 80 0)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 96 176)
|
||
|
(output)
|
||
|
(text "rddata[31..0]" (rect 0 -16 107 -2)(font "Arial" ))
|
||
|
(text "rddata[31..0]" (rect 88 90 102 197)(font "Arial" )(vertical))
|
||
|
(line (pt 96 176)(pt 96 160)(line_width 3))
|
||
|
)
|
||
|
(drawing
|
||
|
(rectangle (rect 16 16 120 160))
|
||
|
)
|
||
|
)
|
||
|
(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 1087 328 1101 435)(font "Arial" )(vertical))
|
||
|
(pt 1104 392)
|
||
|
(pt 1104 336)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 1120 408)
|
||
|
(pt 1120 336)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 1136 424)
|
||
|
(pt 1136 336)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(text "cs_ROM" (rect 553 160 602 174)(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 670 404)(font "Arial" )(vertical))
|
||
|
(pt 672 296)
|
||
|
(pt 672 392)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(text "address[11..2]" (rect 864 289 878 404)(font "Arial" )(vertical))
|
||
|
(pt 880 296)
|
||
|
(pt 880 392)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 464 232)
|
||
|
(pt 464 392)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 1192 128)
|
||
|
(pt 1192 224)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 1192 240)
|
||
|
(pt 1192 360)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 1208 256)
|
||
|
(pt 1208 376)
|
||
|
)
|
||
|
(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
|
||
|
(pt 1344 336)
|
||
|
(pt 1344 424)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(text "address[2]" (rect 1296 332 1310 414)(font "Arial" )(vertical))
|
||
|
(pt 1312 336)
|
||
|
(pt 1312 392)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 1328 336)
|
||
|
(pt 1328 408)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(text "cs_RAM" (rect 557 144 606 158)(font "Arial" ))
|
||
|
(pt 544 160)
|
||
|
(pt 768 160)
|
||
|
)
|
||
|
(connector
|
||
|
(text "cs_Buttons" (rect 559 112 641 126)(font "Arial" ))
|
||
|
(pt 544 128)
|
||
|
(pt 1192 128)
|
||
|
)
|
||
|
(connector
|
||
|
(text "cs_LEDs" (rect 555 128 612 142)(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 496 390)(font "Arial" ))
|
||
|
(pt 376 392)
|
||
|
(pt 464 392)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 464 392)
|
||
|
(pt 672 392)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 672 392)
|
||
|
(pt 880 392)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 880 392)
|
||
|
(pt 1104 392)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 1104 392)
|
||
|
(pt 1312 392)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(text "wrdata[31..0]" (rect 383 392 490 406)(font "Arial" ))
|
||
|
(pt 376 408)
|
||
|
(pt 896 408)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 896 408)
|
||
|
(pt 1120 408)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 1120 408)
|
||
|
(pt 1328 408)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(text "rddata[31..0]" (rect 382 408 489 422)(font "Arial" ))
|
||
|
(pt 376 424)
|
||
|
(pt 688 424)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 688 424)
|
||
|
(pt 912 424)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 912 424)
|
||
|
(pt 1136 424)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 1136 424)
|
||
|
(pt 1344 424)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 376 360)
|
||
|
(pt 600 360)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 600 360)
|
||
|
(pt 768 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 616 206)(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 816 206)(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 1040 190)(font "Arial" ))
|
||
|
(pt 1008 192)
|
||
|
(pt 1040 192)
|
||
|
)
|
||
|
(connector
|
||
|
(text "reset_n" (rect 1016 192 1073 206)(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
|
||
|
(text "clk" (rect 1224 176 1248 190)(font "Arial" ))
|
||
|
(pt 1216 192)
|
||
|
(pt 1248 192)
|
||
|
)
|
||
|
(connector
|
||
|
(text "reset_n" (rect 1224 192 1281 206)(font "Arial" ))
|
||
|
(pt 1216 208)
|
||
|
(pt 1248 208)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 1192 224)
|
||
|
(pt 1248 224)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 1192 240)
|
||
|
(pt 1248 240)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 1208 256)
|
||
|
(pt 1248 256)
|
||
|
)
|
||
|
(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
|
||
|
(pt 1120 -120)
|
||
|
(pt 1120 -104)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 1120 -104)
|
||
|
(pt 1120 -88)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 1328 96)
|
||
|
(pt 1328 160)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(text "out_LEDs[95..0]" (rect 1096 1 1110 124)(font "Arial" )(vertical))
|
||
|
(pt 1120 -88)
|
||
|
(pt 1120 160)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(text "out_LEDs[95..84]" (rect 1120 -216 1252 -202)(font "Arial" ))
|
||
|
(pt 1120 -200)
|
||
|
(pt 1192 -200)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(text "out_LEDs[83..72]" (rect 1120 -200 1252 -186)(font "Arial" ))
|
||
|
(pt 1120 -184)
|
||
|
(pt 1192 -184)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(text "out_LEDs[71..60]" (rect 1120 -184 1252 -170)(font "Arial" ))
|
||
|
(pt 1120 -168)
|
||
|
(pt 1192 -168)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(text "out_LEDs[59..48]" (rect 1120 -168 1252 -154)(font "Arial" ))
|
||
|
(pt 1120 -152)
|
||
|
(pt 1192 -152)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(text "out_LEDs[47..36]" (rect 1120 -152 1252 -138)(font "Arial" ))
|
||
|
(pt 1120 -136)
|
||
|
(pt 1192 -136)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(text "out_LEDs[35..24]" (rect 1120 -136 1252 -122)(font "Arial" ))
|
||
|
(pt 1120 -120)
|
||
|
(pt 1192 -120)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(text "out_LEDs[23..12]" (rect 1120 -120 1252 -106)(font "Arial" ))
|
||
|
(pt 1120 -104)
|
||
|
(pt 1192 -104)
|
||
|
(bus)
|
||
|
)
|
||
|
(connector
|
||
|
(text "out_LEDs[11..0]" (rect 1120 -104 1243 -90)(font "Arial" ))
|
||
|
(pt 1120 -88)
|
||
|
(pt 1192 -88)
|
||
|
(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 912 424))
|
||
|
(junction (pt 1136 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 -104))
|
||
|
(junction (pt 1120 -88))
|