Jump to content
  • 0

Help display one color background vga basys3


aries

Question

Hello,


I'm discovering BASYS3/VHDL and I would like to display a red background (just this) using the VGA controller of basys3. 
I already have this file vga_controller_640_60.vhd but do I need to add in this ? 

https://github.com/AshciR/spi-dac-vga/blob/master/vga_controller_640_60.vhd 

Can you help me with the code to add ? I will read your suggestions and try to understand ! 

 

 

Thank you in advance.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @aries

Referring to the Basys 3 Reference Manual's section on the VGA port, if you already have syncs being generated, driving the four red signals high and the green and blue signals low during the "display time" ought to do the trick. The reference manual will also include information which can tell you about the sort of circuit (but not necessarily the exact circuit) that the VHDL file you found is describing.

Thanks,

Arthur

Link to comment
Share on other sites

  • 0

Hello @artvvb, thank you for link. I already read this page but I'm a beginner, I don't know which VHDL code lines I need to add and WHERE in the script.

I start understanding how it works but I need your help please.

 

image.thumb.png.fe91857e71558dd617e39cec008d1ed2.png

image.png

Edited by aries
Link to comment
Share on other sites

  • 0

Looking at the VHDL module's portmap (line 76-85), this module only controls the sync signals, and requires a 25 MHz clock. The VGA interface requires you to also control the red/grn/blue lines from a vhdl module. The Basys 3's input clock is 100 MHz, so you also need a way to divide the clock down.

If you haven't yet, I'd recommend starting with a simpler project like writing some VHDL that blinks a single LED at a fixed frequency, writing the constraints file to map the top level ports to FPGA pins, and building it and deploying it to your board, prior to taking this project on. There are several tutorials available in various places online that walk through this.

THanks,

Arthur

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...