Running Simulation using the Makefile - 2020.2 English

Model Composer and System Generator User Guide (UG1483)

Document ID
UG1483
Release Date
2020-11-18
Version
2020.2 English

You may 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. 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 Model Composer 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 aie simulator 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 and the simulator option is enabled, then the modifications done in the Model Composer Hub block for Timeout value and Launch Vitis Analyzer are automatically reflected in the Makefile.