How to enable SIMD on the S32K358

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to enable SIMD on the S32K358

Jump to solution
2,120 Views
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 Kudos
Reply
1 Solution
2,094 Views
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

 

 

 

 

 

View solution in original post

0 Kudos
Reply
6 Replies
1,917 Views
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 Kudos
Reply
1,904 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Kiran,

Please contact ARM support.

https://www.arm.com/support

 

Thank you,

BR, Daniel

0 Kudos
Reply
2,005 Views
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 Kudos
Reply
1,978 Views
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 Kudos
Reply
2,073 Views
Kiran_Gowda
Contributor I

Thank you

 

0 Kudos
Reply
2,095 Views
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 Kudos
Reply