主要内容

MATLAB Loop Optimization

R2026b
Optimize loops in MATLAB code

Loop optimization in HDL Coder involves streaming or unrolling loops to balance hardware area and speed. Loop streaming saves hardware resources by reusing the loop body. Loop unrolling increases speed by duplicating the loop body.

Functions

coder.hdl.loopspecUnroll or stream loops in generated HDL and High-Level Synthesis (HLS) code

Topics

Featured Examples