Forum Discussion
Altera_Forum
Honored Contributor
7 years agoThanks HRZ
Did you mean I have to change code like this ? and do you know why report.html tells that my DSP usage is 512 when I use 64x16 unroll MAC ? __kernel __attribute__((task)) void mul(){# pragma unroll for(int i=0 ; i<64 ; i++){ # pragma unroll for(int j=0 ; j<8; j++){ partial_sum += (short) ((w_in[j] * d_in[j]) + (w_in[j+8] * d_in[j+8])); } }