
24 www.xilinx.com Spartan-3 Starter Kit Board User Guide
1-800-255-7778 UG130 (v1.1) May 13, 2005
Chapter 5:
VGA Port
R
Modern VGA displays support multiple display resolutions, and the VGA controller
dictates the resolution by producing timing signals to control the raster patterns. The
controller produces TTL-level synchronizing pulses that set the frequency at which current
flows through the deflection coils, and it ensures that pixel or video data is applied to the
electron guns at the correct time.
Video data typically comes from a video refresh memory with one or more bytes assigned
to each pixel location. The Spartan-3 Starter Kit board uses three bits per pixel, producing
one of the eight possible colors shown in Table 5-2. The controller indexes into the video
data buffer as the beams move across the display. The controller then retrieves and applies
video data to the display at precisely the time the electron beam is moving across a given
pixel.
As shown in Figure 5-2, the VGA controller generates the HS (horizontal sync) and VS
(vertical sync) timings signals and coordinates the delivery of video data on each pixel
clock. The pixel clock defines the time available to display one pixel of information. The VS
signal defines the “refresh” frequency of the display, or the frequency at which all
information on the display is redrawn. The minimum refresh frequency is a function of the
display’s phosphor and electron beam intensity, with practical refresh frequencies in the
60 Hz to 120 Hz range. The number of horizontal lines displayed at a given refresh
frequency defines the horizontal “retrace” frequency.
VGA Signal Timing
The signal timings in Table 5-3 are derived for a 640-pixel by 480-row display using a
25 MHz pixel clock and 60 Hz ±1 refresh. Figure 5-3 shows the relation between each of the
timing symbols. The timing for the sync pulse width (T
PW
) and front and back porch
intervals (T
FP
and T
BP
) are based on observations from various VGA displays. The front
and back porch intervals are the pre- and post-sync pulse times. Information cannot be
displayed during these times.
Table 5-3:
640x480 Mode VGA Timing
Symbol Parameter
Vertical Sync Horizontal Sync
Time Clocks Lines Time Clocks
T
S
Sync pulse time 16.7 ms 416,800 521 32 µs800
T
DISP
Display time 15.36 ms 384,000 480 25.6 µs640
T
PW
Pulse width 64 µs 1,600 2 3.84 µs96
T
FP
Front porch 320 µs 8,000 10 640 ns 16
T
BP
Back porch 928 µs 23,200 29 1.92 µs48
Figure 5-3:
VGA Control Timing
T
FP
T
DISP
T
S
T
PW
T
BP
UG130_c5_03_051305
Comentarios a estos manuales