Set HDL Code Generation Options - MATLAB & Simulink (original) (raw)

Main Content

HDL Code Generation Options in the Configuration Parameters Dialog Box

The following figure shows the top-level pane in the Configuration Parameters dialog box. To open this dialog box, in the Apps gallery, click HDL Coder. TheHDL Code tab appears. In the Prepare section, click Settings.

Navigate to the HDL Code Generation pane in Configuration Parameters dialog box

Note

When the pane of the Configuration Parameters dialog box appears, clicking theHelp button displays general help for the Configuration Parameters dialog box.

The Simulink® Toolstrip contains contextual tabs that appear only when you need to access them. To access the HDL Code tab, open the HDL Coder app from the Apps tab on the Simulink Toolstrip.

Select the HDL Coder app from the Simulink toolstrip.

The HDL Code tab provides shortcuts to the HDL code generation options. You can also use this tab to initiate code generation.

Options include:

HDL Code Options in the Block Context Menu

When you right-click a block that HDL Coder supports, the context menu for the block includes an submenu. The code generator enables items in the submenu according to:

Note

You can also access the options in the context menu from the HDL Code tab in the Simulink Toolstrip. To access this tab, open the HDL Coder app from the Apps tab.

The following summary describes the submenu options.

Option Description Availability
Check Subsystem Compatibility Runs the HDL compatibility checker (checkhdl) on the subsystem. Available only for subsystems.
Generate HDL for Subsystem Runs the HDL code generator (makehdl) and generates code for the subsystem. Available only for subsystems.
HDL Coder Properties Opens the Configuration Parameters dialog box, with the top-level HDL Code Generation pane selected. Available for blocks or subsystems.
HDL Block Properties Opens a block properties dialog box for the block or subsystem. See Set and View HDL Model and Block Parameters for more information. Available for blocks or subsystems.
HDL Workflow Advisor Opens the HDL Workflow Advisor for the subsystem. Available only for subsystems.
Navigate to Code Activates the HTML code generation report window, displaying the beginning of the code generated for the selected block or subsystem. For more information, see Navigate Between Simulink Model and HDL Code by Using Traceability. Enabled when both code and a traceability report have been generated for the block or subsystem.

The HDL Block Properties Dialog Box

HDL Coder provides selectable alternate block implementations for many block types. Each implementation is optimized for different characteristics, such as speed or chip area. The HDL Properties dialog box lets you choose the implementation for a selected block.

Most block implementations support a number of implementation parameters that let you control further details of code generation for the block. The HDL Properties dialog box lets you set implementation parameters for a block.

The following figure shows the HDL Properties dialog box for a block.

Choose Linear Architecture from the HDL Properties dialog box.

There are a number of ways to specify implementations and implementation parameters for individual blocks or groups of blocks. See Set and View HDL Model and Block Parameters.

See Also

makehdl | makehdltb