MATLAB 语言支持
本页提供支持 HDL 代码生成的 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.
- 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 HLS Code Generation
HDL Coder™ supports bit shift, bit rotate, bit slice operations that mimic HDL-specific operators without saturation and rounding logic.
- 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.
- 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 HLS Code
Guidelines for writing efficient MATLAB code and design requirements for efficient HDL and High-Level Synthesis (HLS) code generation.
- For-Loop Best Practices for HDL Code Generation
Best practices when using for loops in your MATLAB code for HDL code generation.