Burst Inference Failure 10 - 2020.2 English

Vitis HLS Messaging (UG1448)

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

Explanation

Conditional accesses may 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) {
    ...
  }
  ...
}