Loop Unroll - Multiple Constraints - 2020.2 English

Vitis HLS Messaging (UG1448)

Document ID
UG1448
Release Date
2020-11-24
Version
2020.2 English

Description

This message is to inform the user that the code is violating loop unrolling optimization rules.

Explanation

The tool is ignoring multiple unrolling optimization constraints. This happens when the constraints defined are in the same scope as shown below.

for(int i=0;i<var;i++)
{
#pragma HLS unroll
...
...
#pragma HLS unroll factor =8
...
...
}

Solution

Review the multiple conflicting pragmas in the same scope and remove either one of them.