Embedded Coder : Code Replacement Function not used/recognized
Mostrar comentarios más antiguos
Dear experts,
I am using the Embedded Coder (with Matlab 2013a) for AMR9(E) target. I then wish to use the DSP intrinsics from the ARM and I designed my own Library/Functions (especially for multiplication). I would like these functions to be used at compilation by the coder. I simplified the Matlab code at maximum, with an unique multiplication :
function [ output_mult ] = CRL_mult( in1, in2 )
output_mult = in1 * in2;
end
At Fixed-Point conversion, I well specify the NumericType of both values : NumType(1,32,20) for example, according to the Code Replacement function declaration. Saturate and Rounding modes are also the same between Matlab (Fixed-Point) code and the CRL options. But the Coder does not use my function from the CRL, and generates lots of instructions.
What I could obtain is that the Coder uses one of the gcc_arm9_mul functions (from GCC_ARM9 coder CRL). But it is not suitable for this kind of ARM because of timing issues. I also tried to specify fi(in1, 1, 32, 20) in the Matlab code above, with no success.
Any help would be appreciated.
1 comentario
amin ya
el 2 de Abr. de 2019
Any update on this? same problem
Respuestas (0)
Categorías
Más información sobre STMicroelectronics Discovery Boards en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!