MATLAB Language Support
The MATLAB functions and language syntax supported for HDL code generation are available from this page. If your MATLAB algorithm uses an unsupported function, you can generate code by replacing the function with a lookup table approximation. See Replacing Functions Using Lookup Table Approximations.
Functions
Topics
- Functions Supported for HDL and SystemC Code Generation
Built-in MATLAB and toolbox functions supported for HDL and SystemC code generation.
- Supported MATLAB Data Types, Operators, and Control Flow Statements
Supported data types, operators, and control flow statements for HDL and SystemC code generation.
- Complex Data Type Support
Describes how complex signals and operations in MATLAB code map to generated HDL code.
- Bitwise Operations in MATLAB for HDL and SystemC Code Generation
HDL Coder™ supports bit shift, bit rotate, bit slice operations that mimic HDL-specific and SystemC-specific operators without saturation and rounding logic.
- Persistent Variables and Persistent Array Variables
MATLAB persistent variable and persistent array variable language support language support for HDL and SystemC code generation.
- Load constants from a MAT-File
Use the coder.load function to load constants from a MAT-file.
- Guidelines for Writing MATLAB Code to Generate Efficient HDL and SystemC Code
Guidelines for writing efficient MATLAB code and design requirements for efficient HDL and SystemC code generation.
- For-Loop Best Practices for HDL Code Generation
Best practices when using for loops in your MATLAB code for HDL code generation.