Workflows in HDL Workflow Advisor - MATLAB & Simulink (original) (raw)

The HDL Workflow Advisor offers various workflows to check your algorithm for HDL compatibility, generate HDL code, verify the code, and then deploy the code to your target platform.

You can run the Workflow Advisor for your MATLAB® algorithm or Simulink® model. Before you deploy the code to a target hardware platform, install the synthesis tool and specify the path to that synthesis tool by using the hdlsetuptoolpath function. See Set Up Tools.

HDL Workflow Advisor is not available in Simulink Online™.

Set Up HDL Workflow Advisor in MATLAB

Before you specify the target workflow, when you run the Workflow Advisor from MATLAB, specify the design and test bench files, define the input types, and run fixed-point conversion.

To specify the target workflow for code generation:

  1. On the MATLAB toolstrip, from the tab, select theHDL Coder app.
  2. Select the MATLAB design and test bench files and click the Workflow Advisor button.
  3. In the HDL Workflow Advisor, select Code Generation Workflow as MATLAB to HDL or MATLAB to HLS.
  4. In the task, select theWorkflow for code generation.

Note

The steps after code generation workflow selection change depending on your target workflow.

When you run the Workflow Advisor from your Simulink model, irrespective of the target workflow, you run the steps to prepare the model for HDL code generation, and then generate code.

Open the Simulink model for which you want to run the workflow.

  1. On the Simulink toolstrip, from the tab, select theHDL Coder app.
  2. On the tab, click the Workflow Advisor button.
  3. In the HDL Workflow Advisor, on the task, select the Target workflow.

The steps in the Workflow Advisor change depending on the Target workflow, Target platform, and Synthesis tool.

Generic ASIC/FPGA

Generate HDL code from your Simulink model or MATLAB algorithm, verify the HDL code, and deploy the code to a generic ASIC or FPGA device.

By using this workflow, you can:

To learn more, see:

IP Core Generation

Generate RTL code and a custom HDL IP core from your Simulink model or MATLAB algorithm. Before you run the workflow, partition your design into components that run on software and components that run on hardware. See Hardware-Software Co-Design Workflow for SoC Platforms.

The IP core is a shareable and reusable HDL component that consists of IP core definition files, HDL code generated for your algorithm, C header file with the register address map, and the IP core report. See:

Use this workflow to:

You can integrate the HDL IP core into HDL Coder™ provided reference designs such as the default system reference design or into a reference design that you created. To learn more, see:

Generate HDL code from your Simulink model and deploy the code onto Speedgoat® FPGA I/O modules. This workflow requires Xilinx Vivado and uses the IP Core Generation workflow infrastructure, as mentioned in Simulink Real-Time FPGA I/O: Speedgoat Target Computer.

To run the Simulink Real-Time FPGA I/O workflow, install theSpeedgoat I/O Blockset and the Speedgoat HDL Coder Integration Packages. After you install the integration packages, you can choose the Target platform, and then run the workflow to:

For more information, see IP Core Generation Workflow for Speedgoat Simulink-Programmable I/O Modules.

FPGA-in-the-Loop

Test your Simulink model or MATLAB algorithm on a target FPGA. This workflow requires HDL Verifier.

Use this workflow to:

To learn more, see:

See Also

hdladvisor | makehdl

Topics