Conflicting Constraints - 2020.2 English

Vitis HLS Messaging (UG1448)

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

Description

The tool is ignoring the array partition directive because of conflicting pragmas

Solution

Usage of conflicting pragmas in the user code is leading to ignoring the array partition constraint.

Review the pragmas and remove either one of them. Here is the code which may lead to this warning:

void cnn( long *pixel, // Input pixel
  int *weights, // Input Weight Matrix
  long *out, // Output pixel
  ... // Other input or Output ports
            
...
int A[256];
#pragma HLS RESOURCE variable=A core=BRAM_T2P latency=3
#pragma HLS ARRAY_RESHAPE variable=A complete dim=1