As shown in the image below, a Model Composer design with HLS blocks includes
the following elements:
- Simulink® blocks that determine inputs, and provide source signals. These blocks are used in simulation of the design, but do not affect the output generated by Model Composer.
- A top-level subsystem block, as described in Creating a Top-Level Subsystem Module, that encapsulates the algorithm defined by the Model
Composer model. This subsystem module can contain:
- Blocks from the HLS library to define your algorithm, as listed in the HLS Library.
- Custom imported functions as described in Importing C/C++ Code as Custom Blocks.
- An Interface Spec block that defines the hardware interfaces as described in Defining the Interface Specification.
- The Model Composer Hub block that controls throughput of the design, and output generation through a series of options as described in Vitis Model Composer Hub.
- The output signals, or sinks that process the output in Simulink. Again, these blocks are used during Simulink simulation as described in Simulating and Verifying Your Design, but do not affect the output generated by Model Composer.
Figure 1. Elements of a Model Composer Design