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,237 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,211 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
2,034 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
2,021 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,122 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
2,095 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,190 Views
Kiran_Gowda
Contributor I

Thank you

 

0 Kudos
Reply
2,212 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
An error has occurred when reading existing sub-variable "Language_PG_Configuration"; see cause exception! The type of the containing value was: extended_hash+string (lithium.coreapi.webui.template.models.NamedValueByNameTemplateModel wrapped into f.e.b.StringModel) ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign redirect_lingo_page_url = web... [in template "language_macro_header.ftl" at line 173, column 1] - Reached through: #include "language_macro_header.ftl" [in template "Language_translator_Dashboard" at line 3, column 1] ----