Loop Unroll - Multiple Constraints - 2022.1 English

Vitis HLS Messaging (UG1448)

Document ID
UG1448
Release Date
2022-06-22
Version
2022.1 English

Description

This message reports 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 one of them.