An AI Engine model in Model Composer requires the Vitis Model Composer Hub block. You use this to configure compilation and generation of AI Engine output. For more details about adding the Model Composer Hub block into the design and associated features, refer to Vitis Model Composer Hub.
This section discusses only exporting an AI Engine design from Model Composer. For running and analyzing the generated AI Engine's code, refer to Verification of AI Engine Code.
The following figures show the Model Composer Hub block settings specific to AI Engine compilation targets.
Select the subsystem for which to generate code from the list on the left.
On the Settings tab, you can specify a cell array of AI Engine compiler options using the AIE Compiler Options edit button. This provides a method to control the compiler debug options, execution target options, file options and so on. Examples as follows:
- To control the debug option log-levels, you can specify the string
{'--log-level=5'}in the AIE Compiler Options field. - If you encounter stack or heap size issues in downstream AI Engine flows, you can increase the size
using the following compiler options:
-
--stacksize=<int> -
--heapsize=<int>
-
Model Composer displays the progress of code generation in the Progress window.
When Vitis Model Composer has
completed exporting the design, it displays the status message Completed in the Progress window as shown in the following figure.