主要内容

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

DSP System Toolbox™ system objects that work with the Embedded Coder® Support Package for ARM® Cortex®-A Processors support code replacement with the CMSIS library only under specific conditions. You use this code replacement when generating C code from a model.

Note

The DSP System Toolbox System objects 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 System objects support code replacement using the CMSIS library when you configure the System object as shown in the following table.

DSP System objectSupported Data TypesInput/Output SpecificationsProperty SpecificationsWrapper Calling CMSIS Functions
dsp.FIRFilter (DSP System Toolbox)
  • 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.

  • Structure: Direct Form

For 'Direct Form' Structure:

  • NumeratorSource: Property or Input port

  • For fixed-point inputs, set the OverflowAction property to Saturate.

'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

dsp.FIRDecimator (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.

  • Structure: Direct Form

  • AllowArbitraryInputLength: false

  • CoefficientSource: Property or Input port(s)

  • For fixed-point inputs, set the OverflowAction property to Saturate.

'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

dsp.SOSFilter (DSP System Toolbox)
  • double

  • 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.

  • Structure: Direct Form I or Direct Form II transposed

  • CoefficientSource: Property or Input port

  • HasScaleValues: false after setting CoefficientSource: Input port

  • For fixed-point inputs, set the OverflowAction to Saturate.

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

  • mw_arm_biquad_cascade_df1_init_q31

  • mw_arm_biquad_cascade_df1_q31

  • mw_arm_biquad_cascade_df1_init_q15

  • mw_arm_biquad_cascade_df1_q15

Direct Form II Transposed structure:

  • mw_arm_biquad_cascade_df2T_init_f64

  • mw_arm_biquad_cascade_df2T_f64

dsp.FFT (DSP System Toolbox)
  • double

  • single

  • Single or multi channel.

  • Input length must be equal to FFT length.

  • Inputs must be complex.

  • FFTImplementation: Radix-2

  • BitReversedOutput: false

  • Normalize: false

  • FFTLength: 16, 32, 64, 128, 256, 512, or 1024.

'Direct Form' structure:

  • mw_arm_cfft_init_f64

  • mw_arm_cfft_f64

  • mw_arm_cfft_init_f32

  • mw_arm_cfft_f32

dsp.IFFT (DSP System Toolbox)
  • double

  • single

  • Single or multi channel.

  • Input length must be equal to FFT length.

  • Inputs must be complex.

  • FFTImplementation: Radix-2 or Auto with power of two transform lengths.

  • BitReversedInput: false

  • Normalize: true

  • FFTLength: 16, 32, 64, 128, 256, 512, or 1024.

  • mw_arm_cfft_init_f64

  • mw_arm_cfft_f64

  • mw_arm_cfft_init_f32

  • mw_arm_cfft_f32

dsp.FIRInterpolator (DSP System Toolbox)
  • single

  • fixdt(true,16,*)

  • Single channel

  • Real inputs

  • Real outputs

  • Inputs, coefficients, and outputs must be of same data type.

  • Set NumeratorSource property to "Property" or "Input port".

  • Set CoefficientsDataType to numerictype(1,16,15)q(15)

For q15 fixed-point inputs:

  • Set ProductDataType to numerictype(1,32,15).

  • Set AccumlatorDataType to numerictype(1,64,30).

  • Set CustomCoefficientsDataType to numerictype([],16,15).

  • Set CustomAccumulatorDataType to numerictype([],32,30).

  • Set CustomProductDataType to numerictype([],32,30).

  • mw_arm_fir_interpolate_init_f32

  • mw_arm_fir_interpolate_f32

  • mw_arm_fir_interpolate_init_q15

  • mw_arm_fir_interpolate_q15