When the elements of the Vitis software platform are installed, update the shell environment script. Set the environment variables to your system-specific paths.
To set up XRT, if you have not done this already, run the following command:
* source \<XRT-Location\>/setup.sh
In the design directory of each implementation, edit sample_env_setup.sh
script with your file paths, then source the environment script:
source sample_env_setup.sh
The script sets up the environment variables and sources scripts explained below:
The
PLATFORM_REPO_PATHS
environment variable is based on where you downloaded the platform.The
XILINX_TOOLS_LOCATION
path to the AMD tools is used to source thesettings64.sh
script.The
XLNX_VERSAL
path to thexilinx-versal-common-v2024.2
directory is used in the step below.The platform is set up by running the
xilinx-versal-common-v2024.2/environment-setup-cortexa72-cortexa53-xilinx-linux
script as provided in the platform download This script sets up theSDKTARGETSYSROOT
andCXX
variables. If the script is not present, you must run thexilinx-versal-common-v2024.2/sdk.sh
script.DSPLIB_VITIS
is the path to the downloaded Vitis Libraries. This is only required for the AI Engine implementation.In the script, you can optionally set up an
XRT_ROOT
environment variable, pointing to XRT - RPMs, which can be packaged in the Vitis compiler packaging step. If it is not set up, this environment variable is automatically excluded from packaging.The script also sets up the
PLATFORM
variable pointing to the required.xpfm
file of the target platform set by the variabletgt_plat
.