Moving a square on VGA monitor VHDL

Guest #6542205
- Make the coordinates for your square change over time.
- Bonus: Detect when your square collides with the screen boundaries and 
invert the moving direction of x or y accordingly.

Regards,
gustl
Guest #6544769
break down you problem into smaller pieces. don't try to move a square, 
instead try to move a single pixel...
Moderator (Company: Titel) #6544890
Cristina E. wrote:
> do you have any idea how I should write the process?
Its not the problem of how to write "the process". Maybe you don't need 
an additional process at all. Or maybe you need 4 more processes. That 
depends on how the code looks now...

> I managed to generate a square on the monitor, but I want it to
> move alone on the monitor.
It goes more to the deep: how do you generate a picture on the screen? 
and how do you generate a square in that picture? And what parameters 
determine the position of the square? And how can you make those 
parameters variable?

Reply

A question of your own? This thread is over 5 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.