Cascaded Integrator–comb Filter
   HOME

TheInfoList



OR:

In
digital signal processing Digital signal processing (DSP) is the use of digital processing, such as by computers or more specialized digital signal processors, to perform a wide variety of signal processing operations. The digital signals processed in this manner are a ...
, a cascaded integrator–comb (CIC) is a
computationally efficient In computer science, algorithmic efficiency is a property of an algorithm which relates to the amount of computational resources used by the algorithm. Algorithmic efficiency can be thought of as analogous to engineering productivity for a repea ...
class of
low-pass A low-pass filter is a filter that passes signals with a frequency lower than a selected cutoff frequency and attenuates signals with frequencies higher than the cutoff frequency. The exact frequency response of the filter depends on the filt ...
finite impulse response In signal processing, a finite impulse response (FIR) filter is a filter whose impulse response (or response to any finite length input) is of ''finite'' duration, because it settles to zero in finite time. This is in contrast to infinite impuls ...
(FIR) filter that chains N number of
integrator An integrator in measurement and control applications is an element whose output signal is the time integral of its input signal. It accumulates the input quantity over a defined time to produce a representative output. Integration is an importan ...
and
comb filter In signal processing, a comb filter is a Filter (signal processing), filter implemented by adding a delayed version of a signal processing, signal to itself, causing constructive and destructive Interference (wave propagation), interference. The ...
pairs (where N is the filter's order) to form a decimator or interpolator. In a decimating CIC, the input
signal A signal is both the process and the result of transmission of data over some media accomplished by embedding some variation. Signals are important in multiple subject fields including signal processing, information theory and biology. In ...
is first fed through N integrator stages, followed by a down-sampler, and then N comb stages. An interpolating CIC (e.g. Figure 1) has the reverse order of this architecture, but with the down-sampler replaced with a zero-stuffer (up-sampler).


Operation

CIC filters were invented by Eugene B. Hogenauer in 1979 (published in 1981), and are a class of FIR filters used in
multi-rate digital signal processing Sample-rate conversion, sampling-frequency conversion or resampling is the process of changing the sampling rate or sampling frequency of a discrete signal to obtain a new discrete representation of the underlying continuous signal. Application a ...
. Unlike most FIR filters, it has a down-sampler or up-sampler in the middle of the structure, which converts between the high sampling rate of f_s used by the integrator stages and the low sampling rate of \tfrac used by the comb stages.


Transfer function

At the high sampling rate of a CIC's
transfer function In engineering, a transfer function (also known as system function or network function) of a system, sub-system, or component is a function (mathematics), mathematical function that mathematical model, models the system's output for each possible ...
in the
z-domain In mathematics and signal processing, the Z-transform converts a discrete-time signal, which is a sequence of real or complex numbers, into a complex valued frequency-domain (the z-domain or z-plane) representation. It can be considered a discr ...
is: : \begin H(z) &=\left \sum_^z^ \right ^N \\ &= \left ( \frac \right ) ^N \end where: :R is the decimation or interpolation ratio, :M is the number of samples per stage (usually 1 but sometimes 2), and :N is the order: the number of comb-integrator pairs. :* The numerator comes from multiplying N negative feedforward comb stages (each is simply multiplication by 1-z^ in the z-domain). :* The denominator comes from multiplying N integrator stages (each is simply multiplication by \tfrac in the z-domain).


Integrator–comb is simple moving average

An integrator–comb filter is an efficient implementation of a simple 1-order moving-average FIR filter, with division by RM omitted. To see this, consider how a simple moving average filter can be implemented recursively by adding the newest sample x /math> to the previous result y -1/math> and subtracting the oldest sample : \begin y &= \sum_^ x -k\\ y &= y -1+ \underbrace_. \end The second equality corresponds to a comb filter that gets integrated


Cascaded integrator–comb yields higher-order moving average

Higher-order CIC structures are obtained by cascading N identical simple moving average filters, then rearranging the sections to place all integrators first (decimator) or combs first (interpolator). Such rearrangement is possible because both the combs, the integrators, and the entire structure are linear time-invariant (LTI) systems. In the interpolating CIC, its upsampler (which normally precedes an interpolation filter) is passed through the comb sections using a Noble identity, reducing the number of delay elements needed by a factor of R. Similarly, in the decimating CIC, its downsampler (which normally follows a decimation filter) is moved before the comb sections.


Features

CIC filters have some appealing features: * Linear phase response (i.e. constant
group delay In signal processing, group delay and phase delay are functions that describe in different ways the delay times experienced by a signal’s various sinusoidal frequency components as they pass through a linear time-invariant (LTI) system (such as ...
). * Utilize only delay, addition, and subtraction. ** No expensive multiplication. * Bit growth of due to equivalence with moving average. * Shape of the filter's main lobe changes very little when the decimation ratio is changed.


Frequency response

In the z-domain, each integrator contributes one pole at DC (z1) and one zero at the origin (z0). Each comb contributes RM poles at the origin and RM zeroes that are equally-spaced around the z-domain's
unit circle In mathematics, a unit circle is a circle of unit radius—that is, a radius of 1. Frequently, especially in trigonometry, the unit circle is the circle of radius 1 centered at the origin (0, 0) in the Cartesian coordinate system in the Eucli ...
, but its first zero at DC cancels out with each integrator's pole. N-order CIC filters have N times as many poles and zeros in the same locations as the 1-order. Thus, the 1-order CIC's frequency response is a crude
low-pass filter A low-pass filter is a filter that passes signals with a frequency lower than a selected cutoff frequency and attenuates signals with frequencies higher than the cutoff frequency. The exact frequency response of the filter depends on the filt ...
. Typically the gain is normalized by dividing by (RM)^N so DC has the peak of unity gain. The main lobes drop off as it reaches the next zero, and is followed by a series of successive lobes that have smaller and smaller peaks, separated by the subsequent zeros. This approximates at large R a sinc-in-frequency. An N-order CIC's shape corresponds to multiplying that sinc shape on itself N times, resulting in successively greater attenuation. Thus, N-order CIC filters are called sinc filters. The first sidelobe is attenuated . Sinc filters are commonly used with
delta-sigma modulation Delta-sigma (ΔΣ; or sigma-delta, ΣΔ) modulation is an oversampling method for encoding signals into low bit depth digital signals at a very high sample-frequency as part of the process of delta-sigma analog-to-digital converters (A ...
ADCs just prior to downsampling to the desired output data rate (ODR) of \tfrac. A sinc filter's frequency response will lie under a envelope, so higher orders have steeper roll off for cutting out more high frequency noise, but will also have a lower -3 dB frequency. Another tradeoff is that a sinc filter's
settling time In control theory the settling time of a dynamical system such as an amplifier or other output device is the time elapsed from the application of an ideal instantaneous step input to the time at which the amplifier output has entered and remained ...
will be , so higher order filters cost additional latency. The CIC filter's possible range of responses is limited by this shape. Larger amounts of
stopband A stopband is a band of frequencies, between specified limits, through which a circuit, such as a filter or telephone circuit, does not allow signals to pass, or the attenuation is above the required stopband attenuation level. Depending on app ...
rejection can be achieved by increasing the order, but that increases attenuation in the passband and requires increased bit width for the integrator and comb sections. For this reason, many real-world filtering requirements cannot be met by a CIC filter alone.


Shape compensation

A short to moderate length FIR or
infinite impulse response Infinite impulse response (IIR) is a property applying to many linear time-invariant systems that are distinguished by having an impulse response h(t) that does not become exactly zero past a certain point but continues indefinitely. This is in ...
(IIR) filter can compensate for the falling slope of a CIC filter's shape. Multiple interpolation and decimation rates can reuse the same set of compensation FIR coefficients, since the shape of the CIC's main lobe changes very little when the decimation ratio is changed.


Comparison with other FIR filters

* CIC filters are used primarily in multi-rate processing. Meanwhile, FIR filters in general are used in a wide array of applications, and can be used in multi-rate processing in conjunction with an interpolator or decimator. * CIC filters have low pass frequency characteristics, while FIR filters can have
low-pass A low-pass filter is a filter that passes signals with a frequency lower than a selected cutoff frequency and attenuates signals with frequencies higher than the cutoff frequency. The exact frequency response of the filter depends on the filt ...
, high-pass, or
band-pass A band-pass filter or bandpass filter (BPF) is a device that passes frequencies within a certain range and rejects ( attenuates) frequencies outside that range. It is the inverse of a '' band-stop filter''. Description In electronics and s ...
frequency characteristics. * CIC filters use only addition and subtraction. FIR filters use addition, subtraction, but most FIR filters also require multiplication. * CIC filters have a specific frequency
roll-off Roll-off is the steepness of a transfer function with frequency, particularly in electrical network analysis, and most especially in connection with filter circuits in the transition between a passband and a stopband. It is most typically app ...
, while low pass FIR filters can have an arbitrarily sharp frequency roll-off. * CIC filters are in general much more economical than general FIR filters, but tradeoffs are involved. ** In cases where only a small amount of interpolation or decimation are needed, FIR filters generally have the advantage. However, when rates change by a factor of 10 or more, achieving a useful FIR filter anti-aliasing stop band requires many FIR taps. ** For large rate changes, a CIC has a significant advantage over a FIR filter with respect to architectural and computational efficiency. ** Additionally, CIC filters can typically be reconfigured for different rates by changing nothing more than the decimation/interpolation section assuming the bit width of the integrators and comb sections meets certain mathematical criteria based on the maximum possible rate change. * CIC filter uses only fixed point math, while FIR filters can use
fixed Fixed may refer to: * ''Fixed'' (EP), EP by Nine Inch Nails * ''Fixed'' (film), an upcoming animated film directed by Genndy Tartakovsky * Fixed (typeface), a collection of monospace bitmap fonts that is distributed with the X Window System * Fi ...
or
floating point In computing, floating-point arithmetic (FP) is arithmetic on subsets of real numbers formed by a ''significand'' (a signed sequence of a fixed number of digits in some base) multiplied by an integer power of that base. Numbers of this form ...
math. ** This is necessary because, as a recursively implemented FIR filter, a CIC filter relies on exact cancellation of poles from the integrator sections by zeros from the comb sections. While the reasons are less than intuitive, an inherent characteristic of the CIC architecture is that if fixed bit length overflows occur in the integrators, they are corrected in the comb sections.


Notes


References


See also

* Decimation *
Delta-sigma modulation Delta-sigma (ΔΣ; or sigma-delta, ΣΔ) modulation is an oversampling method for encoding signals into low bit depth digital signals at a very high sample-frequency as part of the process of delta-sigma analog-to-digital converters (A ...
- ADC technique that may use CIC for decimation


External links


CIC Filter Introduction

Understanding cascaded integrator–comb filters



Cascaded Integrator Comb (CIC) Filters – A Staircase of DSP
{{DEFAULTSORT:Cascaded integrator-comb filter Digital signal processing