Performance Pragma - 4 - 2022.2 English

Vitis HLS Messaging (UG1448)

Document ID
Release Date
2022.2 English


Warning: [HLS 214-347] Cannot apply performance pragma target_ti=50 cycles for loop 'VITIS_LOOP_10_1' in function 'top'. The target requires a pipeline II less than the minimal achievable II of 2 determined by the number of accesses on stream 'c' (2 per iteration) (test.cpp:11:9).


There are too many accesses to the specified stream and this prevents an II=1 from being achieved. Consider reducing the number of accesses to the stream in one cycle.

//////////// ORIGINAL //////////// 
void top(int a[1000],
    int b[1000], hls::stream<int> &c) {
  int j;
  int b_buf[1000];
  int a_buf[1000];
  memcpy(b_buf, b, sizeof(b_buf));
  for (j = 0; j < 100; j++) {
#pragma HLS performance target_ti=50
    a_buf[j] = b_buf[j] + +;
  memcpy(a, a_buf, sizeof(a_buf));