Main Content

HDL Code Generation

Generate HDL code from MATLAB®and Simulink®

To implement a DSP design on FPGAs or ASICs, you can use either HDL Coder™ or Filter Design HDL Coder™. Both products generate synthesizable and portable VHDL®and Verilog®code, and also generate VHDL and Verilog test benches for quickly simulating, testing, and verifying the generated code.

  • HDL Coder— Generate code from Simulink or MATLAB designs. Supported blocks in DSP System Toolbox™ andDSP HDL Toolboxinclude filters, math and signal operations, and other algorithms optimized for resource use and performance, such as theFFT(DSP HDL Toolbox),Discrete FIR Filter(DSP HDL Toolbox), andNCO(DSP HDL Toolbox)blocks. For a basic example of how to generate HDL code using HDL Coder, seeProgrammable FIR Filter for FPGA. For an introduction to DSP HDL Toolbox™, seeImplement FFT Algorithm for FPGA(DSP HDL Toolbox).

  • Filter Design HDL Coder— Generate code from MATLAB filter designs. You can access code and test bench generation features using the Generate HDL user interface, or by using command-line options. These features are also integrated with theFilter Designerapp. For an example of how to generate HDL code using Filter Design HDL Coder, seeHDL Butterworth Filter(Filter Design HDL Coder).

To debug your designs in Simulink or MATLAB, use theLogic Analyzerwaveform viewer.

Simulink Visualization Tool

Logic Analyzer Visualize, measure, and analyze transitions and states over time

Topics

Related Information