Embedded Coder : Code Replacement Function not used/recognized
이전 댓글 표시
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
amin ya
2019년 4월 2일
Any update on this? same problem
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 STMicroelectronics Discovery Boards에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!