VGA out from an FPGA

jmcoreymv

Diamond Member
Oct 9, 1999
4,264
0
0
I'm trying to make a simple game (Pong) using an FPGA (Spartan 3). The game works, but there is a problem with the video output. Every other horizontal line is slightly shifted to the right from the ones above and below it. I checked the sync pulses and they are all constant and with the correct timing. I also registered the RGB outputs. Any ideas?
 

davesaudio

Senior member
Oct 24, 2000
350
0
76
varta1.com
time from leading and trailing edge of hor pulse to first occurance of r/g/b info is constant?
must be able to scope and see with the right trigger...
 

Lord Banshee

Golden Member
Sep 8, 2004
1,495
0
0
so it is like this

******
_******
******
_******

If so i would think one of the counters that sets the RGB is going for one extra clock. for example if your vertical counter for getting pixel info increment one clock before the horizontal then the last horizontal black pixel from the porch will output on the line line. But then again why doesn't it do the following

*****
_*****
__*****
___*****

So it might not be that. I had a hell of a time implements the correct pixel data aligned the screen and i was only doing text, nothing moving real time like a ball, just when i type on a keyboard But the project required a lot of trail and error of changing counters for the displaying and accessing the memory for pixels.. Such a bug would be easier to find if you have a LSA, which i don't have one at home.

Oh and the counters i talk about above is not for the Sync counters as the vga signaling was completely correct, the other counter were the problem.
 

jmcoreymv

Diamond Member
Oct 9, 1999
4,264
0
0
Originally posted by: Lord Banshee
so it is like this

******
_******
******
_******

If so i would think one of the counters that sets the RGB is going for one extra clock. for example if your vertical counter for getting pixel info increment one clock before the horizontal then the last horizontal black pixel from the porch will output on the line line. But then again why doesn't it do the following

*****
_*****
__*****
___*****

So it might not be that. I had a hell of a time implements the correct pixel data aligned the screen and i was only doing text, nothing moving real time like a ball, just when i type on a keyboard But the project required a lot of trail and error of changing counters for the displaying and accessing the memory for pixels.. Such a bug would be easier to find if you have a LSA, which i don't have one at home.

Oh and the counters i talk about above is not for the Sync counters as the vga signaling was completely correct, the other counter were the problem.

I'll check the code again and the simulations, but I don't see why the boundary conditions would be different for every other horizontal pulse.
 

BrownTown

Diamond Member
Dec 1, 2005
5,314
1
0
I'll probably be doing some similar game for me final project this year in FPGA design, so I'll be interested in this answer too.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |