Importing AI Engine Code as a Block - 2020.2 English

Model Composer and System Generator User Guide (UG1483)

Document ID
UG1483
Release Date
2020-11-18
Version
2020.2 English

Model Composer allows you import the AI Engine kernel from the Model Composer AI Engine library. This allows you to create a block with an interface that has input and output ports equivalent to the arguments of an AI Engine kernel function, and also gives the flexibility to configure the kernel parameters using the block GUI. If you have a data-flow graph instead of an AI Engine kernel function, then Model Composer also allows you to import it into the Simulink environment from where it is possible to seamlessly connect the AI Engine graph block with AI Engine kernel block to build a complete system. If you have a kernel function targeted at implementation in adaptable engines (programmable logic), then Model Composer provides an HLS Kernel block. Coding guidelines for importing HLS kernels are described in Importing HLS Kernels.

In summary, the entry point for using an AI Engine block set can be a kernel or a data-flow graph for which Model Composer generates a block with interfaces that match the function arguments of a kernel or a graph.