Generate HDL and SystemC code from MATLAB code
The HDL Coder app generates synthesizable HDL code and SystemC code from MATLAB® code that is supported for hardware. You can generate VHDL, Verilog, SystemVerilog, or SystemC 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.
Select the code generation workflow as MATLAB to HDL or MATLAB to SystemC.
Propose input data types or autodefine data types by specifying the MATLAB testbench file.
Convert floating-point MATLAB code to fixed-point HDL code or SystemC code.
Specify the target device and synthesis tool to deploy the generated HDL or SystemC 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.
Verify the numerical behavior of generated SystemC code with HDL test bench.
Synthesize, and place and route the generated HDL code for the specified hardware with the
Integrate your generated HDL IP core with the embedded processor by using
IP Core Generationworkflow.
Generate a programming file and download it to the target device with the
Open the HDL Coder App
MATLAB Toolstrip: On the Apps tab, under Code Generation, click the HDL Coder app icon.
MATLAB command prompt: Enter
HDL Coder app is not available in MATLAB Online™ .
hdlcoder opens the HDL Coder app.
Introduced in R2012a