main content

decimate signal using cascaded integrator-凯发k8网页登录

decimate signal using cascaded integrator-comb filter

  • cic decimation block

libraries:
dsp system toolbox / filtering / multirate filters
dsp system toolbox hdl support / filtering

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 block supports real and complex fixed-point inputs. in its normal mode of operation, the cic decimation block allows the adder’s numeric values to overflow and wrap around [1] [3]. the fixed-point infrastructure then causes overflow warnings to appear on the command line. this overflow is of no consequence.

the cic decimation block requires a fixed-point designer™ license.

examples

ports

input

data input, specified as a vector or matrix. the number of input rows must be a multiple of the decimation factor.

if the input is fixed-point, it must be signed integer or signed fixed point with power-of-two slope and zero bias.

data types: int8 | int16 | int32 | int64 | fixed point
complex number support: yes

output

cic decimated output, returned as a vector or a matrix. the data type of the output is determined by the settings in the block dialog. the complexity of the output matches that of the input. the number of output rows is (1/r)✕num, where r is the decimation factor and num is the number of input rows.

data types: int8 | int16 | int32 | int64 | fixed point
complex number support: yes

parameters

source of the filter information, specified as one of the following:

  • dialog parameters — enter information about the filter, such as decimation factor (r), differential delay (m) and number of sections (n), in the block dialog.

  • filter object — specify the filter using a dsp.cicdecimator system object™.

different items appear on the cic decimation block dialog depending on whether you select dialog parameters or filter object in the coefficient source parameter.

decimation factor of the filter, specified as an integer greater than 1.

dependencies

this parameter appears when you set coefficient source to dialog parameters.

specify the differential delay of the comb part of the filter, m, as a positive integer. for more details, see cic decimation filter.

dependencies

this parameter appears when you set coefficient source to dialog parameters.

specify the number of filter sections. the number you specify determines the number of sections in either the comb part of the filter or the integrator part of the filter. this value does not represent the total number of sections in the comb and integrator parts combined.

dependencies

this parameter appears when you set coefficient source to dialog parameters.

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

  • full precision — the word and fraction lengths of the filter sections and outputs are automatically selected for you. all word lengths (wl) are set to:

    wl=ceil(n×log2(m×r)) i

    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 — specify the word length of the filter output in the output word length parameter. the block automatically selects the word lengths of the filter sections and all fraction lengths 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 — specify the word lengths of the filter sections and output in the section word lengths and output word length parameters. the block automatically selects fraction lengths for the filter sections and output such that the range of each section is preserved when the least significant bits are discarded.

  • binary point scaling — 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.

dependencies

this parameter appears when you set coefficient source to dialog parameters.

word lengths of filter sections, specified as a scalar or a vector of length equal to 2n, where n is the number of filter sections. the section word length must be in the range [2, 128].

dependencies

this parameter appears when you set coefficient source to dialog parameters and data type specification mode to either specify word lengths or binary point scaling.

fraction lengths of filter sections, specified as an integer.

dependencies

this parameter appears when you set coefficient source to dialog parameters and data type specification mode to binary point scaling.

word length of the filter output, specified as an integer in the range [2, 128].

dependencies

this parameter appears when you set coefficient source to dialog parameters and data type specification mode to any option other than full precision.

fraction length of the filter output, specified as an integer.

dependencies

this parameter appears when you set coefficient source to dialog parameters and data type specification mode to binary point scaling.

specify the rate processing rule for the block:

  • enforce single-rate processing — the block performs frame-based processing and produces an output that has the same sample rate as the input. to decimate the signal while maintaining the input sample rate, the block decreases the output frame size. in this mode, the input column size must be a multiple of decimation factor (r).

  • allow multirate processing — in this mode, the block produces an output with a sample rate that is r times slower than the input sample rate.

specify the name of the multirate filter object that you want the block to implement. you must specify the filter as a dsp.cicdecimator system object.

you can define the system object in the block dialog or in a matlab® workspace variable.

for information on creating system objects, see .

dependencies

this parameter appears when you set coefficient source to filter object.

this button opens the filter visualization tool () 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.

note

if you specify a filter in the filter object parameter, you must apply the filter by clicking the apply button before using the view filter response button.

block characteristics

data types

fixed point | integer

direct feedthrough

no

multidimensional signals

no

variable-size signals

no

zero-crossing detection

no

more about

algorithms

references

[1] hogenauer, e.b. “an economical class of digital filters for decimation and interpolation.” ieee transactions on acoustics, speech and signal processing. vol. 29, number 2, 1981, pp. 155–162.

[2] meyer-baese, u. digital signal processing with field programmable gate arrays. new york: springer verlag, 2001.

[3] harris, fredric j., multirate signal processing for communication systems. upper saddle river, nj: prentice hall ptr, 2004.

extended capabilities

version history

introduced before r2006a

see also

functions

objects

blocks

  • | | | |

topics

    网站地图