MATLAB 设计最佳做法
R2026b编写 MATLAB® 代码以进行 HDL 代码生成的规范
在编写代码时,请遵循最佳做法和规范以编写高效的 MATLAB 代码来生成 HDL 代码。
主题
- 编写 MATLAB 代码以生成高效 HDL 和 HLS 代码的规范
编写高效 MATLAB 代码的规范以及高效 HDL 和高级综合 (HLS) 代码生成的设计要求。
- Using Test Benches With HDL and HLS Code Generation
MATLAB test bench requirements and best practices for HDL and High-Level Synthesis (HLS) code generation.
- Indexing Best Practices for HDL Code Generation
Best practices when performing indexing operations in your MATLAB algorithms for HDL code generation.
- For-Loop Best Practices for HDL Code Generation
Best practices when using for loops in your MATLAB code for HDL 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.
- 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.