Professional Documents
Culture Documents
July 2014
July 2014
Many applications require analog and digital designs on same chip. Analog to Digital
Converters play an important role in systems, since almost all designs are better in digital
than in analog. For high speed applications, sigma delta ADCs are a widely used ADC type. A
delta-sigma ADC first encodes an analog signal using high-frequency delta-sigma
modulation, and then applies a digital filter to form a higher-resolution but lower samplefrequency digital output. Sigma delta modulator converts the analog input into a pulse stream,
where the frequency of the pulse stream varies with the analog signal input. So the output of
the ADC will be a single bit stream, obtained at a very high sampling rate. This stream is the
input to the decimation filter .the purpose of this filter is to reduce the sampling rate and give
out a signal with less sampling frequency and higher resolution.
Down Sampling
July 2014
Technique of Decimation
Down
samplin
g
Decimati
on
Filtering
If we just discard some samples in the time domain and try to reconstruct the signal, we will
not be able to reconstruct the signal as intended due to aliasing. So, we have to make sure that
all possible aliasing components are filtered before doing down sampling. The process of
filtering and down sampling is collectively called decimation.
July 2014
The aliasing of signal spectrum can be better understood from the frequency response of
CIC filter with OSR=8, given in Fig.1. [3]. The Fig.1A gives the magnitude response of a
CIC filter before decimation. The region marked B is the required pass band. It is pretty clear
that the pass band is only fractional part of the expected pass band(0 to fsin/8).There is a
reason for this design issue, which will be discussed in following sections.
What happens after decimation is the interesting part. B width bands around each of the
notches, will be folded back to the required pass band, i.e., band of width B centred at 0 Hz.It
can be observed that the largest aliasing component folded into the pass band is below the
peak of band of interest by roughly 16 dB. It can be inferred that, smaller the B, lower will be
the aliased energy after decimation.
How does decimation increase the sample resolution? Here is an example. A decimation
filter down samples by 4 times, a 1-bit bit stream; if we have an input stream like 0110,
counting the number of ones, we get 2. Then the decimation result is 2/4 = 0.5. We can then
represent it with a 2-bits number 10 (binary), which means half of the largest possible
number. In other words,
Decimation filtering can be done simply using a FIR filter. But the issue is the order of the
filter will be much high if we have to achieve a very narrow cut-off from such a wide
spectrum .Another concern is if we are doing down sampling after filtering, we will be
simply throwing away much of the samples that were processed by the filter, thus wasting so
much of the computations.
Fortunately, there are more efficient ways of doing it using a special type of moving average
filter called CIC (Cascaded Integrator Comb) filter. This genre of filters are found to be of
very handy for designing decimation as well as interpolation. Half band filters are yet another
kind of FIR filters used for decimation. Here we will be giving emphasis on CIC filters in
particular, since they are the best pick if the Oversampling Ratio (OSR) is high. The
decimation filter should act as anti-aliasing filter.
July 2014
CIC filters belongs to moving average FIR filters. As the name suggests, they have a series of
integrators and comb filters cascaded with a down sampler separating the two sections. The
cic filters were first proposed by Hogeuneur. The beauty of cic filter is that they need only
adders and delay elements to realise their functionality. Thus they are easy to implement and
more over cost effective since they do not use any multipliers. This makes their
implementation on hardware cost effective, in regards to area and computational complexity.
(Eq.1)
R is the OSR, M is the differential delaying is number of stages. With these parameters one
can design a CIC filter. Now let us see what does the frequency response of CIC filter looks
like. The frequency response of the CIC filter resembles that of a sinc filter. But it differs at
the zero-crossings.Fig.2.
The magnitude response of CIC filter is:
(Eq. 2)
July 2014
From the transfer function of CIC filter we can make out that, it is basically an integrator and
differentiator cascaded. Consider the transfer function for N=1. The denominator part
1/ (1-z-1) corresponds to an integrator, with its pole at unity. The numerator corresponds to
(RM) zeroes at the unity circle. One of these zeroes which falls exactly at the pole of the
integrator cancel each other.Fig.3.
The frequency response given in Fig.1is that of CIC decimation filter with sampling
frequency 2048 KHz being down converted by OSR 16. As can be seen from the plot, the
CIC filter have peculiar frequency response. In the first place, it does not have a very clear
pass band. Secondly its stop band attenuation is very much gradual. The point here is, how
this filter acts as anti-aliasing filter. For that, the filter has notches were the aliasing
frequencies fall into. The first notch appears at (fs/R). Second notch at 2(fs/R) and so on.
Region around every null is folded into the pass band causing aliasing errors. If fc is the
usable pass band, aliasing bands at every notch is of band 2fc.
So the design challenge is to make the aliasing bands fall exactly into the notches. The
band of interest for us is the first pass band, i.e., up to (fs/R). Here, we meet with a critical
design issue of CIC filter. The useful pass band of the CIC filter is, very limited, as you push
the required pass band towards the Nyquist limit, i.e., Fs_in/2R, the attenuation of the signal
output keeps on increasing. So for a given set of CIC design specifications, the usable pass
band may vary anywhere from 1/8Fs to 1/128Fs or so [1].
July 2014
The design parameters of the CIC filter are R (decimation ratio), M (differential
delay) and N (number of stages). It is to be noted that the number of stages here points to the
number of integrator or comb sections (both will be same) in a CIC filter. It is not to be
confused with multi-stages of decimation where, higher OSR is achieved by more than one
CIC stages in cascade. It is described in later sections.
July 2014
Decimation ratio for which filter is designed obviously affects the magnitude response.
Increase in R results in increase in attenuation and decrease in width of response side lobes.
The gain of the cic magnitude response is also affected by the decimation ratio. See the plot
for R=8, 16 and 24.Fig.6.
July 2014
Increasing number of stages (N) or the number of integrators in the filter increases the
order of zeroes in the frequency response. This in turn increases the attenuation at frequencies
at the localities of nulls. This is illustrated in the Fig.7.
(Eq. 3)
July 2014
When designing decimation filter for large OSR, the compensation filter can be
designed for decimating by a factor of two at the final stage. The Fig.8 shows the magnitude
compensation provided by the FIR filter when used in cascade with CIC filter with pass band
droop. The design parameters of the compensation filter is same as that of CIC filter if the
compensation filter is an inverse CIC. Compensation filters can also be FIR filters, whose
order and other specifications are decided based on the pass band droop of the CIC.
Compensation FIR filters can be designed using polynomial methods [5].
Multi-stage decimation
The pass band droop exhibited by the cic filters can be a bottle-neck for the ADC
design if the OSR is too high and the required pass band is a wide band, almost closer to the
Nyquist limit. In this scenario, it would be good to dissociate the decimation into number of
stages and cascade them. This will help in controlling attenuation since N and R can be kept
low. If the decimation ratio is say, 2048, instead of down sampling by 2048 in one go, it can
be decimated as given in Fig.9.
July 2014
References:
[1] "An Economical Class of Digital Filters for Decimation and Interpolation ",
Eugene.B.Hogenauer, IEEE TRANSACTIONS ON ACOUSTICS, SPEECH, AND SIGNAL
PROCESSING, VOL. ASSP-29, NO. 2, APRIL 1981
[2] "Understanding CIC compensation filters", ALTERA Application Note 455.
[3] "Understanding Cascaded-Integrator comb filters" by Richard Lyons
[4] Hardware-Efcient Implementation of Half-Band IIR Filter for Interpolation and
Decimation,I. H. H. Jrgensen, P. Pracn, and E. Bruun, Senior Member, IEEE, 2013
[5] Polynomial based Design of CIC Compensation Filter used in Software Defined Radio
for Multirate Signal Processing,Richa & R.K. Singh, International Journal of Computer
Applications ,Feb 2012.
10
July 2014
11