Supported DSP System Toolbox Blocks with CMSIS Library for ARM Cortex-M Processors
DSP System Toolbox™ Simulink® blocks that work with Embedded Coder® Support Package for ARM® Cortex®-M Processors support code replacement with the CMSIS library only under specific conditions. You must configure the blocks to enable code replacement when generating C code from a model. The support package does not support multi-rate DSP blocks in the ARM CRL library.
Note
In the fixed-point mode of the CMSIS DSP functions (FIR and Biquad filters), Wrap is used for intermediate MAC operations if accumulator result overflows. At the end, the accumulator is right shifted and saturated to the output data type. For discrete FIR and Biquad filter blocks, there is only one overflow setting for accumulator and output. So if overflow happens in accumulation, the simulation result will not match the CMSIS library result. If Overflow Mode is set to
'Wrap'or SaturateOn IntegerOverflow is turned off and only the output overflows, the simulation result will also not match the CMSIS library result.The DSP System Toolbox blocks configured for code replacement using the CMSIS library throw an error when there is an overflow in the SRAM buffer on the PIL or hardware.
The DSP System Toolbox blocks support code replacement using the CMSIS library when you configure the blocks as shown in the following table.
| DSP block | Supported data types | Input/Output requirements | Parameter requirements | Wrapper calling CMSIS functions |
|---|---|---|---|---|
| Discrete FIR Filter |
Note The |
|
For fixed-point Discrete FIR Filter block with
|
|
| FIR Decimation (DSP System Toolbox) |
|
|
|
|
| FIR Interpolation (DSP System Toolbox) |
|
|
|
|
| LMS Filter (DSP System Toolbox) |
|
|
|
If the algorithm is
|
| Biquad Filter (DSP System Toolbox) |
|
|
For fixed-point support for
|
|
| FFT (DSP System Toolbox) |
|
|
|
|
| IFFT (DSP System Toolbox) |
|
|
|
|
| Correlation (DSP System Toolbox) Convolution (DSP System Toolbox) |
|
|
|
|
| Mean (DSP System Toolbox) RMS (DSP System Toolbox) Variance (DSP System Toolbox) Standard Deviation (DSP System Toolbox) |
|
|
|
|
| Second-Order Section Filter (DSP System Toolbox) |
|
|
|
|
See Also
Supported DSP System Toolbox System Objects with CMSIS Library for ARM Cortex-M Processors