Programmatic Workflow

Command-line functions for code generation and configuration and using HDL workflow script for end-to-end workflows

At the command line, you can generate HDL code for Simulink® models by using the makehdl function. If you want to deploy the generated code to a target FPGA device, you can use the HDL Workflow Advisor. You can export the workflow settings to a script and then run the workflow at the command line. To learn more, see Run HDL Workflow with a Script.


hdlcoder.WorkflowConfigConfigure HDL code generation and deployment workflows


expand all

makehdlGenerate HDL RTL code from model, subsystem, or model reference
makehdltbGenerate HDL test bench from model or subsystem
hdladvisorDisplay HDL Workflow Advisor
hdlcoder.runWorkflowRun HDL code generation and deployment workflow
exportGenerate MATLAB script that recreates the workflow configuration
setAllTasksEnable all tasks in workflow
clearAllTasksDisable all tasks in workflow
validateCheck property values in HDL Workflow CLI configuration object
hdlsetupSet up model parameters for HDL code generation
hdlsetuptoolpathSet up system environment to access FPGA synthesis software
hdlset_paramSet HDL-related parameters at model or block level
hdlget_paramReturn value of specified HDL block-level parameter for specified block
hdlsaveparamsSave nondefault block- and model-level HDL parameters
hdlrestoreparamsRestore block- and model-level HDL parameters to model
hdldispmdlparamsDisplay HDL model parameters with nondefault values
hdldispblkparamsDisplay HDL block parameters with nondefault values


Using Command-Line Interface

Set HDL Code Generation Options

Access HDL options in the Configuration Parameters dialog box and Model Explorer; Simulink Toolstrip, HDL Code context menu, and pointers to related information.

Set and View HDL Model and Block Parameters

How to view or set the implementation parameters for a block.

Add or Remove the HDL Configuration Component

Adding an HDL configuration component to make models more portable

Generate HDL Code from Simulink Model from Command Line

Use the command-line function makehdl to generate HDL code for your Simulink model.

Using HDL Workflow Script

Getting Started with the HDL Workflow Command-Line Interface

This example shows how to use the HDL Workflow Advisor to run HDL workflows from the command-line and the 'Export to script' functionality.

Run HDL Workflow with a Script

Export, import, or configure an HDL Workflow CLI command script.

Synthesis Objective to Tcl Command Mapping

Tool-specific Tcl commands that correspond to the HDL Workflow synthesis objectives

HDL Block Properties

HDL Block Properties: General

HDL code generation parameters supported for specific block implementations.

HDL Block Properties: Native Floating Point

HDL code generation parameters supported for specific block implementations in Native Floating Point.