Implemented features: ball moving, platform moving, showing scores on digital table, game reset.
215 lines
5.2 KiB
Text
215 lines
5.2 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.
|
|
*/
|
|
(header "symbol" (version "1.1"))
|
|
(symbol
|
|
(rect 16 16 168 240)
|
|
(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"
|
|
"1"
|
|
""
|
|
(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"
|
|
"0000"
|
|
""
|
|
(type "PARAMETER_UNSIGNED_BIN") )
|
|
(parameter
|
|
"BK_COLOR_B"
|
|
"0000"
|
|
""
|
|
(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 168 -64 268 16))
|
|
)
|