Intel® High Level Synthesis Compiler Standard Edition: Reference Manual
Visible to Intel only — GUID: xvz1572914780390
Ixiasoft
Visible to Intel only — GUID: xvz1572914780390
Ixiasoft
6.5. Loop Unrolling (unroll Pragma)
Example code:
1 #pragma unroll <N> 2 for (int i = 0; i < M; ++i) { 3 // Some useful work 4 }
In this example, N specifies the unroll factor, that is, the number of copies of the loop that the HLS compiler generates. If you do not specify an unroll factor, the HLS compiler unrolls the loop fully. You can find the unroll status of each loop in the high level design report (report.html).