Main Content

Simulink Blocks in DSP System Toolbox that Support SIMD Code Generation

When certain conditions are met, you can generate SIMD code using Intel AVX2 technology from certain Simulink® blocks in DSP System Toolbox™. For information on how to generate SIMD code from Simulink blocks, see Generate High Performance SIMD Code on Intel from Simulink Blocks in DSP System Toolbox.

The following table contains a list of Simulink blocks in DSP System Toolbox that support SIMD code generation. The table also details the conditions under which the support is available.

Simulink blocksConditions
Arbitrary Response Filter
  • Filter type is set to Single-rate, Decimator, or Interpolator.

  • For Filter type that is set to Single-rate, Structure is set to Direct-form FIR or Direct-form FIR transposed.

  • For Filter type that is set to Decimator, Structure is set to Direct-form FIR polyphase decimator and Rate options is set to Enforce single-rate processing.

  • For Filter type that is set to Interpolator, Rate options is set to Enforce single-rate processing.

  • Input processing is set to Columns as channels (frame based).

  • Input signal has a data type of single or double.

Analytic Signal
  • Input processing is set to Columns as channels (frame based).

  • Input signal has to be real-valued.

  • Input signal has a data type of single or double.

Bandpass Filter
  • Impulse response is set to FIR.

  • Filter type is set to Single-rate.

  • Structure is set to Direct-form FIR or Direct-form FIR transposed.

  • Use basic elements to enable filter customization parameter is not selected.

  • Input processing is set to Columns as channels (frame based).

  • Input signal has a data type of single or double.

Bandstop Filter
  • Impulse response is set to FIR.

  • Filter type is set to Single-rate.

  • Structure is set to Direct-form FIR or Direct-form FIR transposed.

  • Use basic elements to enable filter customization parameter is not selected.

  • Input processing is set to Columns as channels (frame based).

  • Input signal has a data type of single or double.

Complex Bandpass Decimator
  • Input signal is complex-valued.

  • Input signal has a data type of single or double.

DC Blocker
  • Input signal has a data type of single or double.

Differentiator Filter
  • Input signal has a data type of single or double.

Digital Filter Design
  • Input processing is set to Columns as channels (frame based).

  • Filter Structure (in Import Filter from Workspace pane) is set to Direct-Form FIR. You can generate SIMD code even when the filter is a Direct-Form FIR Transposed filter. To create a Direct-Form FIR Transposed filter, select Edit > Convert Structure, and click Direct-Form FIR Transposed.

  • Input signal has a data type of single or double.

Discrete FIR Filter (Simulink)
  • Filter structure is set to Direct form or Direct form transposed.

  • Input processing is set to Columns as channels (frame based).

  • Input signal is real-valued with real filter coefficients.

  • When Filter structure is set to Direct form, the input signal can also be complex-valued with real or complex filter coefficients.

  • Input signal has a data type of single or double.

FIR Decimation
  • Filter structure is set to Direct form.

  • Input processing is set to Columns as channels (frame based).

  • Rate options is set to Enforce single-rate processing.

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

  • Input signal is real-valued with real filter coefficients.

  • Input signal is complex-valued with real or complex filter coefficients.

  • Input signal has a data type of single or double.

FIR Halfband Interpolator
  • Input signal has a data type of single or double.

FIR Interpolation
  • Input processing is set to Columns as channels (frame based).

  • Rate options is set to Enforce single-rate processing.

  • Input signal is real-valued with real filter coefficients.

  • Input signal is complex-valued with real or complex filter coefficients.

  • Input signal has a data type of single or double.

Highpass Filter
  • Filter type is set to FIR.

  • Input signal has a data type of single or double.

Hilbert Filter
  • Filter type is set to Single-rate, Decimator, or Interpolator.

  • For Filter type that is set to Single-rate, Structure is set to Direct-form FIR or Direct-form FIR transposed.

  • For Filter type that is set to Decimator, Structure is set to Direct-form FIR polyphase decimator and Rate options is set to Enforce single-rate processing.

  • For Filter type that is set to Interpolator:

    • Interpolation Factor cannot be equal to 1.

    • Rate options is set to Enforce single-rate processing.

  • Input processing is set to Columns as channels (frame based).

  • Input signal has a data type of single or double.

  • Input port dimensions cannot be equal to [1 1].

Inverse Sinc Filter
  • Filter type is set to Single-rate, Decimator, or Interpolator.

  • For Filter type that is set to Single-rate, Structure is set to Direct-form FIR or Direct-form FIR transposed.

  • For Filter type that is set to Decimator, Structure is set to Direct-form FIR polyphase decimator and Rate options is set to Enforce single-rate processing.

  • For Filter type that is set to Interpolator, Rate options is set to Enforce single-rate processing.

  • Input processing is set to Columns as channels (frame based).

  • Input signal has a data type of single or double.

LMS Filter
  • Algorithm parameter is set to LMS or Normalized LMS.

  • Input signal is real-valued.

  • Input signal has a data type of single or double.

Lowpass Filter
  • Filter type is set to FIR.

  • Input signal has a data type of single or double.

Nyquist Filter
  • Filter type is set to Single-rate, Decimator, or Interpolator.

  • For Filter type that is set to Single-rate, Structure is set to Direct-form FIR or Direct-form FIR transposed.

  • For Filter type that is set to Decimator, Structure is set to Direct-form FIR polyphase decimator and Rate options is set to Enforce single-rate processing.

  • For Filter type that is set to Interpolator:

    • Interpolation Factor cannot be equal to 1.

    • Rate options is set to Enforce single-rate processing.

  • Input processing is set to Columns as channels (frame based).

  • Input signal has a data type of single or double.

  • Input port dimensions cannot be equal to [1 1].

Sample-Rate Converter
  • For upsampling, the ratio of output sample rate to input sample rate must be an integer.

  • For downsampling, the ratio of input sample rate to output sample rate must be an integer.

  • Input signal has a data type of single or double.

Variable Bandwidth FIR Filter
  • Input signal has a data type of single or double.

Related Topics