Table of Contents
Revision History...............................................................................................................2
Supported MATLAB versions and Operating Systems............................... 3
Chapter 1: Introduction.............................................................................................. 6
What is Model Composer........................................................................................................... 6
What's New and Limitations......................................................................................................8
Chapter 2: Creating a Model Composer Design...........................................10
Launching Model Composer....................................................................................................11
Creating a New Model.............................................................................................................. 12
Adding Blocks to a Model.........................................................................................................13
Connecting Blocks.....................................................................................................................15
Working with Data Types......................................................................................................... 16
Creating a Top-Level Subsystem Module...............................................................................27
Chapter 3: Importing C/C++ Code as Custom Blocks................................28
Introduction............................................................................................................................... 28
Using the xmcImportFunction Command............................................................................. 28
Importing C/C++ into Model Composer................................................................................. 31
Defining Blocks Using Function Templates............................................................................36
Pragmas for xmcImportFunction............................................................................................49
Adding Your Library to Library Browser.................................................................................55
Debugging Imported Blocks....................................................................................................57
Chapter 4: Generating Outputs...........................................................................63
Introduction............................................................................................................................... 63
Adding the Model Composer Hub.......................................................................................... 63
Controlling the Throughput of the Implementation............................................................ 66
Defining the Interface Specification....................................................................................... 72
Generating Packaged IP for Vivado........................................................................................ 76
Generating System Generator IP............................................................................................ 80
Generating C++ Code................................................................................................................85
UG1262 (v2020.1) June 3, 2020 www.xilinx.com
Model Composer User Guide 4