Running Simulation using the Makefile - 2022.1 English

Vitis Model Composer User Guide (UG1483)

Document ID
UG1483
Release Date
2022-05-26
Version
2022.1 English

If you want to edit the graph code, for example, to add or modify constraints, or explore the graph code by editing the kernel configuration parameters (like window size or window margin etc.), and re-compile. Vitis Model Composer generates a Makefile allowing you to easily accomplish this by running the following command.

make all

This command compiles an AI Engine graph using the default aiecompiler target and runs the simulation using aiesimulator. It also compares the output of the simulator with the golden output. This command also launches the Vitis analyzer, based on the option selected in the Hub block.

To do this, you need to source the settings64.csh or settings64.sh from <MODEL_COMPOSER_INSTALLATION_DIRECTORY>/Model_Composer/<VERSION>

When the code is generated without the Create testbench option checked, the aiesimulator settings in Makefile are as follows.

Default aiesimulator Settings

################################################################################
# aiesimulator settings
################################################################################
AIE_SIM := aiesimulator
AIE_SIM_TIMEOUT := 50000
AIE_OUTPUT_DIR := $(DATA_DIR)/aiesimulator_output
AIESIM_FLAGS := --profile
LAUNCH_VITIS_ANALYZER :=

Observe the Timeout value is 50000 which is default and LAUNCH_VITIS_ANALYZER is not set to TRUE. To run simulation for different timeout values with the Vitis analyzer enabled, you may need to manually edit the Makefile as follows.

Modified Settings

AIE_SIM_TIMEOUT := <Value>
LAUNCH_VITIS_ANALYZER := true

When the code is generated with the Create testbench option selected, and the simulator option is enabled, then the modifications done in the Model Composer Hub block for Simulation Timeout and Collect Data for Vitis Analyzer are automatically reflected in the Makefile.