Professional Documents
Culture Documents
GROUP MEMBERS:
ANJU VIJAYAKUMAR (14) ANOOP K (63) RAFEEQ THAJU T (65) RENJITH R (67)
where is the quantizer step size. Uniform quantization is usually a requirement if the resulting digital signal is to be processed by a digital system . However,in transmission and storage applications of signals such as speech , nonlinear and time-variant quantizers are frequently used. If zero is assigned a decision level, the quantizer is called a midtread type. If zero is assigned a decision level, the quantizer is called a midrise type.
Figure 9.7 (b) illustrates a midtread quantizer with L = 8 levels. In theory, the extreme decision levels are taken as x1 = - and xl+1 = , to cover the total dynamic range of the input signal. However, practical A/D converters can handle only a finite range. Hence we define the range R of the quantizer by assuming that I1 = IL = . For example, the range of the quantizer shown in Fig. 9.7(b) is equal to 8 , In practice, the term full-scale range (FSR) is used to describe the range of an A/D converter for bipolar signals (i.e., signals with both positive and negative amplitudes). The term full scale (FS) is used for unipolar signals. It can be easily seen that the quantization error eq (n) is always in the range - / 2 to /2 : -/2< eq(n) /2 (9.2.4) In other words, the instantaneous quantization error cannot exceed half of the quantization step. If the dynamic range of the signal, defined as xmax xmin ,is larger than the range of the quantizer, the samples that exceed the quantizer range are clipped, resulting in a large (greater than /2) quantization error. The operation of the quantizer is better described by the quantization characteristic function, illustrated in Fig. 9.8 for a midtread quantizer with eight quantization levels. This characteristic is preferred in practice over the midriser because it provides an output that is insensitive to infinitesimal changes of the input signal about zero.
Note that the input amplitudes of a midtread quantizer are rounded to the nearest quantization levels.
The coding process in an A/D converter assigns a unique binary number to each quantization level. If we have L levels, we need at least L different binary numbers. With a word length o f b + 1 bits we can represent 2b+l distinct binary numbers. Hence we should have 2b+1 L or, equivalently, b+1 log2 L. Then the step size or the resolution of the A/D converter is given by
Where R is the range of quantizer The twos-complement representation is used in most digital signal processors .Thus it is convenient to use the same system to represent digital signals because we can operate on them directly without any extra format conversion. In general, a(b + 1) -bit binary fraction of the form 0 1 2.b has the value -0 > -2 + 1 2-1 + 2 2-2 ++b. 2-b If we use the twos-complement representation. Note that 0 is the most significant bit (MSB) and b is the least significant bit (LSB). Although the binary code used to represent the quantization levels is important for the design of the A/D converter and the subsequent numerical computations, it does not have any effect in the performance of the quantization process. Thus in our subsequent discussions we ignore the process of coding when we analyze the performance of A/D converters.
Practical A/D converters differ from ideal converters in several ways. Various degradations are usually encountered in practice. A number of these performance degradations are illustrated in Fig. 9.9 (b)-(e). We note that practical A/D converters may have offset error (the first transition may not occur at exactly +.5|LSB),scale-factor (or gain) error (the difference between the values at which the first transition and the last transition occur is not equal to FS .5LSB), and linearity error (the differences between transition values are not all equal or uniformly changing).If the differential linearity error is large enough, it is possible for one or more code words to be missed. Performance data on commercially available A/D converters are specified in the manufacturersdata sheets.
These assumptions do not hold, in general. However, they do hold when the quantization step size is small and the signal *
sequence x(n) traverses several quantization levels between two successive samples. Under these assumptions, the effect of the additive noise eq(n) on the desired signal can be quantified by evaluating the signal-to-quantization noise (power)ratio (SQNR), which can be expressed on a logarithmic scale (in decibels or dB ) as SQNR = 101og where Px = = E [ (n)]is the signal power and Pn= E[e^2(n)] is the power of the quantization noise.If the quantization error is uniformly distributed in the range ( /2 , /2 ) as shown in Fig. 9.11, the mean value of the error is zero and the variance (the quantization noise power) is . D u e to limitations in the fabrication of A/D converters, their performance falls short of the theoretical value given by (9.2.8). As a result, the effective number of bits may be somewhat less than the number of bits in the A /D converter. For instance, a 16-bit converter may have only an effective 14 bits of accuracy.
Suppose that the actual system in Fig. 7.45 is implemented with fixed-point arithmetic based on four bits for the magnitude plus a sign bit. The quantization that takes place after multiplication is assumed to round the resulting product upward.
**
In Table 7.2 the response of the actual system for four different locations of the pole z - a, and an input x(n) = (n), where = 15/16, which has the binary representation 0.1111. Ideally, the response of the system should decay toward zero exponentially . In the actual system , however, the response v(n) reaches a steady-state periodic output sequence with a period that depends on the value of the pole. When the pole is positive, the oscillations occur with a period Np = 1, so that the output reaches a constant value of for a = and for a = . On the other hand, when the pole is negative, the output sequence oscillates between positive and negative values .Hence the period is Np = 2. These limit cycles occur as a result of the quantization effects in multiplications .When the input sequence x(n) to the filter becomes zero, the output of the filter then, after a number of iterations, enters into the limit cycle. The output remains in the limit cycle until another input of sufficient size is applied that drives the system out of the limit cycle. Similarly, zero-input limit cycles occur from nonzero initial conditions with the input x(n) = 0 . The amplitudes of the output during a limit cycle are confined to a range of values that is called the dead band of the filter.
When the response of the single-pole filter is in the limit cycle, the actual nonlinear system operates as an equivalent linear system with a pole at z = 1 when the pole is positive and z =-1 when the pole is negative.ie,
Since the quantized product av(n-1) is obtained by rounding, it follows that the quantization error is bounded as
Where b is the number of bits used in the representation of pole a and v(n) consequently eqn 7.7.4 and 7.7.3 lead to
The expression in (7.7.5) defines the dead band for a single-pole filter. In addition to limit cycles caused by rounding the result of multiplications, there are limit cycles caused by overflows in addition. An overflow in addition of two or more binary numbers occurs when the sum exceeds the word size available in the digital implementation of the system . For example, let us consider the second-order filter section illustrated in Fig. 7.46, in which the addition is performed in twos-complement arithmetic. Thus we can write the output y(n) as y(n) = g[a1 y(n-1) + a2y(n-2) + x(n)] where the function g [.] represents the twos-complement addition. It is easily verified that the function g(v) versus v is described by the graph in Fig. 7.47. Recall that the range of values of the parameters (a1,a2) for a stable filter is given by the stability triangle in Fig. 3.15. However, these conditions are no longer sufficient to prevent overflow oscillation with twos-complement arithmetic. In fact, it can easily be shown that a necessary and sufficient condition for ensuring that no zero-input overflow limit cycle occurs is a1 + a2 1 which is extremely restrictive and hence an unreasonable constraint to impose on any second order section
An effective remedy for curing the problem of overflow oscillations is to modify the adder characteristic, as illustrated in Fig. 7.48, so that it performs saturation arithmetic. Thus when an overflow (or underflow) is sensed, the output of the adder will be the full-scale value of 1.The distortion caused by this non linearity in the adder is usually small provided that saturation occurs infrequently. The use of such a non linearity does not preclude the need for scaling of the signals and the system parameters