User guide

Table Of Contents
Chapter 3: Interfaces 3–11
Avalon-ST Video Protocol
January 2013 Altera Corporation Video and Image Processing Suite
User Guide
MegaCore functions are not required to understand or process ancillary data packets,
but must forward them on, as is done with user-defined and Altera-reserved packets.
Figure 3–11 shows an example of an Avalon-ST Video Ancillary Data Packet
containing two ancillary packets.
User-Defined and Altera-Reserved Packets
The Avalon-ST Video protocol specifies that there are seven packet types reserved for
use by users and five packet types reserved for future use by Altera. The data content
of all of these packets is undefined. However the structure must follow the rule that
the packets are split into symbols as defined by the number color plane samples sent
in one cycle of the color pattern.
Unlike control data packets, user packets are not restricted to four bits of data per
symbol. However when a core reduces the bits per pixel per color plane (and thus the
bit width of the symbols) to less than the number of bits in use per symbol, data is
lost.
Packet Propagation
The Avalon-ST Video protocol is optimized for the transfer of video data while still
providing a flexible way to transfer control data and other information. To make the
protocol flexible and extensible, the Video and Image Processing MegaCore functions
obey the following rules about propagating non-video packets:
MegaCore functions must propagate user packets until their end of packet signal
is received. Nevertheless, MegaCore functions that buffer packets into external
memory might introduce a maximum size due to limited storage space.
MegaCore functions can propagate control packets or modify them on the fly.
MegaCore functions can also cancel a control packet by following it with a new
control packet.
When the bits per color sample change from the input to the output side of a
MegaCore function, the non-video packets are truncated or padded. Otherwise,
the full bit width is transferred.
Figure 3–11. Avalon-ST Video Ancillary Data Packet
0 3FF 3FF 0 3FF 3FF
sop
Y data
eop
ancillary
packet 1
ancillary
packet 2
C data x x x x x xD
x
x = dont care