Video inversion for Invaders


Macro

Recommended Posts

I was hoping to clean this up a bit, but not had a chance yet, so here in case anyone wants to play ...

you need to lose dblscan.vhd from the project (the original scan doubler) and add the following source, VGA_Invert.vhd - this uses the same interface (was one of the limitations I set myself), but you will also need to generate a memory core to go with it - this needs to be called u_invert and have the following characteristics

simple dual port ram

write width 2

write depth 65536

ram A

write first

use ENA pin

ram B

write first

always enabled

with that added, then it should synthesise OK and work for you.

there are 2 'magic numbers' in the source that I used to centre the screen on my monitor - the original doubler has the picture way off to the left - your monitor may be different and need these changing.

  --

  -- Output Screen Positioning

  --

  constant Horizontal : natural := 140;

  constant Vertical : natural := 268;

the vertical one counts backwards, so needs to be > 244 (the number of vertical pixels)

VGA_Invert.zip

Link to comment
Share on other sites

  • 2 weeks later...
  • 5 years later...
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.