Guest
#2430140
Hi! I'm relatively new at vhdl and need some help. I'm writing code that is supposed to work with a VGA-display I need the "program" to write a 4X4 colored pixel in the middle of the screen, and then with the help of four buttons, move this pixel up,down right and left on the display. I am using the resolution 640 X 480, so the middle would be 320 and 240, but since i need a 4X4 pixel, i know that it need to start at 318-322 and 238-242, but i have no idea how to write this code. I earlier written code for the sync signals so thats out of the picture. I know that i should at least need 3 processes one for the 4 buttons one for the updating of the pixel on the screen (X and Y) and one for the sync signals which iv'e already written I have attached two pictures, the first (vhdl(1)) shows the entity and a working sync process along with counters. The second picture shows just a thought i had (it's not complete), there also seems to be syntax errors in it.. I couldn't think of anything better than to take a printscreen of the code,unfortunately its a tall picture.. How can i write code for the pixel and the X/Y? How can i write code for the buttons? Can anyone help me with this?? it would be much appriciated! //Strik3r

