Zynq UltraScale+ MPSoC VCU TRD 2021.1 - Xilinx Low Latency PL DDR XV20 SDI Video Capture and Display

This page provides detailed information related to Design Module 10 - Xilinx Low Latency (LLP2) PL DDR XV20 SDI Video Capture and Display

Table of Contents

1 Overview

This module enables the capture of video from an SDI-Rx subsystem implemented in the PL. The video can be displayed through the SDI-Tx subsystem implemented in the PL. The module can stream-out and stream-in live captured video frames through an Ethernet interface at ultra-low latencies using Sync IP. This module supports multi-stream for XV20 pixel format. In this design, PL_DDR is used for decoding and PS_DDR for encoding so that DDR bandwidth would be enough to support high bandwidth VCU applications requiring simultaneous encoder and decoder operations and transcoding at 4k@60 FPS.

The VCU encoder and decoder operate in slice mode. An input frame is divided into multiple slices (8 or 16) horizontally. The encoder generates a slice_done interrupt at every end of the slice. Generated NAL unit data can be passed to a downstream element immediately without waiting for the frame_done interrupt. The VCU decoder also starts processing data as soon as one slice of data is ready in its circular buffer instead of waiting for complete frame data. The Sync IP does an AXI transaction-level tracking so that the producer and consumer can be synchronized at the granularity of AXI transactions instead of granularity at the video buffer level. Sync IP is responsible for synchronizing buffers between Capture DMA and VCU encoder as both works on the same buffer.

The capture element (FB write DMA) writes video buffers in raster-scan order. SyncIP monitors the buffer level while the capture element is writing into DRAM and allows the encoder to read input buffer data if the requested data is already written by DMA, otherwise it blocks the encoder until DMA completes its writes. On the decoder side, the VCU decoder writes decoded video buffer data into DRAM in block-raster scan order and displays reads data in raster-scan order. To avoid display under-run problems, the software ensures a phase difference of "~frame_period/2", so that decoder is ahead compared to display.

This design supports the following video interfaces:

Sources:

  • SDI-Rx capture pipeline implemented in the PL.

  • Stream-In from network or internet.

Sinks:

  • SDI-Tx display pipeline implemented in the PL.

VCU Codec:

  • Video Encode/Decode capability using VCU hard block in PL.

    • AVC/HEVC encoding

    • Encoder/decoder parameter configuration.

Video format:

  • XV20

Supported Resolution:

The table below provides the supported resolution from command line app only in this design.

Resolution

Command Line

Single Stream

Multi-stream

4Kp60

X

4Kp30

X

1080p60

X

√ - Supported
X – Not supported

The below table gives information about the features supported in this design. 

Pipeline

Input source

Format

Output Type

Resolution

VCU Codec

Pipeline

Input source

Format

Output Type

Resolution

VCU Codec

Serial pipeline

SDI-Rx

XV20

SDI-Tx

4Kp60/4Kp30/1080p60

HEVC/AVC

Stream-Out pipeline

SDI-Rx

XV20

Stream-Out

4Kp60/4Kp30/1080p60

HEVC/AVC

Stream-In pipeline

Stream-In

XV20

SDI-Tx

4Kp60/4Kp30/1080p60

HEVC/AVC


The below figure shows the Xilinx Low-latency PL DDR SDI design hardware block diagram.

The below figure shows the Xilinx Low-latency PL DDR SDI design software block diagram.

1.1 Board Setup

Refer below link for Board Setup

1.2 Run Flow

The TRD package is released with the source code, Vivado project, Petalinux BSP, and SD card image that enables the user to run the demonstration. It also includes the binaries necessary to configure and boot the ZCU106 board. Prior to running the steps mentioned in this wiki page, download the TRD package and extract its contents to a directory referred to as TRD_HOME, which is the home directory.

TRD package contents are placed in the following directory structure. The user needs to copy all the files from the $TRD_HOME/images/vcu_llp2_sdi_xv20 to FAT32 formatted SD card directory.

rdf0428-zcu106-vcu-trd-2021-1/ ├── apu │ └── vcu_petalinux_bsp ├── images │ ├── vcu_10g │ ├── vcu_audio