Main Content

HDL Coder

Generate HDL code from MATLAB code

Description

The HDL Coder app generates synthesizable HDL code from MATLAB® code that is supported for hardware. You can generate VHDL or Verilog HDL code that you can integrate into existing HDL applications outside of MATLAB.

The workflow-based user interface steps you through the code generation process. Using the app, you can:

  • Create a project or open an existing HDL Coder™ project.

  • Specify the MATLAB function and the MATLAB testbench for your project.

  • Propose input data types or autodefine data types by specifying the MATLAB testbench file.

  • Convert floating-point MATLAB code to fixed-point HDL code.

  • Specify the target device and synthesis tool to deploy the generated HDL code on the target hardware.

  • Access generated files and view code generation reports.

  • Verify the numerical behavior of generated HDL code with HDL test bench, cosimulation, or FPGA-in-the loop.

  • Synthesize, and place and route the generated HDL code for the specified hardware with the Generic ASIC/FPGA workflow.

  • Integrate your generated HDL IP core with the embedded processor by using IP Core Generation workflow.

  • Generate a programming file and download it to the target device with the FPGA Turnkey workflow.

HDL Coder app

Open the HDL Coder App

  • MATLAB Toolstrip: On the Apps tab, under Code Generation, click the HDL Coder app icon.

  • MATLAB command prompt: Enter hdlcoder.

Programmatic Use

expand all

hdlcoder opens the HDL Coder app.

Introduced in R2012a