Lab 2: Importing Code into Vitis Model Composer - 2021.2 English

Vitis Model Composer Tutorial (UG1498)

Document ID
UG1498
Release Date
2021-11-29
Version
2021.2 English

Vitis Model Composer lets you import Vitis™ HLS library functions and user C/C++ code as custom blocks to use in your algorithm for both simulation and code generation.

The Library Import feature is a MATLAB function, xmcImportFunction, which lets you specify the required source files and automatically creates an associated block that can be added into a model in Simulink® .

This lab primarily has two parts:

  • In Step 1, you are introduced to the xmcImportFunction function, and walk through an example.
  • In Step 2, you will learn about the Vitis Model Composer feature that enables you to create custom blocks with function templates

For more details and information about other Model Composer features, see the Vitis Model Composer User Guide (UG1483).