Hello Guys,
I am trying to use the VGA display in a project using FPGA board. At the moment I am working on Basys2 FPGA kit from Digilent Inc, link
www.digilentinc.com/Data/Products/BASYS2/Basys2_rm.pdf that uses spartan3 FPGA.
Digilent Inc. - Digital Design Engineer's Source
I tried making a VGA controller in verilog (attached) code that I wrote by myself. I have two problems:
1. The display I get is RED color where as I am trying to display colors like yellow and blue. No matter what I try, I get RED out.
2. The displayed object is a line at the left hand side of the screen. The line is horribly jittery as the display is jittery along vertical axis. I did some research on the net and found out that the Basys2 board has the oscillator that produces the jittery signal and the DCM on the FPGA doen’t lock to this jittery signal so the display becomes jittered. Any Comments?
I tried using the vhdl demo program that came bundled with the Basys2 FPGA kit (vhdl code and the ucf file for Basys2 board have been attached) and the display supposed to display horizontal lines in different colors and it DOES show the desired colored lines out that it supposed to. However, the jitter problem exists in this code as well or for that matter, in any other code that I have tried on this board. I haven’t tried the codes on any other board so far as at the moment I have only got Basys2. The problem number 1st is bugging me more than 2nd one.
I am trying to figure out the reason why the verilog code results only the RED color. I also tried another verilog code that I copied from a book, ‘FPGA Prototyping using verilog examples’ ( the verilog code and the ucf file for Basys2 board have been attached) and it shows the same RED display. Could it be the ucf file?
Looking forward for help.
PS. Pls see the attached zip file for the codes