3.6.3.10 SHLS-20

Message

Warning: (SHLS-20) User specified field partitioning for '{variable}' on {location} is ignored because the specified partition factor: {partition_factor} is invalid.

The message appears when an invalid factor is specified in #pragma HLS memory partition. The factor represents the number of partitions, and valid input values must be integers greater than 1.

/*****************************************************************
 *  This example is expected to result in
 *  - Code  : SHLS-20
 *  - Type  : Warning
 *  - Cause : Memory partitioning factor <=1 is specified.
 *            Could happen to both 'block' and 'cyclic' partitioning.
 *****************************************************************/
#pragma HLS memory partition variable(array) type(cyclic) factor(0)
int array[10];

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

Related to: Memory Partitioning