Hi,
I need to use SIMD instruction on the S32K358 microcontroller. Can you please tell me, how to enable the SIMD support.
Thanks,
Kiran
Solved! Go to Solution.
Hi Kiran,
The CM7 supports 8/16-bit SIMD arithmetic only.
https://developer.arm.com/Processors/Cortex-M7
Refer to this document:
The DSP capabilities of ARM®
Cortex®-M4 and Cortex-M7
Processors
DSP feature set and benchmarks
If you use S32DS with GCC 10.2, include #include "arm_acle.h".
Regards,
Daniel
Hi,
SIMD Instruction : QADD8 Adds four 8-bit values using SIMD. If overflow occurs then the result is saturated. Positive values are
saturated to 0x7F and negative values are saturated to 0x80.. But, in the below case values are not getting saturated.
Can you please explain me, why it is not saturating.
Thank you
Kiran
Hi,
Can you pls tell me, Is there any DSP(SIMD)register to check the status of the instruction after the operation like FPU.
For example, We can check the status of the Invalid operation and divide by zero operation on the FPSCR register.
There is no specific register just for the SIMD instructions.
Have a look at fault exception handling on Cortex M7.
Regards,
Daniel
Thank you
Hi Kiran,
The CM7 supports 8/16-bit SIMD arithmetic only.
https://developer.arm.com/Processors/Cortex-M7
Refer to this document:
The DSP capabilities of ARM®
Cortex®-M4 and Cortex-M7
Processors
DSP feature set and benchmarks
If you use S32DS with GCC 10.2, include #include "arm_acle.h".
Regards,
Daniel