Creating a New Model - 2024.1 English

Vitis Model Composer User Guide (UG1483)

Document ID
UG1483
Release Date
2024-05-30
Version
2024.1 English

You create a new model by adding blocks from the Library Browser into the Simulink Editor. You then connect these blocks with signal lines to establish relationships between blocks. The Simulink Editor manages the connections with smart guides and smart signal routing to control the appearance of your model as you build it. You can add hierarchy to the model by encapsulating a group of blocks and signals as a subsystem within a single block. Model Composer provides a set of predefined blocks that you can combine to create a detailed model of your application.

In the Simulink start page, select Blank Model to open a new model.

Tip: You can also open an existing Vitis Model Composer template if any have been defined. Model templates are starting points to reuse settings and block configurations. To learn more about templates, see Create a Template from a Model in the Simulink documentation.

The Simulink start page also lists the recent models that you have opened on the left-hand column. You can open one of these recent models if you prefer.

The blank model opens, and you will create the Model Composer model by adding blocks, specifying block parameters, and using signal lines to connect the blocks to each other.

Important: HLS Library only supports one sample time for the model, and does not support multi-time systems. All HLS Library blocks inherit the sample time from the source block of the model. See What is Sample Time for more information.

To save the model select File > Save from the main menu. The Save As dialog box is opened, with a file browser. Navigate to the appropriate folder or location, and enter a name for the model in the File Name field. Click Save. The model is saved with the file extension .slx.

Model Composer also includes example models based on HLS library which can be accessed from the Examples and Tutorials section of the Vitis Model Composer documentation available from the Help menu in the tool, or by typing the xmcOpenExamples command from the MATLAB command prompt:
>> xmcOpenExamples