Simulink Blocks in DSP System Toolbox that Support SIMD Code Generation
When certain conditions are met, you can generate SIMD code from Simulink® blocks in DSP System Toolbox™ using these two approaches:
The code replacement library
DSP Intel AVX2-FMA
orARM Cortex-A
–– Requires Embedded Coder® license. For more information on this workflow, see Use Intel AVX2 Code Replacement Library to Generate SIMD Code from Simulink Blocks and Optimize Code for ARM Cortex-A Processors (Embedded Coder).The Leverage target hardware instruction set extensions model configuration parameter –– Requires the Simulink Coder™ license or the Embedded Coder license. For more information on this workflow, see Use Target Hardware Instruction Set Extensions to Generate SIMD Code from Simulink Blocks for Intel Platforms and Use Target Hardware Instruction Set Extensions to Generate SIMD Code from Simulink Blocks for ARM Cortex-A Processors.
The following table contains a list of all Simulink blocks in DSP System Toolbox that support SIMD code generation. For more information on the conditions under which these blocks generate SIMD code, see the Extended Capabilities > C/C++ Code Generation sections in the corresponding reference pages.
Simulink blocks | Generate SIMD code using Intel® AVX2 code replacement library | Generate SIMD code using the Leverage target hardware instruction set extensions parameter |
---|---|---|
Analytic Signal | ✓ | Not supported |
Complex Bandpass Decimator | ✓ | Not supported |
DC Blocker | ✓ | Not supported |
Differentiator Filter | ✓ | Not supported |
Digital Filter Design | ✓ | Supports Apple silicon processors, ARM® Cortex®-A processors, and all Intel platforms |
Discrete FIR Filter (Simulink) | ✓ | Supports Apple silicon processors, ARM Cortex-A processors, and all Intel platforms |
FIR Decimation | ✓ | Supports Apple silicon processors, ARM Cortex-A processors, and all Intel platforms |
FIR Halfband Interpolator | ✓ | Not supported |
FIR Interpolation | ✓ | Supports Apple silicon processors, ARM Cortex-A processors, and all Intel platforms |
Highpass Filter | ✓ | Not supported |
LMS Filter | ✓ | Supports Apple silicon processors, ARM Cortex-A processors, and all Intel platforms |
Lowpass Filter | ✓ | Not supported |
Sample-Rate Converter | ✓ | Not supported |
Variable Bandwidth FIR Filter | ✓ | Not supported |