Running Simulation using the Makefile - 2023.2 English

Vitis Model Composer User Guide (UG1483)

Document ID
UG1483
Release Date
2023-11-15
Version
2023.2 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 the 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 might 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 Vitis Model Composer Hub block for Simulation Timeout and Collect trace data for Vitis Analyzer are automatically reflected in the Makefile.