MATLAB 循环优化
R2026b优化 MATLAB 代码中的循环
HDL Coder 中的循环优化涉及流式处理或展开循环,以平衡硬件面积和速度。循环流式处理通过重用循环体来节省硬件资源。循环展开通过复制循环体来提高速度。
函数
coder.hdl.loopspec | Unroll or stream loops in generated HDL and High-Level Synthesis (HLS) code |
主题
- Optimize MATLAB Loops
Optimize loops for area or speed.
- Loop Streaming to Reduce Area
This example shows how to use the design-level loop streaming optimization in HDL Coder™ to reduce area.
