Vitis Custom Embedded Platform Creation Example on ZCU104¶
Version: Vitis 2020.2 + Vitis AI 1.3
In this module, we will create a custom Vitis embedded platform for ZCU104. It will be capable to run Vitis acceleration applications including Vitis-AI applications. Of course, general embedded software application can also run on this platform.
Since ZCU104 is a validated Xilinx Evaluation Board and Vivado includes its processing system presets, we will skip step 0 mentioned in previous overview module and start to build the full hardware and generate XSA.
To prepare the software components, we will import XSA into PetaLinux project and do some configurations. After building software and hardware components, we’ll package the platform. At last, we’ll run several test applications including Vitis-AI application on this platform to test this customized platform.
Custom Platform Planning¶
The platform we create should be able to run these applications finally
Vitis acceleration examples like Vector Addition
Vadd application requires 1x clock, 1x interrupt, 1x M_AXI for kernel control and 1x S_AXI for memory access.
Vitis-AI application would integrate DPU as RTL kernel. It would require two clocks: clk and clk2x. We can give 200MHz and 400MHz clocks for easy timing closure. One interrupt is needed as well. DPU is a memory hungry IP so the platform needs to provide multiple AXI HP interfaces.
On the software side, the platform needs to provide the XRT, ZOCL packages. Host application can use XRT OpenCL API to control Kernel. Vitis-AI software framework can control DPU with XRT. ZOCL is the kernel module that talks to acceleration kernels. It needs a device tree node so it will be added. Other Vitis-AI dependencies will also be added. Common image provided by Xilinx can accomplish all these features. Besides these common features, we wish to add GCC compilers to do application native compilation, add mesa-mega driver for Vitis-AI demo applications and replace the dropbear with openssh so that the network speed can be faster.
We’ll introduce the platform creation steps in the following pages. Each page describes one major step in the platform creation process.
Let’s start from step 1: Vivado Design.
Copyright© 2020 Xilinx