To pixelcontrol
R2026bLibraries:
Vision HDL Toolbox /
I/O Interfaces
Description
The To pixelcontrol block accepts AXI4-Stream
control
signals and converts them to the pixelcontrol bus protocol used by
Vision HDL Toolbox™ blocks. Use this block and the From pixelcontrol
block when your model contains Vision HDL Toolbox blocks and algorithms that use AXI
interfaces.
This diagram shows the dataflow using these conversion blocks. The To
pixelcontrol block converts input AXI4-Stream signals to the
pixelcontrol protocol. If you send more than one pixel, or more than one
component per pixel, in each AXI4-Stream transfer, you must unpack the
data output and create a
numPixels-by-numComponents matrix for the
pixel input to the Vision HDL Toolbox algorithm. At the output of the Vision HDL Toolbox algorithm, you can pass a scalar pixel value to the From
pixelcontrol block, or repack
numPixels-by-numComponents values into the
data input.
![]()
The waveform shows a 2-line-by-3-pixel frame arriving at the input in AXI4-Stream protocol
and the output in pixelcontrol bus protocol. Each AXI4-Stream transfer
represents a single pixel. Each AXI4-Stream packet represents one video line. The
TLAST signal indicates the end of each video line. The block buffers
one line before returning any output, so that the output line has continuous
valid pixels. There is no end-of-frame signal, so the block counts lines
to determine the end of frame. The block adds the specified inactive pixel regions to the
output stream between lines and frames and generates the pixelcontrol
start-of-line (hStart), end-of-line (hEnd),
start-of-frame (vStart), and end-of-frame (vEnd) signals
according to the specified Video format. For more information on the
pixelcontrol protocol, see Streaming Pixel Interface.
![]()
Ports
Input
Output
Parameters
Extended Capabilities
Version History
Introduced in R2026b