Home / Learn Verilog / VGA Timing

VGA Timing

Sync pulses and blanking.

The short versionSync pulses and blanking.

Theory in plain words

Line: active | front | sync | back640147166596424810
Line: active | front | sync | back

The basic idea

A VGA mode has horizontal and vertical sync, front/back porch and active pixels.

Why this comes up

Video output from FPGAs.

The mechanics

Two counters: pixel x and line y.

Where it is used

  • Everyday RTL design
  • FPGA and ASIC projects
  • Testbenches and debugging

Try it

Scaled VGA countersVerilog: edit and run

Real VGA: 800 x 525 total, 640 x 480 active at 25.175 MHz.

Quick check

1. Active video 640x480 total size?