Moving a square on VGA monitor VHDL

Guest #6542205
Rate this post
• ▲ useful
▼ not useful
- 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
Moderator (Company: Titel) #6544890
Rate this post
• ▲ useful
▼ not useful
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

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

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.