Build the Entire Design with a Single Command - 2023.2 English

Vitis Tutorials: AI Engine (XD100)

Document ID
Release Date
2023.2 English

If you are already familiar with Vitis kernel compilation flows, you can build the entire design with one command:

make run (default TARGET=hw_emu, GEMM_SIZE=64) 


make run TARGET=hw (Target is hardware, GEMM_SIZE=64)

This command runs the make kernels, make xsa, make application, make package, and make run_emu steps for hardware emulation or to run on hardware (VCK190 board) depending on the TARGET you specify. The settings also apply to individual make steps listed below.

The generated files are placed under an individual directory: $(BUILD_TARGET_DIR)/. Each make step to build the design is specified in the following sections. These sections also detail the options used and the location of input and output files in each case.

See this page for a detailed description of all Vitis compiler switches. The following table provides a summary of the switches used.

Switch Description
--target | -t [hw|hw_emu] Specifies the build target.
--platform | -f Specifies the name of a supported acceleration platform as specified by the $PLATFORM_REPO_PATHS environment variable or the full path to the platform XPFM file.
--save-temps | -s Directs the Vitis compiler command to save intermediate files/directories created during the compilation and link process. Use the --temp_dir option to specify a location to write the intermediate files to.
--temp_dir This allows you to manage the location where the tool writes temporary files created during the build process. The temporary results are written by the Vitis compiler, and then removed, unless the --save-temps option is also specified.
--verbose Display verbose/debug information.
--compile | -c Required for compilation to generate XO files from kernel source files.
--kernel \<arg>|-k \<arg> Compile only the specified kernel from the input file. Only one -k option is allowed per Vitis compiler command.
-D | --define \<Macro Name>=\<value> Defines Macros for the compiler.
--output | -o Specifies the name of the output file generated by the V++ command. The kernel output should be XO.

Following RTL files are used in this design


$(CONSTRAINTS_REPO)/gemm_dsp58.tcl provides constraints for synthesis and implementation.

Following is the output xo file

make kernels: Generates the PL Kernels