Implemented features: ball moving, platform moving, showing scores on digital table, game reset.
839 lines
19 KiB
Text
839 lines
19 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) 1991-2009 Altera Corporation
|
|
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, 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.
|
|
*/
|
|
//#pragma file_not_in_maxplusii_format
|
|
(header "graphic" (version "1.3"))
|
|
(pin
|
|
(input)
|
|
(rect -72 -168 96 -152)
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
|
(text "clk_50MHz" (rect 5 0 58 12)(font "Arial" ))
|
|
(pt 168 8)
|
|
(drawing
|
|
(line (pt 92 12)(pt 117 12)(line_width 1))
|
|
(line (pt 92 4)(pt 117 4)(line_width 1))
|
|
(line (pt 121 8)(pt 168 8)(line_width 1))
|
|
(line (pt 92 12)(pt 92 4)(line_width 1))
|
|
(line (pt 117 4)(pt 121 8)(line_width 1))
|
|
(line (pt 117 12)(pt 121 8)(line_width 1))
|
|
)
|
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
|
(annotation_block (location)(rect -128 -168 -80 -152))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect -72 -72 96 -56)
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
|
(text "button1" (rect 5 0 41 12)(font "Arial" ))
|
|
(pt 168 8)
|
|
(drawing
|
|
(line (pt 92 12)(pt 117 12)(line_width 1))
|
|
(line (pt 92 4)(pt 117 4)(line_width 1))
|
|
(line (pt 121 8)(pt 168 8)(line_width 1))
|
|
(line (pt 92 12)(pt 92 4)(line_width 1))
|
|
(line (pt 117 4)(pt 121 8)(line_width 1))
|
|
(line (pt 117 12)(pt 121 8)(line_width 1))
|
|
)
|
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
|
(annotation_block (location)(rect -128 -72 -72 -56))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect -72 24 96 40)
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
|
(text "button2" (rect 5 0 41 12)(font "Arial" ))
|
|
(pt 168 8)
|
|
(drawing
|
|
(line (pt 92 12)(pt 117 12)(line_width 1))
|
|
(line (pt 92 4)(pt 117 4)(line_width 1))
|
|
(line (pt 121 8)(pt 168 8)(line_width 1))
|
|
(line (pt 92 12)(pt 92 4)(line_width 1))
|
|
(line (pt 117 4)(pt 121 8)(line_width 1))
|
|
(line (pt 117 12)(pt 121 8)(line_width 1))
|
|
)
|
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
|
(annotation_block (location)(rect -128 24 -72 40))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect -72 120 96 136)
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
|
(text "button3" (rect 5 0 41 12)(font "Arial" ))
|
|
(pt 168 8)
|
|
(drawing
|
|
(line (pt 92 12)(pt 117 12)(line_width 1))
|
|
(line (pt 92 4)(pt 117 4)(line_width 1))
|
|
(line (pt 121 8)(pt 168 8)(line_width 1))
|
|
(line (pt 92 12)(pt 92 4)(line_width 1))
|
|
(line (pt 117 4)(pt 121 8)(line_width 1))
|
|
(line (pt 117 12)(pt 121 8)(line_width 1))
|
|
)
|
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
|
(annotation_block (location)(rect -128 120 -72 136))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect -72 216 96 232)
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
|
(text "button4" (rect 5 0 41 12)(font "Arial" ))
|
|
(pt 168 8)
|
|
(drawing
|
|
(line (pt 92 12)(pt 117 12)(line_width 1))
|
|
(line (pt 92 4)(pt 117 4)(line_width 1))
|
|
(line (pt 121 8)(pt 168 8)(line_width 1))
|
|
(line (pt 92 12)(pt 92 4)(line_width 1))
|
|
(line (pt 117 4)(pt 121 8)(line_width 1))
|
|
(line (pt 117 12)(pt 121 8)(line_width 1))
|
|
)
|
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
|
(annotation_block (location)(rect -128 216 -72 232))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 856 96 1032 112)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "h_sync" (rect 90 0 126 12)(font "Arial" ))
|
|
(pt 0 8)
|
|
(drawing
|
|
(line (pt 0 8)(pt 52 8)(line_width 1))
|
|
(line (pt 52 4)(pt 78 4)(line_width 1))
|
|
(line (pt 52 12)(pt 78 12)(line_width 1))
|
|
(line (pt 52 12)(pt 52 4)(line_width 1))
|
|
(line (pt 78 4)(pt 82 8)(line_width 1))
|
|
(line (pt 82 8)(pt 78 12)(line_width 1))
|
|
(line (pt 78 12)(pt 82 8)(line_width 1))
|
|
)
|
|
(annotation_block (location)(rect 1032 96 1088 112))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 856 184 1032 200)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "red[3..0]" (rect 90 0 131 12)(font "Arial" ))
|
|
(pt 0 8)
|
|
(drawing
|
|
(line (pt 0 8)(pt 52 8)(line_width 1))
|
|
(line (pt 52 4)(pt 78 4)(line_width 1))
|
|
(line (pt 52 12)(pt 78 12)(line_width 1))
|
|
(line (pt 52 12)(pt 52 4)(line_width 1))
|
|
(line (pt 78 4)(pt 82 8)(line_width 1))
|
|
(line (pt 82 8)(pt 78 12)(line_width 1))
|
|
(line (pt 78 12)(pt 82 8)(line_width 1))
|
|
)
|
|
(annotation_block (location)(rect 1192 200 1240 256))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 856 200 1032 216)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "green[3..0]" (rect 90 0 143 12)(font "Arial" ))
|
|
(pt 0 8)
|
|
(drawing
|
|
(line (pt 0 8)(pt 52 8)(line_width 1))
|
|
(line (pt 52 4)(pt 78 4)(line_width 1))
|
|
(line (pt 52 12)(pt 78 12)(line_width 1))
|
|
(line (pt 52 12)(pt 52 4)(line_width 1))
|
|
(line (pt 78 4)(pt 82 8)(line_width 1))
|
|
(line (pt 82 8)(pt 78 12)(line_width 1))
|
|
(line (pt 78 12)(pt 82 8)(line_width 1))
|
|
)
|
|
(annotation_block (location)(rect 1120 216 1176 272))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 856 216 1032 232)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "blue[3..0]" (rect 90 0 136 12)(font "Arial" ))
|
|
(pt 0 8)
|
|
(drawing
|
|
(line (pt 0 8)(pt 52 8)(line_width 1))
|
|
(line (pt 52 4)(pt 78 4)(line_width 1))
|
|
(line (pt 52 12)(pt 78 12)(line_width 1))
|
|
(line (pt 52 12)(pt 52 4)(line_width 1))
|
|
(line (pt 78 4)(pt 82 8)(line_width 1))
|
|
(line (pt 82 8)(pt 78 12)(line_width 1))
|
|
(line (pt 78 12)(pt 82 8)(line_width 1))
|
|
)
|
|
(annotation_block (location)(rect 1048 232 1104 288))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 856 112 1032 128)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "v_sync" (rect 90 0 127 12)(font "Arial" ))
|
|
(pt 0 8)
|
|
(drawing
|
|
(line (pt 0 8)(pt 52 8)(line_width 1))
|
|
(line (pt 52 4)(pt 78 4)(line_width 1))
|
|
(line (pt 52 12)(pt 78 12)(line_width 1))
|
|
(line (pt 52 12)(pt 52 4)(line_width 1))
|
|
(line (pt 78 4)(pt 82 8)(line_width 1))
|
|
(line (pt 82 8)(pt 78 12)(line_width 1))
|
|
(line (pt 78 12)(pt 82 8)(line_width 1))
|
|
)
|
|
(annotation_block (location)(rect 1032 112 1088 128))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 856 448 1032 464)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "led[7..0]" (rect 90 0 130 12)(font "Arial" ))
|
|
(pt 0 8)
|
|
(drawing
|
|
(line (pt 0 8)(pt 52 8)(line_width 1))
|
|
(line (pt 52 4)(pt 78 4)(line_width 1))
|
|
(line (pt 52 12)(pt 78 12)(line_width 1))
|
|
(line (pt 52 12)(pt 52 4)(line_width 1))
|
|
(line (pt 78 4)(pt 82 8)(line_width 1))
|
|
(line (pt 82 8)(pt 78 12)(line_width 1))
|
|
(line (pt 78 12)(pt 82 8)(line_width 1))
|
|
)
|
|
(annotation_block (location)(rect 1048 464 1104 576))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 856 280 1032 296)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "hex0[6..0]" (rect 90 0 139 12)(font "Arial" ))
|
|
(pt 0 8)
|
|
(drawing
|
|
(line (pt 0 8)(pt 52 8)(line_width 1))
|
|
(line (pt 52 4)(pt 78 4)(line_width 1))
|
|
(line (pt 52 12)(pt 78 12)(line_width 1))
|
|
(line (pt 52 12)(pt 52 4)(line_width 1))
|
|
(line (pt 78 4)(pt 82 8)(line_width 1))
|
|
(line (pt 82 8)(pt 78 12)(line_width 1))
|
|
(line (pt 78 12)(pt 82 8)(line_width 1))
|
|
)
|
|
(annotation_block (location)(rect 1264 296 1312 400))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 856 296 1032 312)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "hex1[6..0]" (rect 90 0 139 12)(font "Arial" ))
|
|
(pt 0 8)
|
|
(drawing
|
|
(line (pt 0 8)(pt 52 8)(line_width 1))
|
|
(line (pt 52 4)(pt 78 4)(line_width 1))
|
|
(line (pt 52 12)(pt 78 12)(line_width 1))
|
|
(line (pt 52 12)(pt 52 4)(line_width 1))
|
|
(line (pt 78 4)(pt 82 8)(line_width 1))
|
|
(line (pt 82 8)(pt 78 12)(line_width 1))
|
|
(line (pt 78 12)(pt 82 8)(line_width 1))
|
|
)
|
|
(annotation_block (location)(rect 1192 312 1240 416))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 856 312 1032 328)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "hex2[6..0]" (rect 90 0 139 12)(font "Arial" ))
|
|
(pt 0 8)
|
|
(drawing
|
|
(line (pt 0 8)(pt 52 8)(line_width 1))
|
|
(line (pt 52 4)(pt 78 4)(line_width 1))
|
|
(line (pt 52 12)(pt 78 12)(line_width 1))
|
|
(line (pt 52 12)(pt 52 4)(line_width 1))
|
|
(line (pt 78 4)(pt 82 8)(line_width 1))
|
|
(line (pt 82 8)(pt 78 12)(line_width 1))
|
|
(line (pt 78 12)(pt 82 8)(line_width 1))
|
|
)
|
|
(annotation_block (location)(rect 1120 328 1168 432))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 856 328 1032 344)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "hex3[6..0]" (rect 90 0 139 12)(font "Arial" ))
|
|
(pt 0 8)
|
|
(drawing
|
|
(line (pt 0 8)(pt 52 8)(line_width 1))
|
|
(line (pt 52 4)(pt 78 4)(line_width 1))
|
|
(line (pt 52 12)(pt 78 12)(line_width 1))
|
|
(line (pt 52 12)(pt 52 4)(line_width 1))
|
|
(line (pt 78 4)(pt 82 8)(line_width 1))
|
|
(line (pt 82 8)(pt 78 12)(line_width 1))
|
|
(line (pt 78 12)(pt 82 8)(line_width 1))
|
|
)
|
|
(annotation_block (location)(rect 1048 344 1096 448))
|
|
)
|
|
(symbol
|
|
(rect 160 -192 312 -128)
|
|
(text "ClockDivider" (rect 5 0 68 12)(font "Arial" ))
|
|
(text "inst1" (rect 8 48 31 60)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "clk50MHz" (rect 0 0 47 12)(font "Arial" ))
|
|
(text "clk50MHz" (rect 21 27 68 39)(font "Arial" ))
|
|
(line (pt 0 32)(pt 16 32)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 152 32)
|
|
(output)
|
|
(text "clk25MHz" (rect 0 0 47 12)(font "Arial" ))
|
|
(text "clk25MHz" (rect 84 27 131 39)(font "Arial" ))
|
|
(line (pt 152 32)(pt 136 32)(line_width 1))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 136 48)(line_width 1))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 168 -96 304 0)
|
|
(text "Debouncer" (rect 5 0 58 12)(font "Arial" ))
|
|
(text "inst2" (rect 8 80 31 92)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "noisy" (rect 0 0 27 12)(font "Arial" ))
|
|
(text "noisy" (rect 21 27 48 39)(font "Arial" ))
|
|
(line (pt 0 32)(pt 16 32)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 0 48)
|
|
(input)
|
|
(text "clk" (rect 0 0 14 12)(font "Arial" ))
|
|
(text "clk" (rect 21 43 35 55)(font "Arial" ))
|
|
(line (pt 0 48)(pt 16 48)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 136 32)
|
|
(output)
|
|
(text "debounced" (rect 0 0 53 12)(font "Arial" ))
|
|
(text "debounced" (rect 62 27 115 39)(font "Arial" ))
|
|
(line (pt 136 32)(pt 120 32)(line_width 1))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 120 80)(line_width 1))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 168 0 304 96)
|
|
(text "Debouncer" (rect 5 0 58 12)(font "Arial" ))
|
|
(text "inst3" (rect 8 80 31 92)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "noisy" (rect 0 0 27 12)(font "Arial" ))
|
|
(text "noisy" (rect 21 27 48 39)(font "Arial" ))
|
|
(line (pt 0 32)(pt 16 32)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 0 48)
|
|
(input)
|
|
(text "clk" (rect 0 0 14 12)(font "Arial" ))
|
|
(text "clk" (rect 21 43 35 55)(font "Arial" ))
|
|
(line (pt 0 48)(pt 16 48)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 136 32)
|
|
(output)
|
|
(text "debounced" (rect 0 0 53 12)(font "Arial" ))
|
|
(text "debounced" (rect 62 27 115 39)(font "Arial" ))
|
|
(line (pt 136 32)(pt 120 32)(line_width 1))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 120 80)(line_width 1))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 168 96 304 192)
|
|
(text "Debouncer" (rect 5 0 58 12)(font "Arial" ))
|
|
(text "inst4" (rect 8 80 31 92)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "noisy" (rect 0 0 27 12)(font "Arial" ))
|
|
(text "noisy" (rect 21 27 48 39)(font "Arial" ))
|
|
(line (pt 0 32)(pt 16 32)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 0 48)
|
|
(input)
|
|
(text "clk" (rect 0 0 14 12)(font "Arial" ))
|
|
(text "clk" (rect 21 43 35 55)(font "Arial" ))
|
|
(line (pt 0 48)(pt 16 48)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 136 32)
|
|
(output)
|
|
(text "debounced" (rect 0 0 53 12)(font "Arial" ))
|
|
(text "debounced" (rect 62 27 115 39)(font "Arial" ))
|
|
(line (pt 136 32)(pt 120 32)(line_width 1))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 120 80)(line_width 1))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 168 192 304 288)
|
|
(text "Debouncer" (rect 5 0 58 12)(font "Arial" ))
|
|
(text "inst5" (rect 8 80 31 92)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "noisy" (rect 0 0 27 12)(font "Arial" ))
|
|
(text "noisy" (rect 21 27 48 39)(font "Arial" ))
|
|
(line (pt 0 32)(pt 16 32)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 0 48)
|
|
(input)
|
|
(text "clk" (rect 0 0 14 12)(font "Arial" ))
|
|
(text "clk" (rect 21 43 35 55)(font "Arial" ))
|
|
(line (pt 0 48)(pt 16 48)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 136 32)
|
|
(output)
|
|
(text "debounced" (rect 0 0 53 12)(font "Arial" ))
|
|
(text "debounced" (rect 62 27 115 39)(font "Arial" ))
|
|
(line (pt 136 32)(pt 120 32)(line_width 1))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 120 80)(line_width 1))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 464 128 616 352)
|
|
(text "Arkanoid" (rect 5 0 47 12)(font "Arial" ))
|
|
(text "inst" (rect 8 208 25 220)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "clk25MHz" (rect 0 0 47 12)(font "Arial" ))
|
|
(text "clk25MHz" (rect 21 27 68 39)(font "Arial" ))
|
|
(line (pt 0 32)(pt 16 32)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 0 48)
|
|
(input)
|
|
(text "button1" (rect 0 0 36 12)(font "Arial" ))
|
|
(text "button1" (rect 21 43 57 55)(font "Arial" ))
|
|
(line (pt 0 48)(pt 16 48)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 0 64)
|
|
(input)
|
|
(text "button2" (rect 0 0 36 12)(font "Arial" ))
|
|
(text "button2" (rect 21 59 57 71)(font "Arial" ))
|
|
(line (pt 0 64)(pt 16 64)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 0 80)
|
|
(input)
|
|
(text "button3" (rect 0 0 36 12)(font "Arial" ))
|
|
(text "button3" (rect 21 75 57 87)(font "Arial" ))
|
|
(line (pt 0 80)(pt 16 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 0 96)
|
|
(input)
|
|
(text "button4" (rect 0 0 36 12)(font "Arial" ))
|
|
(text "button4" (rect 21 91 57 103)(font "Arial" ))
|
|
(line (pt 0 96)(pt 16 96)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 152 32)
|
|
(output)
|
|
(text "h_sync" (rect 0 0 36 12)(font "Arial" ))
|
|
(text "h_sync" (rect 95 27 131 39)(font "Arial" ))
|
|
(line (pt 152 32)(pt 136 32)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 152 48)
|
|
(output)
|
|
(text "v_sync" (rect 0 0 37 12)(font "Arial" ))
|
|
(text "v_sync" (rect 94 43 131 55)(font "Arial" ))
|
|
(line (pt 152 48)(pt 136 48)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 152 64)
|
|
(output)
|
|
(text "red[3..0]" (rect 0 0 41 12)(font "Arial" ))
|
|
(text "red[3..0]" (rect 90 59 131 71)(font "Arial" ))
|
|
(line (pt 152 64)(pt 136 64)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 152 80)
|
|
(output)
|
|
(text "green[3..0]" (rect 0 0 53 12)(font "Arial" ))
|
|
(text "green[3..0]" (rect 78 75 131 87)(font "Arial" ))
|
|
(line (pt 152 80)(pt 136 80)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 152 96)
|
|
(output)
|
|
(text "blue[3..0]" (rect 0 0 46 12)(font "Arial" ))
|
|
(text "blue[3..0]" (rect 85 91 131 103)(font "Arial" ))
|
|
(line (pt 152 96)(pt 136 96)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 152 112)
|
|
(output)
|
|
(text "hex0[6..0]" (rect 0 0 49 12)(font "Arial" ))
|
|
(text "hex0[6..0]" (rect 82 107 131 119)(font "Arial" ))
|
|
(line (pt 152 112)(pt 136 112)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 152 128)
|
|
(output)
|
|
(text "hex1[6..0]" (rect 0 0 49 12)(font "Arial" ))
|
|
(text "hex1[6..0]" (rect 82 123 131 135)(font "Arial" ))
|
|
(line (pt 152 128)(pt 136 128)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 152 144)
|
|
(output)
|
|
(text "hex2[6..0]" (rect 0 0 49 12)(font "Arial" ))
|
|
(text "hex2[6..0]" (rect 82 139 131 151)(font "Arial" ))
|
|
(line (pt 152 144)(pt 136 144)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 152 160)
|
|
(output)
|
|
(text "hex3[6..0]" (rect 0 0 49 12)(font "Arial" ))
|
|
(text "hex3[6..0]" (rect 82 155 131 167)(font "Arial" ))
|
|
(line (pt 152 160)(pt 136 160)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 152 176)
|
|
(output)
|
|
(text "led[7..0]" (rect 0 0 40 12)(font "Arial" ))
|
|
(text "led[7..0]" (rect 91 171 131 183)(font "Arial" ))
|
|
(line (pt 152 176)(pt 136 176)(line_width 3))
|
|
)
|
|
(parameter
|
|
"CELL_SIZE"
|
|
"20"
|
|
""
|
|
(type "PARAMETER_SIGNED_DEC") )
|
|
(parameter
|
|
"BALL_SIZE"
|
|
"1"
|
|
""
|
|
(type "PARAMETER_SIGNED_DEC") )
|
|
(parameter
|
|
"BALL_SPEED"
|
|
"3"
|
|
""
|
|
(type "PARAMETER_SIGNED_DEC") )
|
|
(parameter
|
|
"PLATFORM_WIDTH"
|
|
"7"
|
|
""
|
|
(type "PARAMETER_SIGNED_DEC") )
|
|
(parameter
|
|
"BK_COLOR_R"
|
|
"1111"
|
|
""
|
|
(type "PARAMETER_UNSIGNED_BIN") )
|
|
(parameter
|
|
"BK_COLOR_G"
|
|
"1111"
|
|
""
|
|
(type "PARAMETER_UNSIGNED_BIN") )
|
|
(parameter
|
|
"BK_COLOR_B"
|
|
"1111"
|
|
""
|
|
(type "PARAMETER_UNSIGNED_BIN") )
|
|
(parameter
|
|
"STABLE_COLOR_R"
|
|
"0011"
|
|
""
|
|
(type "PARAMETER_UNSIGNED_BIN") )
|
|
(parameter
|
|
"STABLE_COLOR_G"
|
|
"1100"
|
|
""
|
|
(type "PARAMETER_UNSIGNED_BIN") )
|
|
(parameter
|
|
"STABLE_COLOR_B"
|
|
"0110"
|
|
""
|
|
(type "PARAMETER_UNSIGNED_BIN") )
|
|
(parameter
|
|
"BALL_COLOR_R"
|
|
"0000"
|
|
""
|
|
(type "PARAMETER_UNSIGNED_BIN") )
|
|
(parameter
|
|
"BALL_COLOR_G"
|
|
"0000"
|
|
""
|
|
(type "PARAMETER_UNSIGNED_BIN") )
|
|
(parameter
|
|
"BALL_COLOR_B"
|
|
"1111"
|
|
""
|
|
(type "PARAMETER_UNSIGNED_BIN") )
|
|
(parameter
|
|
"PLATFORM_COLOR_R"
|
|
"1111"
|
|
""
|
|
(type "PARAMETER_UNSIGNED_BIN") )
|
|
(parameter
|
|
"PLATFORM_COLOR_G"
|
|
"0000"
|
|
""
|
|
(type "PARAMETER_UNSIGNED_BIN") )
|
|
(parameter
|
|
"PLATFORM_COLOR_B"
|
|
"0000"
|
|
""
|
|
(type "PARAMETER_UNSIGNED_BIN") )
|
|
(drawing
|
|
(rectangle (rect 16 16 136 208)(line_width 1))
|
|
)
|
|
(annotation_block (parameter)(rect 464 -112 696 128))
|
|
)
|
|
(connector
|
|
(pt 792 104)
|
|
(pt 856 104)
|
|
)
|
|
(connector
|
|
(pt 808 120)
|
|
(pt 856 120)
|
|
)
|
|
(connector
|
|
(pt 792 104)
|
|
(pt 792 160)
|
|
)
|
|
(connector
|
|
(pt 808 120)
|
|
(pt 808 176)
|
|
)
|
|
(connector
|
|
(pt 320 208)
|
|
(pt 464 208)
|
|
)
|
|
(connector
|
|
(pt 336 192)
|
|
(pt 464 192)
|
|
)
|
|
(connector
|
|
(pt 352 176)
|
|
(pt 464 176)
|
|
)
|
|
(connector
|
|
(pt 616 160)
|
|
(pt 792 160)
|
|
)
|
|
(connector
|
|
(pt 616 176)
|
|
(pt 808 176)
|
|
)
|
|
(connector
|
|
(pt 616 192)
|
|
(pt 856 192)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 616 208)
|
|
(pt 856 208)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 616 224)
|
|
(pt 856 224)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 856 288)
|
|
(pt 808 288)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 616 240)
|
|
(pt 808 240)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 808 240)
|
|
(pt 808 288)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 856 304)
|
|
(pt 792 304)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 616 256)
|
|
(pt 792 256)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 792 256)
|
|
(pt 792 304)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 856 320)
|
|
(pt 776 320)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 856 336)
|
|
(pt 760 336)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 616 272)
|
|
(pt 776 272)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 776 272)
|
|
(pt 776 320)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 616 288)
|
|
(pt 760 288)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 760 288)
|
|
(pt 760 336)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 856 456)
|
|
(pt 696 456)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 616 304)
|
|
(pt 696 304)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 696 456)
|
|
(pt 696 304)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 464 160)
|
|
(pt 416 160)
|
|
)
|
|
(connector
|
|
(pt 144 240)
|
|
(pt 168 240)
|
|
)
|
|
(connector
|
|
(pt 96 224)
|
|
(pt 168 224)
|
|
)
|
|
(connector
|
|
(pt 304 224)
|
|
(pt 464 224)
|
|
)
|
|
(connector
|
|
(pt 144 144)
|
|
(pt 168 144)
|
|
)
|
|
(connector
|
|
(pt 320 208)
|
|
(pt 320 128)
|
|
)
|
|
(connector
|
|
(pt 320 128)
|
|
(pt 304 128)
|
|
)
|
|
(connector
|
|
(pt 144 144)
|
|
(pt 144 240)
|
|
)
|
|
(connector
|
|
(pt 96 128)
|
|
(pt 168 128)
|
|
)
|
|
(connector
|
|
(pt 416 -160)
|
|
(pt 312 -160)
|
|
)
|
|
(connector
|
|
(pt 96 -160)
|
|
(pt 160 -160)
|
|
)
|
|
(connector
|
|
(pt 144 -48)
|
|
(pt 168 -48)
|
|
)
|
|
(connector
|
|
(pt 352 176)
|
|
(pt 352 -64)
|
|
)
|
|
(connector
|
|
(pt 352 -64)
|
|
(pt 304 -64)
|
|
)
|
|
(connector
|
|
(pt 96 -64)
|
|
(pt 168 -64)
|
|
)
|
|
(connector
|
|
(pt 144 48)
|
|
(pt 168 48)
|
|
)
|
|
(connector
|
|
(pt 336 192)
|
|
(pt 336 32)
|
|
)
|
|
(connector
|
|
(pt 336 32)
|
|
(pt 304 32)
|
|
)
|
|
(connector
|
|
(pt 144 48)
|
|
(pt 144 144)
|
|
)
|
|
(connector
|
|
(pt 96 32)
|
|
(pt 168 32)
|
|
)
|
|
(connector
|
|
(pt 416 -112)
|
|
(pt 144 -112)
|
|
)
|
|
(connector
|
|
(pt 416 -160)
|
|
(pt 416 -112)
|
|
)
|
|
(connector
|
|
(pt 416 -112)
|
|
(pt 416 160)
|
|
)
|
|
(connector
|
|
(pt 144 -112)
|
|
(pt 144 -48)
|
|
)
|
|
(connector
|
|
(pt 144 -48)
|
|
(pt 144 48)
|
|
)
|
|
(junction (pt 144 144))
|
|
(junction (pt 144 -48))
|
|
(junction (pt 144 48))
|
|
(junction (pt 416 -112))
|