HLS 代码生成基础知识
R2026b从 MATLAB® 代码生成高级综合代码
您可以使用 HDL Coder™ 从 MATLAB 代码生成高级综合 (HLS) 代码。HDL 工作流顾问生成 HLS 代码并使用综合工具综合生成的代码。
工具
| 工作流顾问 | Generate synthesizable HLS code and test benches from MATLAB code (自 R2022a 起) |
函数
codegen | 从 MATLAB 代码生成 HDL 或高级综合 (HLS) 代码 |
coder.config | 创建 HDL Coder 代码生成配置对象 |
hdlsetuphlstoolpath | Set up system environment to access High-Level Synthesis (HLS) software (自 R2022a 起) |
convertToHlsConfig | Convert coder.HdlConfig object to
coder.HlsConfig object (自 R2026b 起) |
mlhdlc_demo_setup | Copy demo example files to the current or specified directory (自 R2026b 起) |
对象
coder.HlsConfig | HLS code generation configuration object configuration object (自 R2026b 起) |
主题
- Workflows in HDL Workflow Advisor
Learn about the HDL Workflow Advisor workflows and the platforms you can target.
- Specify Properties of Entry-Point Function Inputs
Specify input types so that the code generator can determine the types of all variables.
- HLS Code Generation Report
High-Level Synthesis (HLS) code generation report.
- Call Custom HLS Code from the Generated HLS Code
Integrate C/C++ code with MATLAB code intended for code generation.
- Replace MATLAB Functions with Custom Code for HLS Code Generation
Replace MATLAB functions with custom C/C++ implementations during HLS code generation by using a Code Replacement Library. (自 R2026b 起)
- Array Layouts for HLS Code Generation
Generate HLS code in row-major or column-major array layouts.
- Generate Code for Global Variables
Generate C/C++ code from MATLAB code that uses global data.

