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
DSP Intel AVX2-FMA
code replacement library –– Requires Embedded Coder® license. For more information on this workflow, see Use Intel AVX2 Code Replacement Library to Generate SIMD Code from Simulink Blocks.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.
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 |
---|---|---|
Arbitrary Response Filter | ✓ | Not supported |
Analytic Signal | ✓ | Not supported |
Bandpass Filter | ✓ | Not supported |
Bandstop Filter | ✓ | Not supported |
Complex Bandpass Decimator | ✓ | Not supported |
DC Blocker | ✓ | Not supported |
Differentiator Filter | ✓ | Not supported |
Digital Filter Design | ✓ | Not supported |
Discrete FIR Filter (Simulink) | ✓ | Supports all Intel platforms |
FIR Decimation | ✓ | Supports all Intel platforms |
FIR Halfband Interpolator | ✓ | Not supported |
FIR Interpolation | ✓ | Supports all Intel platforms |
Highpass Filter | ✓ | Not supported |
Hilbert Filter | ✓ | Not supported |
Inverse Sinc Filter | ✓ | Not supported |
LMS Filter | ✓ | Supports all Intel platforms |
Lowpass Filter | ✓ | Not supported |
Nyquist Filter | ✓ | Not supported |
Sample-Rate Converter | ✓ | Not supported |
Variable Bandwidth FIR Filter | ✓ | Not supported |