Loop Rewind - Conditional Execution - 2020.1 English

Vitis HLS Messaging (UG1448)

Document ID
UG1448
Release Date
2020-06-03
Version
2020.1 English

Description

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

Explanation

Loop rewind optimization does not support conditional executions of a loop as shown in the below code.

func()
{
if(var)
{
  for(...)
  {
    #pragma HLS pipeline rewind
    ...
    }
}
}

Solution

Move the conditional statement either inside the loop or execute this function conditionally.