Burst Inference Failure 10 - 2024.2 English

Vitis HLS Messaging (UG1448)

Document ID
UG1448
Release Date
2024-11-13
Version
2024.2 English

Description

Warning: [214-232] Access on name is in the conditional branch (DebugLoc).
Name
Name of array

Explanation

Conditional accesses can prevent burst inferences. Consider rewriting the code to avoid conditional accesses to the M_AXI array.

Example

//////////// ORIGINAL ////////////
void foo(int *a) {
  int buff[256];
  for (long i = 0; i < 256; ++i) {
    if (i <= 6)
      buff[i] = a[i];
    ...
  }
  ...
}
 
//////////// UPDATED ////////////
// Remove conditional accesses
void foo(int *a) {
  int buff[256];
  for (long i = 0; i < 7; ++i)
    buff[i] = a[i];
 
  for (long i = 0; i < 256; ++i) {
    ...
  }
  ...
}