Vitis Model Composer automatically compiles designs into low-level representations. Designs are compiled and simulated using the Model Composer Hub block. This topic describes how to use the Vitis Model Composer Hub block.
A design must contain a single Vitis Model Composer Hub block at the top level of the model. This block controls code generation for all of the subsystems within a model. You can specify some parameters, such as clock frequency, on a subsystem-by-subsystem basis.
After adding a Vitis Model Composer Hub block, you can specify how to handle code generation and synthesis. The following figure shows a Model Composer Hub block dialog box:
Hardware Selection
Use this tab to specify an AMD, Partner, or Custom board for testing your design.
Clicking the browse button (…) displays the Device Chooser dialog box. Use this to select a part, board, or platform targeted by your design.
To display a Partner or custom board in the Board list, configure Model Composer to access the board files that describe the board. Board awareness in Model Composer is detailed in Specifying Board Support in Model Composer.
Code Generation
The Code Generation tab contains, on the left side, a list of subsystems in the model. Subsystems denoted with a green check mark are ready to generate HDL, HLS, or AI Engine code. To configure code generation for a subsystem, select it from the list. Selecting a subsystem generates code for it and its child subsystems.
If a Subsystem does not have a green check mark, this means it cannot generate code. Select it to view the reason and troubleshooting steps.
For a detailed description of the code generation settings available, refer to the relevant Model Composer Hub block section:
- Vitis Model Composer Hub (HDL)
- Vitis Model Composer Hub (HLS)
- Vitis Model Composer Hub (AI Engine)
Settings
This tab allows you to specify the following settings for the entire model.
- Treat this model as a legacy System Generator design for backward compatibility
- When you automatically upgrade a System Generator token to the Model Composer Hub block, this check box is automatically enabled. When the check box is enabled, you can use the Model Composer Hub block without requiring changes to your legacy designs. However, newer capabilities provided by the Model Composer Hub block, such as the Validate on Hardware Flow, are available.
- Number of parallel AI Engine builds
- To speed up model compilation, Vitis Model Composer can build the AI Engine blocks in parallel, taking advantage of multiple cores on your machine. You can increase this value up to the maximum number of cores on your machine.