Video Data - 1.1 English - PG379

AXI4-Stream Remapper LogiCORE IP Product Guide (PG379)

Document ID
PG379
Release Date
2025-05-29
Version
1.1 English

The AXI4-Stream interface specification restricts TDATA widths to integer multiples of eight bits. Therefore, any bit data must be padded with zeros on the MSB to form a N*8 bit wide vector before connecting to s_axis_video_tdata. Padding does not affect the size of the core.

Similarly, data on the AXI4-Stream Remapper core output m_axis_video_tdata is packed and padded to multiples of eight bits as necessary. Zero padding the most significant bits is only necessary for 10 and 12 bit wide data as the total data width is not a multiple of 8. The following five figures explain the pixel mapping of AXI4-Stream interface with 2 pixels per clock and 10 bits per component configuration for all supporting color formats. Zero padding (bits [63:60]) is not shown in the following figures. Given that the AXI4-Stream Remapper core requires hardware configuration for three component video, the AXI4-Stream Subset Converter is needed to hook up with other IPs of two component video interface in YUV 4:2:2 and YUV 4:2:0 color format. Refer to Appendix B, Upgrading in the AXI4-Stream Video IP and System Design Guide (UG934) for more information.

Figure 1. Dual Pixels per Clock, 10 bits per Component Mapping for RGB
Figure 2. Dual Pixels per Clock, 10 bits per Component Mapping for YUV 4:4:4
Figure 3. Dual Pixels per Clock, 10 bits per Component Mapping for YUV 4:2:2
Figure 4. Dual Pixels per Clock, 10 bits per Component Mapping for YUV 4:2:0 Even Line
Figure 5. Dual Pixels per Clock, 10 bits per Component Mapping for YUV 4:2:0 Odd Line

The remapper is also able to perform component width conversion from the input to output for any combination of width including: 8, 10, 12, and 16 bit. The example shown in the following figure illustrates trimming the component width from 12 bits on Video Input to 8 bits on the AXI4-Stream output. The four LSBs of each component are trimmed and the remaining data is packed onto the output video bus.

Figure 6. Component Width Trimming from Video Input to AXI4-Stream Output (12b to 8b)

The example shown in the following figure illustrates padding the component width from 8 bits on Video Input to 12 bits on the AXI4-Stream output. The four LSB's on the output of each component are padded to zeros and the upper MSB's are mapped onto the bus from the Video Input.

Figure 7. Component Width Padding from AXI4-Stream Input to Video Output (8b to 12b)