Main Content

HDL Code Generation from MATLAB

Generate HDL Code from MATLAB® algorithms

Implement your MATLAB algorithm in hardware by generating HDL code and deploying that code on an Application-Specific Integrated Circuit (ASIC) or Field Programmable Gate Array (FPGA). Write the MATLAB algorithm with syntax and functions that are compatible with HDL code generation. If the algorithm uses floating-point data, HDL Coder™ helps you to convert it to a fixed-point algorithm. After you generate HDL code and verify that it matches your original algorithm, deploy the HDL code on your target hardware.


  • MATLAB Algorithm Design
    Supported MATLAB syntax and functions, System objects, best practices
  • Fixed-Point Conversion
    Convert floating-point code to fixed-point code, optimize fixed-point data types
  • Native Floating Point
    Generate and verify HDL code from floating-point designs
  • Code Generation
    Generate HDL code and test bench, coding standards and reports, export design for system integration
  • Verification
    Simulation and verification of generated HDL code using HDL test bench, cosimulation, or FPGA-in-the-loop
  • Deployment
    Synthesis scripts and deploy generated HDL code to Intel®, Xilinx®, Microchip, Speedgoat®, and custom FPGA boards
  • Speed and Area Optimization
    Improvements through resource sharing, streaming, pipelining, RAM mapping