3.6.3.9 SHLS-19

Message

Warning: (SHLS-19) User specified field partitioning for '{variable}' on {location} is ignored because the specified partition dimension: {mem_dim} exceeds the memory number of dimensions: {mem_dim}.

This message occurs when the dimension specified in the #pragma memory partition exceeds the actual dimension of the variable.

/*****************************************************************
 *  This example is expected to result in
 *  - Code  : SHLS-19
 *  - Type  : Warning
 *  - Cause : Memory partitioning on invalid dimension is requested
 *****************************************************************/
#pragma HLS memory partition variable(array) type(complete) dim(2)
int array[10];

void DUT() {
    #pragma HLS function top
    for (int i = 0; i < 10; i++) {
        array[i] *= 2;
    }
}

Related to: Memory Partitioning