MATLAB 语言支持
本页提供支持高级综合代码生成的 MATLAB 函数和语言语法。如果 MATLAB 算法使用不受支持的函数,您可通过用查找表逼近替换该函数来生成代码。请参阅Replacing Functions Using Lookup Table Approximations。
主题
- 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.