How to enable SIMD on the S32K358

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to enable SIMD on the S32K358

跳至解决方案
2,208 次查看
Kiran_Gowda
Contributor I

Hi,

I need to use SIMD instruction on the S32K358 microcontroller. Can you please tell me, how to enable the SIMD support.

Thanks,

Kiran

0 项奖励
回复
1 解答
2,182 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Kiran,

The CM7 supports 8/16-bit SIMD arithmetic only.

danielmartynek_0-1690553851641.png

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

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwi8jLWfzLGAA...

 

danielmartynek_1-1690553935670.png

If you use S32DS with GCC 10.2, include #include "arm_acle.h".

 

Regards,

Daniel

 

 

 

 

 

在原帖中查看解决方案

0 项奖励
回复
6 回复数
2,005 次查看
Kiran_Gowda
Contributor I

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.

Kiran_Gowda_0-1693319316653.png

Can you please explain me, why it is not saturating.

Thank you

Kiran

 

0 项奖励
回复
1,992 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Kiran,

Please contact ARM support.

https://www.arm.com/support

 

Thank you,

BR, Daniel

0 项奖励
回复
2,093 次查看
Kiran_Gowda
Contributor I

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.

0 项奖励
回复
2,066 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

There is no specific register just for the SIMD instructions.

Have a look at fault exception handling on Cortex M7.

 

Regards,

Daniel

0 项奖励
回复
2,161 次查看
Kiran_Gowda
Contributor I

Thank you

 

0 项奖励
回复
2,183 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Kiran,

The CM7 supports 8/16-bit SIMD arithmetic only.

danielmartynek_0-1690553851641.png

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

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwi8jLWfzLGAA...

 

danielmartynek_1-1690553935670.png

If you use S32DS with GCC 10.2, include #include "arm_acle.h".

 

Regards,

Daniel

 

 

 

 

 

0 项奖励
回复