Output Files - 2021.2 English

Vitis Model Composer User Guide (UG1483)

Document ID
UG1483
Release Date
2021-10-22
Version
2021.2 English
The following table provides descriptions of the directories and files that are generated by the AI Engine code generation flow in Model Composer when hardware flow is enabled. The location of the files and directories shown in this table are relative to the Target directory specified in Model Composer Hub block for code generation.
Note: This list only describes files/directories that are specific to the hardware validation flow. For information on various sub-directories in the <Target directory>/ refer to Output Directory.
Table 1. File/Directory Descriptions
File/Directory Name File Description
src_pl_datamover/ mm2s.cpp This is a PL DataMover IP, automatically inferred for input data to the AIE subsystem. This converts AXI Memory-Mapped data from external DDR Memory into AXI Stream for the AI Engine Array.
  s2mm.cpp This is a PL DataMover IP, automatically inferred for output data from the AI Engine subsystem. This converts AXI-Stream data from the AI Engine Array into AXI Memory-Mapped data
src_ps/ main.cpp This is the host application that runs on the PS. It instantiates and runs the AI Engine dataflow graph and supplies the simulation test data for comparison with results after running on hardware.
  genPSMain.sh
This script generates the xmc_ps_main.h header file which is included from host application (i.e., main.cpp). xmc_ps_main.h lists the following:
  • Addressing information for PL Datamover IPs (MM2S and S2MM) interfaces, as obtained from the generated hardware drivers.
  • Input and Output sample sizes, as obtained from the input test data and output golden data files while running simulation in Model Composer.
hdl_xo/ HdlKernelXOGen.tcl This is the TCL file that gets sourced in Vivado. It is used to generate the XO for the HDL kernel present in the design. This file is generated only if there are HDL blocks present in the design.
run_hw/ Makefile This is the Makefile specifying the steps to run the design on hardware. TARGET can be hw_emu or hw.
  run_hw.sh Top-level script to run the Makefile. Default TARGET is hw.
  prepData.sh Preprocessing script which prepares generated data from Model Composer for the the run_hw directory.
  prepData.py Preprocessing script that gets invoked from within prepData.sh. Translates input test data and output golden data files into a suitable format for hardware, based on datatypes and converts them into suitable header files which are included in the host application.
  HlsKernelXOGen.sh Script to compile HLS kernels (if any) present in the model to generate XOs.
  graph.mk Included from the Makefile; lists AI Engine sources.
  hls.mk Included from the Makefile; lists HLS sources.