Zynq UltraScale MPSoC Base TRD 2018.1 - Design Module 3

Zynq UltraScale MPSoC Base TRD 2018.1 - Design Module 3

Design Overview


This module demonstrates:
  • Boot RPU1 only
    • RPU1 OS: Bare-metal
  • Bare-metal performance monitor application
    • Reads PS APM counters to measure CCI, Core Switch and DDR throughput and latency, then prints them to UART1





Design Components


This module requires the following components:
  • petalinux_bsp
    • zynqmp_fsbl
    • pmufw
  • perfapm-ctl
    • perfapm



Build Flow Tutorials


This tutorial uses both XSDK and PetaLinux tools. It is recommended to use separate shells for each of the tools.

Perfapm-ctl Application


  • Create a new SDx workspace.
    % cd $TRD_HOME/workspaces/ws_perfapm-ctl
    % xsdk -workspace . &&
  • Click 'Import Project' from the welcome screen, browse to the current working directory and make sure the perfapm, perfapm_bsp, perfapm-ctl and zcu102_base_trd_wrapper_hw_platform_0 projects are selected. Click Finish.
  • Right-click on the perfapm-ctl project and select 'Build Project'.
  • Copy the generated perfapm-ctl executable into the PetaLinux BSP.
    % cp perfapm-ctl/Debug/perfapm-ctl.elf $TRD_HOME/petalinux/bsp/images/linux

PetaLinux BSP


This tutorial shows how to build a boot image that includes the perfapm-ctl application using the PetaLinux build tool. This step assumes you have run through the PetaLinux build in DM1 previously

  • Create a boot image
    % cd $TRD_HOME/petalinux/bsp/images/linux
    % petalinux-package --boot --bif=../../project-spec/boot/dm3.bif --force
  • Copy the generated boot image to the dm3 SD card directory
    % mkdir -p $TRD_HOME/sd_card/dm3
    % cp BOOT.BIN $TRD_HOME/sd_card/dm3

Run Flow Tutorial


  • See here for board setup instructions.
  • Copy all the files from the $TRD_HOME/sd_card/dm3 SD card directory to a FAT formatted SD card.
  • Power on the board to boot the images; make sure all power rail LEDs are lit green.
  • The user can now see FSBL prints on UART-0 and prints from bare-metal perfapm-ctl application can be viewed on UART-1.
  • When prompted, user need to press 'Y' to turn on a dummy traffic generator that reads from OCM
    Turn on traffic generator? Enter 'Y' or 'N':
  • View the application prints on UART-1 as shown in the pictures:



Continue with Design Module 4.
Return to the Design Tutorials Overview.

© Copyright 2019 - 2022 Xilinx Inc. Privacy Policy