User guide

Table Of Contents
10–2 Chapter 10: Clocked Video Input MegaCore Function
Functional Description
Video and Image Processing Suite January 2013 Altera Corporation
User Guide
The Clocked Video Input MegaCore function supports both 8 and 10-bit TRS and XYZ
words. When in 10-bit mode the bottom 2 bits of the TRS and XYZ words are ignored
to allow easy transition from an 8-bit system.
The XYZ word contains the synchronization information and the relevant bits of it's
format are listed in Table 10–1.
For the embedded synchronization format, the
vid_datavalid
signal indicates a valid
BT656 or BT1120 sample as shown in Figure 10–2. The Clocked Video Input MegaCore
function only reads the
vid_data
signal when
vid_datavalid
is 1.
The Clocked Video Input MegaCore function extracts any ancillary packets from the Y
channel during the vertical blanking. Ancillary packets are not extracted from the
horizontal blanking. The extracted packets are output via the Clocked Video Input’s
Avalon-ST output with a packet type of 13 (0xD). For information about Avalon-ST
Video ancillary data packets, refer to “Ancillary Data Packets” on page 3–10.
Separate Synchronization Format
The separate synchronization format uses separate signals to indicate the blanking,
sync, and field information. For this format, the
vid_datavalid
signal behaves
slightly differently from in embedded synchronization format.
The Clocked Video Input MegaCore function only reads
vid_data
when
vid_datavalid
is high (as in the embedded synchronization format) but it treats each
read sample as active picture data.
Table 10–1. XYZ Word Format
10-bit 8-bit Description
Unused [5:0] [3:0]
These bits are not inspected by the Clocked Video Input MegaCore
function.
H (sync) 6 4 When 1, the video is in a horizontal blanking period.
V (sync) 7 5 When 1, the video is in a vertical blanking period.
F (field) 8 6
When 1, the video is interlaced and in field 1. When 0, the video is
either progressive or interlaced and in field 0.
Unused 9 7
These bits are not inspected by the Clocked Video Input MegaCore
function.
Figure 10–2. vid_datavalid Timing
D0 D1vid_data
vid_datavalid