Products & Services Solutions Academia Support User Community Company

Learn more about Signal Processing Blockset   

CIC Decimation - Decimate signal using Cascaded Integrator-Comb filter

Library

Filtering / Multirate Filters

dspmlti4

Description

The CIC Decimation block performs a sample rate decrease (decimation) on an input signal by an integer factor. Cascaded Integrator-Comb (CIC) filters are a class of linear phase FIR filters comprised of a comb part and an integrator part.

The transfer function of a CIC decimator filter is

where

The CIC Decimation block supports real and complex fixed-point inputs. Each channel of a complex input is treated as two real input channels.

CIC Filter Structure

The filter structures supported by the CIC Decimation and CIC Interpolation blocks exactly match those created by Filter Design Toolbox mfilt CIC objects. If you have the Filter Design Toolbox and Fixed-Point Toolbox products installed, you can create an mfilt object in any workspace to specify in the Multirate filter variable parameter of this block. Otherwise, you can specify the CIC filter completely using only block dialog parameters.

This block can be used to create the following CIC filter structure. This decimator has a latency of N, where N is the number of sections in either the comb or the integrator part of the filter.

Examples

The GSM Digital Down Converter demo provides an example of using the CIC Decimation block.

Dialog Box

Coefficient Source

The CIC Decimation block can operate in two different modes. Select the mode in the Coefficient source group box. If you select

Different items appear on the CIC Decimation block dialog depending on whether you select Dialog parameters or Multirate filter object (MFILT) in the Coefficient source group box. See the following sections for details:

Specify Filter Characteristics in Dialog

The Main pane of the CIC Decimation block dialog appears as follows when Dialog parameters is selected in the Coefficient source group box.

Decimation factor (R)

Specify the decimation factor of the filter.

Differential delay (M)

Specify the differential delay of the comb part of the filter, M, as shown in the diagram in CIC Filter Structure.

Number of sections (N)

Specify the number of filter sections. This number is equal to the number of sections in either the comb part of the filter or in the integrator part of the filter. This value is not equal to the total number of sections in the comb and integrator parts combined.

Data type specification mode

Choose how you specify the fixed-point word length and fraction length of the filter sections and/or output.

  • Full precision — In this mode, the word and fraction lengths of the filter sections and outputs are automatically selected for you. All word lengths are set to

    where

    • I = input word length

    • M = differential delay

    • N = number of sections

    • R = decimation factor

    All fraction lengths are set to the input fraction length.

  • Minimum section word lengths — In this mode, you specify the word length of the filter output in the Output word length parameter. The word lengths of the filter sections and all fraction lengths are automatically selected for you such that each of the section word lengths is as small as possible. The precision of each filter section is less than in Full precision mode, but the range of each section is preserved.

  • Specify word lengths — In this mode you specify the word lengths of the filter sections and output in the Section word lengths and Output word length parameters. The fraction lengths of the filter sections and output are automatically selected for you such that when least significant bits are discarded at each section, the range of that section is preserved.

  • Binary point scaling — In this mode you fully specify the word and fraction lengths of the filter sections and output in the Section word lengths, Section fraction lengths, Output word length, and Output fraction length parameters.

Section word lengths

Specify the word length, in bits, of the filter sections.

This parameter is only visible if Specify word lengths or Binary point scaling is selected for the Data type specification mode parameter.

Section fraction lengths

Specify the fraction length of the filter sections.

This parameter is only visible if Binary point scaling is selected for the Data type specification mode parameter.

Output word length

Specify the word length, in bits, of the filter output.

This parameter is only visible if Minimum section word lengths, Specify word lengths, or Binary point scaling is selected for the Data type specification mode parameter.

Output fraction length

Specify the fraction length of the filter output.

This parameter is only visible if Binary point scaling is selected for the Data type specification mode parameter.

View filter response

This button opens the Filter Visualization Tool (fvtool) from the Signal Processing Toolbox product and displays the filter response of the filter defined in the block. For more information on FVTool, see the Signal Processing Toolbox documentation.

Specify Multirate Filter Object

The Main pane of the CIC Decimation block dialog appears as follows when Multirate filter object (MFILT) is specified in the Coefficient source group box.

Multirate filter variable

Specify the multirate filter object (mfilt) that you would like the block to implement. You can do this in one of three ways:

  • You can fully specify the mfilt object in the block mask.

  • You can enter the variable name of a mfilt object that is defined in any workspace.

  • You can enter a variable name for a mfilt object that is not yet defined, as shown in the default value.

For more information on creating mfilt objects, see the mfilt function reference page in the Filter Design Toolbox documentation.

View filter response

This button opens the Filter Visualization Tool (fvtool) from the Signal Processing Toolbox product and displays the filter response of the mfilt object specified in the Multirate filter variable parameter. For more information on FVTool, see the Signal Processing Toolbox documentation.

References

[1] Hogenauer, E.B., "An Economical Class of Digital Filters for Decimation and Interpolation," IEEE Transactions on Acoustics, Speech and Signal Processing, ASSP-29(2): pp. 155-162, 1981.

[2] Meyer-Baese, U., Digital Signal Processing with Field Programmable Gate Arrays, Springer Verlag, 2001.

[3] Harris, Fredric J., Multirate Signal Processing for Communication Systems, Prentice Hall PTR, 2004.

Supported Data Types

See Also

CIC Interpolation

Signal Processing Blockset

FIR Decimation

Signal Processing Blockset

FIR Interpolation

Signal Processing Blockset

filter

Filter Design Toolbox

mfilt.cicdecim

Filter Design Toolbox

mfilt.cicinterp

Filter Design Toolbox

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS