3.5.1.4 SmartHLS Pragmas

Pragmas are applied to the software code by the user to apply HLS optimization techniques and/or guide the compiler for hardware generation. They are applied directly on the applicable software construct (for example, function, loop, argument, array) to specify a certain optimization for them. For example, to apply pipelining on a loop:

#pragma HLS loop pipeline
for (i = 1; i < N; i++) {
    a[i] = a[i-1] + 2
}

For more information on the supported pragmas, see SmartHLS Pragmas Manual. For more information on loop pipelining, see Loop Pipelining.