MATLAB Language Support
The MATLAB functions and language syntax supported for High-Level Synthesis code generation are available on 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.
Topics
- Functions Supported for HDL and HLS Code Generation
Built-in MATLAB and toolbox functions supported for HDL and High-Level Synthesis (HLS) code generation.
 - Supported MATLAB Data Types, Operators, and Control Flow Statements
Supported data types, operators, and control flow statements for HDL and High-Level Synthesis (HLS) code generation.
 - Bitwise Operations in MATLAB for HDL and HLS Code Generation
HDL Coder™ supports bit shift, bit rotate, bit slice operations that mimic HDL-specific operators without saturation and rounding logic.
 - Mapping of Different Rounding and Overflow Methods from MATLAB to HLS
Mapping rounding and overflow methods form MATLAB to High-Level Synthesis (HLS).
 - Map Persistent Variables and Persistent Arrays to RAM
MATLAB persistent variable and persistent array variable language support language support for HDL and High-Level Synthesis (HLS) code generation.
 - Handling Constants in HDL and HLS Code Generation
Use
coder.constandcoder.loadto handle constants during code generation. - Guidelines for Writing MATLAB Code to Generate Efficient HDL and HLS Code
Guidelines for writing efficient MATLAB code and design requirements for efficient HDL and High-Level Synthesis (HLS) code generation.
 - Replace Arithmetic Operation to Generate Efficient HDL and High-Level Synthesis Code
Best practices for using division operation in your MATLAB code for HDL and High-Level Synthesis (HLS) code generation.