Importing Kernels and Graphs as Source Blocks - Importing Kernels and Graphs as Source Blocks - 2026.1 English - UG1483

Vitis Model Composer User Guide (UG1483)

Document ID
UG1483
Release Date
2026-06-23
Version
2026.1 English

Vitis Model Composer supports importing kernels and graphs as a source blocks (i.e., user-defined functions with no input ports) into the design. These source blocks inherit sample time. They work only when the model includes at least one other block with a non-inherited sample time that Simulink uses for propagation. This requires you to add a block (for example a Constant block) in the model and specify a valid sample time. Alternatively, you can explicitly specify the sample time for the imported source blocks. This is similar to the other source blocks such as Constant, RTP, and so on from the Simulink and AI Engine libraries respectively.

The AIE Kernel, AIE Class Kernel and AIE Graph blocks from the AI Engine/User-Defined Functions library supports importing code as a source block. When you try to import the kernel into the Vitis Model Composer that has only output ports, the tool identifies that as a source block. It adds the Sample time parameter to the Function tab in Block Parameters dialog box as shown in the following figure.

Note: The Sample time parameter is not visible when the kernel code has at least one input port.
Figure 1. Block Parameters: maker Generated by Your Tool

The default value of the Sample time is -1, indicating the sample time is inherited. Valid sample time values must be positive, real scalar, or -1.