3 signal, 1 for each color (red, green, blue), colors signals are 75Ω analog signals with a value beetween 0v and 0.7v.
2 sync signals: - H sync, for horizontal sync - V sync, for vertical sync Each of them respect a pattern like : display (0), front porch (0), sync pulse (1), back porch (0).
H sync should be generate during V sync. When not pixel is display (during front porch, sync pulse and back porch, for H sync or V sync), color signal should be set to low (black)
Number | Color | Usage |
---|---|---|
1 | Red | Red video |
2 | Green | Green video |
3 | Blue | Blue video |
5 | Black | Return HSYNC |
6 | Black | Return Red |
7 | Black | Return Green |
8 | Black | Return Blue |
10 | Black | Return VSYNC |
13 | Yellow | HSYNC |
14 | White | VSYNC |
Code can be found here VGA.vhdl
By default drive 800*600 but should be ok with every resolution/pixel clock (but not tested)