Start with the default 720p settings without any fine timing adjustment settings:
X-Ref Target - Figure 4-4 |
In simulation, look at the VTC output. Note that the pixel clock for 720p should be 74.5 MHz, equivalent to a period of 13.4 ns.
By default, the blanking signal rises at the same clock edge the last active video signal (of a frame) falls and falls at the same clock edge the first active video signal (of a frame) rises.
X-Ref Target - Figure 4-5 |
Also by default, the vsync signals rises and falls at the same clock edge as a rising edge of the sixth rising edge of the hblank signal.
X-Ref Target - Figure 4-6 |
Both behaviors are because only the Vertical timing in Lines count are configured, not in pixel count, defined in the video timing specifications.
But, for whatever reason, you might want to slightly change the configuration to move the Vertical blanking or Sync signals. Use the Horizontal Fine Adjustment Settings to do so.
Start by the blanking and use the following configuration:
Vblank start = 1285 and Vblank End = 1645
X-Ref Target - Figure 4-7 |
Now check the VTC outputs in simulation and regenerate the IP output products.
Notice that the blanking signal rises 67 ns after the active out signal falls. This correspond to 5 pixel clock periods. Taking the time from the last hblank signals of the active frame (indicating the last line), it corresponds to 1285 pixel clock periods (active size + 5).
X-Ref Target - Figure 4-8 |
Notice that blanking signal falls 67 ns before the active out signal rises. This correspond to 5 pixel clock periods. Taking the time from the last hblank signals during the vertical blanking, it corresponds to 1645 pixel clock periods (horizontal frame size - 5).
X-Ref Target - Figure 4-9 |
Now change the Vsync start and End (0 and 1275):
X-Ref Target - Figure 4-10 |
Then check the output in simulation.
Notice that the vsync signal rises when the fifth falling edge of the hblank signal when the vertical blanking signals occur.
X-Ref Target - Figure 4-11 |
And the vsync signal falls 5 clock cycles before the rising edge of a hblank .
X-Ref Target - Figure 4-12 |
In summary, the Horizontal Fine adjustment allows you to move the Vertical timing signals in clock cycle precision while it is usually defined in Line precision.