guiaria
Newbie level 3
Hi All
am trying to write verilog code to create object that can move vertical and horizontal by pressing button on Xillinx Spatan3 board
I use code from https://www.fpga4fun.com/PongGame.html to create a ball but I can't make it move horizontal and vertical
my code for vertical moving that not working
and how to make it move horizontal ?
am trying to write verilog code to create object that can move vertical and horizontal by pressing button on Xillinx Spatan3 board
I use code from https://www.fpga4fun.com/PongGame.html to create a ball but I can't make it move horizontal and vertical
my code for vertical moving that not working
PHP:
always @(posedge clk)
if(quadA) // I NET quadA to one of button in board
ball_inY <= ball_inY +1 ;
else if(quadB)
ball_inY <= ball_inY -1;