Intel® High Level Synthesis Compiler Standard Edition: Best Practices Guide
Visible to Intel only — GUID: rkz1573417493919
Ixiasoft
Visible to Intel only — GUID: rkz1573417493919
Ixiasoft
4.6. Convert Nested Loops into a Single Loop
To maximize performance, combine nested loops into a single loop whenever possible. The control flow for a loop adds overhead both in logic required and FPGA hardware footprint. Combining nested loops into a single loop reduces these aspects, improving the performance of your component.
The following code examples illustrate the conversion of a nested loop into a single loop:
Nested Loop | Converted Single Loop |
---|---|
|
|