ADua0
Occasional Contributor
6 years agoDsp utilization for arithmetic operations
I am trying doing accumulation and multiplication operations on 8 bit of data.
"for(int i =0 ;i<4;i++)
{
sum[i] += inp1[i] * inp2[i];
}
"
now both my inp1 and inp2 are 8 bit of data , and sum is 20 bits to. But somehow when I compile my code it is using dsp for multiplication , but of addition it is using luts. But for floating point 32 bits operations I have seen it using 1 dsp only for 1 accumulation and 1 multiplication. Is there a way where I can use dsp for addition instead of luts ?