Hardware Design

The DPU and Softmax must be located in the $TRD_HOME/dpu_ip directory.

The Vitis Design Suite 2019.2 includes the zcu102_base platform. The following tutorials assumes that the Vitis and XRT environment variables are set as following:
  1. Open a linux terminal and set the Linux as Bash mode.
    % source <vitis install path>/Vitis/2019.2/settings64.sh
    % source /opt/xilinx/xrt/setup.sh

    The default setting of DPU is B4096, URAM_DISABLE, RAM_USAGE_LOW, CHANNEL_AUGENTATION_ENABLE, DWCV_ENABLE, POOL_AVG_ENABLE, RELU_LEAKYRELU_RELU6, DSP48_USAGE_LOW, MPSOC which defined in the dpu_conf.vh file.

    Note: Add the location of platform to SDX_PLATFORM using the$ export SDX_PLATFORM=<platform path>/zcu102_base/zcu102_base.xpfm.
  2. Build the hardware design
    % cd $TRD_HOME/prj/Vitis
    • For building the DPU only:
      % make KERNEL=DPU DEVICE=zcu102
    • For building the DPU and Softmax
      % make KERNEL=DPU_SM DEVICE=zcu102
  3. The generated SD card files will be placed in $TRD_HOME/prj/Vitis/binary_container_1/sd_card.