This Tech Tip takes the HDMI as a video source (HDMI Rx capture pipeline implemented in the PL), sink (HDMI Tx display pipeline implemented in the PL) and demonstrates the VCU processing capabilities at 4k pixels at 60 frames for second.
This tutorial contains information about:
How to setup the ZCU106 evaluation board and run the reference design.Steps for running this demo with prebuilt images
How to build all the required components based on the provided source files via detailed step-by-step tutorials.
How to setup the ZCU106 evaluation board and run the example design.
Additional material that is not hosted on the tutorial:
Zynq UltraScale+ MPSoC VCU TRD user guide, UG1250: The UG provides the list of features, software architecture and hardware architecture.
Philips BDM4350UC
3840 x 2160 @ 60Hz
Run the demo with prebuilt images:
For user convenience prebuilt images are supplied along with the design files .Follow the below steps to run the demo with supplied prebuilt images
Download the Design_files.zip file and extract it as Design_files directory in your local windows/linux machine
Change the directory to Design_files/Prebuilt_binaries
Copy all the files from Board1 directory to SD card and label it as "Board1 SD card"
Copy all the files from Board2 directory to another SD card and label it as "Board2 SD card"
Now switch to "Setting up the ZCU106 Boards " section below in the page and follow the steps to execute the demo.
Hardware and Software build flow
that the $TechTip_HOME$Design_HOME environment variable
% export TechTip_HOME=/path/to/download/zipfile/Design_filesDesign_HOME=/path/to/download/zipfile/Design_files
NOTE: It is recommended to follow the build steps in sequence.
Building Hardware Design
On Linux:
Open a Linux terminal
directory to $TechTip_HOME/pl$Design_HOME/pl
To create the Vivado IPI project and invoke the GUI, run the following command.
vivado -source scripts/create_project.tclscripts/zcu106_4k_demo.tcl
On Windows 7:
Click Start > All Programs > Xilinx Design Tools > Vivado 2017.3 > Vivado 2017.3.
On the getting started page, click on Tcl Console, see the below figure.
In the Tcl console type:
cd </path/to/downloaded/zip-file>/Design_files/pl</span></path/to/downloaded/zip-file>/Design_files/pl
source scripts/create_project.tclscripts/zcu106_4k_demo.tcl
{hardwareflow1.png}
After executing the script, the vivado IPI block design comes up as shown in the below Figure.
{hardwareflow2.png}
Click on “generate bitstream”.
Note: If the user gets any pop-up with “No implementation Results available”. Click “Yes”. Then, if any pop-up comes up with “Launch runs”, Click "OK”.{block_diagram.JPG}
The design is implemented and a pop-up window comes up saying “open implemented design”. Click "OK".
{hardwareflow3.png}
In the Export Hardware Platform for SDK window select "Include bitstream" and click "OK".
{hardwareflow6.png}
created at $TechTip_HOME/pl/project/zcu106_vcu_trd.sdk/zcu106_vcu_trd_wrapper.hdf$Design_HOME/pl/zcu106_design_example/zcu106.sdk/zcu106_wrapper.hdf
Building software components
This tutorial shows how to build the Linux image and boot image using the PetaLinux build tool.
Post PetaLinux installation $PETALINUX environment variable should be set.
Configure the PetaLinux project.
% cd $TechTip_HOME/apu/vcu_petalinux_bsp$Design_HOME/vcu_petalinux_bsp
% petalinux-config --get-hw-description=$TechTip_HOME/pl/project/zcu106_vcu_trd.sdk--get-hw-description=$TechTip_HOME/pl/zcu106_4k_design_example/zcu106.sdk --oldconfig
Note:
pre-generated HDF ($TechTip_HOME/ apu/vcu_petalinux_bsp/hw-description/system.hdf).($Design_HOME/vcu_petalinux_bsp/hw-description/system.hdf). If Vivado
Apply TMDS patch (Only for rev-b board) - Edit recipes-kernel to include 0001-xilinx-hdmi-rx-Add-HPD-hack-for-ZCU106.patch.
Build all Linux image components
% petalinux-package --boot --bif=vcu.bif
Copy the generated boot image and Linux image to the SD card directory.
BOOT.BIN image.ub $TechTip_HOME/images/rev-x$Design_HOME/images/rev-x
Running the demo :
Figure below shows the ZCU106 board with interfaces highlighted.