3.6.3.21 SHLS-40
(Ask a Question)Message
Warning: (SHLS-40) Argument '{argument|argument_index}' in '{function}' is not read or written, or has been assigned but never been used. This is not allowed in the dataflow subfunction. Please restructure your code to fix this.
/***************************************************************** * This example is expected to result in * - Code : SHLS-40 * - Type : Warning * - Cause : Unused argument 'out2' in dataflow subfunction subf() *****************************************************************/ #define NELEM 10 void subf(int in[NELEM], int out1[NELEM], int out2[NELEM]) { #pragma HLS loop pipeline for (int i = 0; i < NELEM; i++) { out1[i] = in[i] + 1; } } void DUT(int in[NELEM], int out[NELEM]) { #pragma HLS function top dataflow int tmp[NELEM]; subf(in, tmp, out); }
Related to: Data Flow Parallelism
