Main Content

HDL Code Generation

Generate HDL code from MATLAB® and Simulink®

To implement a DSP design on FPGAs or ASICs, use HDL Coder™ to generate code from Simulink or MATLAB. The tool generates synthesizable and portable VHDL® and Verilog® code, and also generates VHDL and Verilog test benches for quickly simulating, testing, and verifying the generated code.

Supported blocks in DSP System Toolbox™ and DSP HDL Toolbox include filters, math and signal operations, and other algorithms optimized for resource use and performance, such as the FFT (DSP HDL Toolbox), Discrete FIR Filter (DSP HDL Toolbox), and NCO (DSP HDL Toolbox) blocks. DSP HDL Toolbox™ provides blocks and System objects that implement hardware-friendly architectures. The DSP HDL Toolbox blocks and System objects also have high-throughput streaming interfaces that achieve gigasamples-per-second (GSPS), also called super sample rates, hardware control signals, and options to select different hardware implementations of their algorithms.

For an example of how to generate HDL code from a DSP System Toolbox block using HDL Coder, see Multichannel FIR Filter for FPGA. For an introduction to DSP HDL Toolbox, see Implement FFT Algorithm for FPGA (DSP HDL Toolbox).

To debug your designs in Simulink or MATLAB, use the Logic Analyzer waveform viewer.

Simulink Visualization Tool

Logic AnalyzerVisualize, measure, and analyze transitions and states over time

Topics

Related Information

Featured Examples