Main Content

Supported DSP System Toolbox Blocks with CMSIS Library for ARM Cortex-A Processors

DSP System Toolbox™ Simulink® blocks that can be used with the Embedded Coder® Support Package for ARM® Cortex®-A Processors require specific conditions to allow code replacement with the CMSIS Library. You use this code replacement when generating C code from a model. The support package do not support any multi-rate DSP blocks in the ARM CRL library. The CMSIS library supports these DSP blocks only when you set specific properties, as indicated in the following table:

Note

The DSP block implementation causes an error when there is an overflow in the SRAM buffer on the PIL or hardware.

DSP blockSupported data typesInput/Output specificationsParameter specificationsWrapper calling CMSIS functions
Discrete FIR Filter
  • double

  • single

  • fixdt(true,32,31)

  • fixdt(true,16,15)

  • fixdt(true,8,7)

  • Real inputs

  • Real outputs

  • Input and output must be of the same data type.

  • Input and output and coefficients must be of the same data type.

  • Filter structure: Direct Form

  • Input processing: Columns as channels (frame based).

  • Coefficients source: Dialog parameters or Input port(s).

  • For fixed-point inputs, you must enable Saturate on integer overflow. For floating-point inputs, you enable or disable this option.

'Direct Form' structure:

  • mw_arm_fir_f64

  • mw_arm_fir_init_f64

  • mw_arm_fir_f32

  • mw_arm_fir_init_f32

  • mw_arm_fir_init_q31

  • mw_arm_fir_q31

  • mw_arm_fir_init_q15

  • mw_arm_fir_q15

  • mw_arm_fir_init_q7

  • mw_arm_fir_q7

FIR Decimation (DSP System Toolbox)
  • single

  • fixdt(true,32,31)

  • fixdt(true,16,15)

  • Real inputs

  • Real outputs

  • Input and output must be of the same data type.

  • Input and output and coefficients must be of the same data type.

  • Coefficients source: Dialog parameters or Input port(s).

  • Filter structure: Direct Form

  • Input processing: Columns as channels (frame-based).

  • Rate options: Enforce single-rate processing.

  • Allow arbitrary frame length for fixed-size input signals: Clear the parameter.

  • For fixed-point inputs, you must enable Saturate on integer overflow. For floating-point inputs, you enable or disable this option.

'Direct Form' structure:

  • mw_arm_fir_decimate_init_f32

  • mw_arm_fir_decimate_f32

  • mw_arm_fir_decimate_init_q31

  • mw_arm_fir_decimate_q31

  • mw_arm_fir_decimate_init_q15

  • mw_arm_fir_decimate_q15

Second-Order Section Filter (DSP System Toolbox)
  • double

  • single

  • Real inputs

  • Real outputs

  • Input and output must be of the same data type.

  • Input and output and coefficients must be of the same data type.

  • Coefficients source: Dialog parameters or Input port(s).

    • Restriction: If Coefficient source is Input port(s), replacement occurs only when Scale value mode is set to Assume all are unity and optimize.

  • Filter structure: Direct Form I or Direct Form II transposed.

  • Input processing: Columns as channels (frame based).

'Direct Form I' structure:

  • mw_arm_biquad_cascade_df1_init_f64

  • mw_arm_biquad_cascade_df1_f64

  • mw_arm_biquad_cascade_df1_init_f32

  • mw_arm_biquad_cascade_df1_f32

'Direct Form II Transposed' structure:

  • mw_arm_biquad_cascade_df2T_init_f64

  • mw_arm_biquad_cascade_df2T_f64