Professional Documents
Culture Documents
ON
QUANTIZATION EFFECT IN
DIGITAL FILTERS
SUBMITTED TO:
SUBMITTED BY:
Mr.RAHUL SHARMA
RAVI RAJ
Roll.
No. B57
Regd. No 10810483
Section:-E6802
I would like to thank all those who encouraged me to do this project. I thanks to
Mr.RAHUL SHARMA who helped me a lot in editing the contents of this report
by making necessary conditions. I am also extremely thankful to my friends in
providing me with the latest knowledge regarding the report their immense help
and suggestions for improving the contents of the report are highly appreciable. I
also thanks to my parents and brother for their patience and support extended to me
all times.
I also gratefully acknowledge the valuable contribution of many academics for the
editing and finalization of this report. The contribution of the publication
department in bringing out this report is also duly acknowledged.
RAVI RAJ
QUANTIZATION EFFECT IN DIGITAL FILTERS
Abstract-A classification is given of the operations take place, such as additions and
various possible nonlinear effects that can multiplications. Irrespective of the encoding
occur in recursive digital filters due to of the signals (often referred to as
signal quantization and adder overflow. arithmetic, e.g., fixed- or floating-point
The effects include limit cycles, overflow arithmetic), multiplications and additions
oscillations, and quantization noise. A generally lead to an increase in the word
review is given of recent literature on this length required for the result of the
subject. Alternative methods of avoiding operation.’ As long as the number of
some of these nonlinear phenomena are operations performed on a signal remains
discussed. finite, the increasing word length can be
accommodated by using larger registers for
storing the outcomes of the arithmetical
operations than for the origin+ signals. In
INTRODUCTION that case, however, very long registers may
be needed and for that reason it is common
THE GROWTH of interest in the digital practice to reduce the word length.. In a non
processing of signals in the past few years recursive digital filter the effects of such a
has led to an extensive study of the word length reduction will be an additive
properties of digital filters, the basic error signal at the output, very similar to the
elements of almost every digital signal quantization error that is made in an
processing system. Many of the papers that analog-to-digital converter. In a recursive
have recently appeared as a result of these digital filter the situation is much more
studies deal with the effects of the finite complicated. First in every closed loop in
word length available for the representation Such a filter a word length reduction is
of the signals in digital filters. Because of Necessary to prevent the signals from
this finite word length almost every digital acquiring an ever increasing word length.
filter is nonlinear, and for this reason the The errors introduced by the nonlinear
output of the digital filter deviates from operation corresponding to this word length
what is actually desired. reduction may propagate in the loop,
The finite word length is a consequence of resulting in a number of undesired effects .
the encoding of the signals in a particular Secondly, these filters are often used
format (mostly binary) and of the fact that because they enable the realization of a
the signals must be stored in registers, high-Q. A consequence of these high-Q
which, of course, have a finite length. In values is that large gains in signal
itself this finite word length does not amplitudes are obtained. Scaling the signals
necessarily cause undesired effects in the such that no signal can ever become larger
filter. In every filter, however, arithmetical in magnitude than the largest possible
number that can be represented by the suffice to give him a proper understanding
available number of bits (given some of the subject.
arithmetic) will in general lead to an Thirdly, a number of results. concerning
impractically large number of bits for these finite word length effects is reviewed. These
signals in view of the desired dynamic results mainly concern. wave digital filters
range. This means that in most filters and second-order digital filters. Since higher
overflow may occur.’ If an overflow occurs order digital filters can be constructed as a
(which means that a signal becomes larger cascade or a parallel configuration of
than the maximum represent able number: second-order sections, some of these results
the overflow level), then the most significant can immediately be applied to such higher
bits must be altered in order to produce a order filters too.
word that can again be stored in a register.
Effects of signal quantization and of TYPES OF WORDLENGTH
overflow in recursive digital filters, such as
quantization noise, limit cycles, and REDUCTION
overflow oscillations, have been known for
a long time. Since the early work of Gold Reduction must be applied in every closed
and Rader, Kaiser, Jackson , and Ebert et al. loop in digital filters in which arithmetical
in which these effects were mentioned for operations take place. Most of the time this
the first time, a large number of papers have can be done by affecting the least significant
appeared dealing with this subject. Methods bits only (quantization), but sometimes
have been reported for the analysis of these overflow will occur, which requires a
Effects, and measures for suppressing the change of the most significant bits as well.
unwanted phenomena have been described, For both types of word length reduction
especially for second-order digital filter there exist a number of alternative
sections and for wave digital filter. approaches. These are well described in the
Unfortunately these results are scattered literature and will, therefore, only be
throughout the literature and a general indicated very briefly here. Quantization can
survey is not available. It is important, be performed by substituting the nearest
however, that the designer of a digital filter possible word that can be represented by the
be aware of all unwanted effects that may limited number of bits. The characteristic of
occur in the filter to be implemented. the nonlinear operation corresponding to this
Moreover, he should have available a round off (RO) quantization is depicted in
number of solutions to control the effects Fig. l(a) for the case of fixed-point number
that are most disturbing in his specific representation.
application. Another possibility consists of merely
The aims of this paper are the following. discarding the least significant bits. In a
First, a classification is given of the various representation of the signals by sign and
effects that can be caused by a word length magnitude this leads to magnitude
reduction required in recursive digital filters. truncation (MT) quantization with a
Secondly, a survey is presented of the characteristic as in Fig. l(b). If the signals
existing literature describing the various are represented, in a twos complement
results reported on this subject. We have format, the result is a twos complement or
tried to do this in such a way that someone value truncation (VT) quantization Fig. l(c)]
who is interested in a specific problem or . Both MT and VT introduce larger errors
result can find a subset of papers that may
than RO, but have advantages in the
hardware realization.
Moreover, depending on the type of
quantization used ,the filter behavior can be
very different, and therefore it is usually
worth considering the various alternatives
and their merits when designing a digital
filter for a given application.
Also if an overflow occurs, a number of
different measures can be taken. The
saturation characteristic depicted in Fig.
2(a) is obtained if the word that causes the
overflow is replaced by a word having the
same sign, but a magnitude corresponding to
the overflow level. Another possibility
consists in substituting the number zero in
the case of overflow [zeroing arithmetic
[23], see . 2(b)] . Discarding the bits that
cause the overflow has special advantages
with twos complement arithmetic, since
overflows in intermediate results do not then
cause errors as long as the final result does
not have overflow. If that is not so, then an
error will be introduced corresponding to the
characteristic in Fig. 2(c). There are various
other ways of dealing with overflow such as,
e.g.,the one corresponding to the
characteristic in Fig. 2(d), proposed in .
such that
It has
been observed, however, that in the actual
system (NLDF) the output y(n) does not
always converge to zero. All components
of x(n) can only attain a finite number of If the limit cycle has an amplitude f the
values since they are quantized and bounded order of thove erflow level p , and this
in amplitude. This makes the NLDF a finite- amplitude is not affected when the
state machine. An immediate consequence quantization step size 4 is decreased, then
of this is that if x(n) does not converge to the limit cycle mainly results from the
zero with zero input, it must become overflow nonlinearities. In that case it is
periodical after some finite time. Thus, in often referred to as an overflow oscillation.
the absence of an input signal, the digital
filter will either reach the zero state after a Results for Wave Digital Filters
finite time, or a periodic oscillation will
result, which is referred to as a limit cycle or
A well-known method for investigating
zero-input stability is the second method of
Zero-input limit cycle 1471. Lyapunov. Application of this method
requires the search for a generalized energy
Different limit cycles may result if the filter function, the Lyapunov function. For a
is started with different initial conditions, digital filter this is, in general, very
but there may be other initial conditions complicated due to the highly discontinuous
from which the zero state is reached. It will nonlinear characteristics of the quantizes.
be assumed that An important exception is formed by the
wave digital filters (WDF) . For these filters
Fettweis and Meerkotter have used what is Using arguments similar to those in ,
called the pseudo power, which is essential Meerkotter and Wegener and Verkroost and
in these filters, as a Lyapunov function. In Butterweck have derived structures for a
this way they have been able to prove that second-order digital filter section that are
the absence of zero-input limit cycles can be free of limit cycles when magnitude
guaranteed in WDF for which 1) the ALF is truncation is used for quantization, and do
pseudopassive or pseudo lossless, 2) the not have overflow oscillations for any
nonlinearities are situated at appropriate overflow characteristic.
places in the filter and satisfy A structure of a second-order section that
has been investigated extensively is the
direct form. it has been shown that as
regards zero-input limit cycles this section
is equivalent to the direct form 1 .) In the
recursive part of this filter the overflow
nonlinearity must bep laced as indicated in
Fig. 4. Two possible ways of placing the
quantizers have been indicated. Quantization
can be performed immediately after every
multiplication. In that case there are two
quantization nonlinearities, and Q3(x) = x.
It is also possible to add the results of the
two multiplications with full precision,
which means Q1 (x) = Q2 (x) = x , and
then only one quantization is needed. If,
however, the filter is implemented with
distributed arithmetic hen only one
quantization can be performed.
The results given for the one quantization
case also apply to this implementation.
It has been proven that overflow oscillations
Equation (12) is satisfied by the will not occur in this second-order
characteristic of a magnitude truncation section if the overflow nonlinearity P(x) is
quantizer, and every overflow characteristic contained in the hatched area of Fig. 5 .
satisfies (1 3). This meanst hat it is possible Both the saturation nonlinearity in Fig. 2(a)
to design a wave digital filter of arbitrary and the nonlinearity in Fig. 2(d) are
order, without limit cycles and overflow contained inside this area. Thus, although
Oscillations. the choice of overflow characteristic is more
limited than for wave digital filters if
overflow oscillations have to be avoided, it
is possible to obtain a filter that is free from
overflow oscillations.
This does not guarantee, however, absence
Results for Second-Order of other types of limit cycles.
Digital Filters It has been demonstrated in that if RO
quantizers are used, then irrespective of
whether one or two quantizes are used limit Quantizer case, Fig. 6(b) indicates the
cycles will always occur if situation when two RO quantizers are used.
The larger triangle depicts the stability
region of the linear filter. The vertically
hatched regions correspond to inequality
(14) and denote coefficient values for which
limit cycles will always occur.
In the cross-hatched regions, labeled
"stable," the absence of limit cycles can be
proved by means of frequency domain
criteria derived in . For the inner region in
Fig. 6(b),Jackson [9] has shown that limit
cycles of period 1 and 2 will be absent.
Moreover, using an effective value linear
model he has indicated that limit cycles of
other periods are unlikely to occur.
Computer simulations have confirmed the
absence of limit cycles in this region. It can
be concluded that the use of RO for
quantization will lead in most practical cases
Not only do limit cycles exist in this case, to the occurrence of limit cycles with zero
but a limit cycle will result for every input. In that case the only thing to do is to
nonzero initial condition, because with diminish the amplitude of occurring limit
values of b satisfying the zero state cannot cycles by increasing the number of bits used
be reached from any other state. For the two to represent the signals. The number of bits
RO quantizer case it is possible to determine required for this can be estimated by using
a lower bound for the amplitude of limit upper bounds for the amplitude of limit
cycles cycles.
Three different types of amplitude bounds
for limit cycles have been given.
DETERMINISTIC INPUT
SIGNAL
it was indicated that in the case of a
nonzero input signal the effects of the
nonlinear operations can be studied by
considering the output error signal e(n). In
this case it is rather essential to try to
Controlled quantization (CQ) has been distinguish between the effects of the
proposed whereby the signal is quantized to quantization and the effects of overflow, for
a larger or a smaller value depending on the the following reasons.
state variables in the filter. An algorithm has Quantization is a continuously operating
been given which guarantees the absence of error source since during every sample
limit cycles of periods larger than two. period T the filter calculates new signal
A possible implementation of this algorithm values that must be quantized before they
is depicted in Fig. 8. The quantizer Q can replace the old values in the registers. In
quantizes the signal r(n) upwards or a properly designed filter overflow may not
downwards, depending on the sign of the occur at all or rarely, since if it occurs it
signal s(n). produces very large errors.
Quantization Effects