How to enable SIMD on the S32K358

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to enable SIMD on the S32K358

ソリューションへジャンプ
2,205件の閲覧回数
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,179件の閲覧回数
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,002件の閲覧回数
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,989件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Kiran,

Please contact ARM support.

https://www.arm.com/support

 

Thank you,

BR, Daniel

0 件の賞賛
返信
2,090件の閲覧回数
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,063件の閲覧回数
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,158件の閲覧回数
Kiran_Gowda
Contributor I

Thank you

 

0 件の賞賛
返信
2,180件の閲覧回数
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 件の賞賛
返信