I’m trying to get familiar with the SPT core and like to use the scalar product command.
The goal is to perform 8 multiply operations and compute the sum (don’t care about the Im() parts, set to 0).
In Matlab R2018b, I installed the “NXP_radar_Toolbox_for_S32R” toolkit, and tried the following:
a = [0,1,2,3,4,5,6,7];
c = [1,1,1,1,1,1,1,1];
M_Op = complex (a, 0)
M_Coeff = complex(c, 0)
no_of_taps = 8;
shft_val = 0;
M_Out = scp_mex(M_Coeff, M_Op, no_of_taps, shft_val)
Which gives me the result:
M_Out = 0.0000 + 0.0000i
But I would expect 0*1 + 1*1 + 2*1 + 3*1 + 4*1 + 5*1 + 6*1 + 7*1 = 28
What am I missing?