Adding Blocks to a Model - 2024.1 English

Vitis Model Composer User Guide (UG1483)

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

You can add blocks to the current model by opening the Simulink Library Browser and dragging and dropping the block onto the design canvas of the Simulink editor. Open the Library Browser by clicking the button on the Simulation tab. You will see the standard Simulink library of blocks, as well as the HLS library in the AMD Toolbox.

Tip: You can also open the Library browser by typing the slLibraryBrowser command from the command prompt.

The HLS blocks are organized into sub-categories based on functionality. The following figure shows the HLS > Logic and Bit Operations block library in the Library Browser.

Figure 1. Library Browser
Generated by Your Tool

Double-clicking a block in the Library Browser opens the Block Parameter dialog box displaying the default values for the various parameters defined on the selected block. While the block is in the library, you can only view the parameters. To edit the parameters, you must add the block to the design canvas.

To get additional information about a block you can right-click a block in the Library Browser and select the Help command. Alternatively, you can double-click the block in the Library Browser and click the Help button from the block dialog box. The Help browser opens with specific information for the block.

When you drag and drop the block onto the canvas, the block is added to the model with the default parameter values defined.

Tip: You can also quickly add blocks to the current model by single-clicking on the design canvas of the Simulink Editor and typing the name of a block. Simulink displays possible matches from the libraries, and you can select and add the block of interest.

Simulink models contain both signals and parameters. Signals are represented by the lines connecting blocks. Parameters are coefficients that define key characteristics and behavior of a block.