Forum Discussion
Altera_Forum
Honored Contributor
18 years ago --- Quote Start --- does anyone know how to write the code in VHDL by using Quartus 2 to control or generate these two signal?? i need to use it to generate color on the CRT monitor screen.. how does the code look like actually? 2 counter?? or array?? URGENT, some one pls help me..... time is running out here!! --- Quote End --- I think you have to be more specific of what you are trying to do. What kind of interface is it? VGA? Analog component (RGB/YUV)? Analog composite (NTSC/PAL)? DVI? Scart-RGB? S-video? HDMI? What resolution? Frame rate? Progressive or interlace scan? What's your interfacing circuits on your board? DAC? Here's a web page with some useful info of the sync signals for some different VGA resolutions. http://web.mit.edu/6.111/www/s2004/newkit/vga.shtml (http://web.mit.edu/6.111/www/s2004/newkit/vga.shtml) My suggestion is that you use one line counter and one pixel counter and decode them for setting/resetting H- and V-sync flag. Set the V and H sync signal output to the sync level when the corresponding flag is set. If using sync in the video signal (on green) you should xor the flags before setting the sync level. Remember to set the video to blanking level when the counters are not in active video area. Blanking is usually at level 16 when using an 8 bit DAC.