You can mix blocks from the HLS block library and blocks from Simulink® , and other add-on toolboxes, during simulation in Simulink. However, you can only generate output from Model Composer from the top-level subsystem that uses only a limited set of Simulink blocks that are supported for code generation.
The following Simulink blocks are fully supported by Model Composer for code generation, and can be found in the Vitis Model Composer HLS block library as well.
|Place this block in a subsystem to link to a
signal from an
If block or a
|This block creates a bus signal from multiple inputs.
|Pulls signals from an input bus to pass to output.
|Provides numeric display of input values.
|Create and edit text associated with a model, and save that text with the model.
|Receive signals from the Goto block with the specified tag.
|Send signals to From blocks that have the specified tag.
ELSE condition for branching inputs to
|Provide an input port for a subsystem or model.
|Merge multiple input signals into a single output signal whose initial value is specified by the 'Initial output' parameter.
|Provide an output port for a subsystem or model.
|Displays time domain signals with respect to simulation time.
|Stop simulation when input is non-zero.
|Used to "terminate" output signals to prevent warnings about unconnected output ports.
|Incrementally write data into a variable in the specified MAT-file.
|Write input to specified timeseries, array, or structure in a workspace.
Refer to the Simulink documentation for a complete description of the block.