Sunteți pe pagina 1din 4

Proceedings of ICSP ' 96

MAGNITUDE RESPONSE OPTIMIZATION OF DELTA OPERATOR FILTERS


P. Tanelz H a r p ' , Juha Kauraniema', and Seppo J . Ovaslca3

',3Laboratory of Telecommunications Technology, Helsinki University of Technology,


Otakaari 5 A, FIN-02150 Espoo, FINLAND
'Laboratory of Signal Processing and Computer Technology, Helsinki University of Technology,
Otakaari 5 A, FIN-02150 Espoo, FINLAND

'email: taneli .harjumhut .fi, phone: +358-0-451 2469, FAX: +358-0-460 224
'email: juha.kauraniemimhut .fi, phone: +358-0-451 2455, FAX: +358-0-460 224
3email: seppo .ovaskamhut .f i, phone: +358-0-451 2468, FAX: +358-0-460 224

Abstract - Digital filters that use the delta operator In this paper, we show that direct rounding does not
have been shown to be less sensitive to filter coefficient necessarily produce the optimal results, however. This fact
quantization than filters using the shift operator when the becomes especially pronounced when very few bits are al-
poles and zeroes lie near the point z = ztl. It is custom- located for the coefficients. In such a case, the magnitude
ary to simply round the prototype filter coefficients to the response of the directly rounded filter is likely to be quite
nearest fixed-point numbers for the implementation. In this far from that of the floating point prototype, and subse-
paper, we show that when very few bits are allocated for quently may fail to meet the specifications set by the filter
each coefficient in a delta filter, some other quantized point designer. Our study shows that going through other fixed-
than the directly rounded point is likely to offer magnitude point neighbors of the floating point coefficients besides the
response that more closely matches the required character- one obtained by direct rounding is very likely to yield better
istics. Furthermore, a neighborhood search may even find a sets of coefficients in terms of magnitude response charac-
solution that fulfills the given specifications with fewer bits teristics. Since the computational burden of searching the
than by using direct rounding. This is of particular im- full quantized neighborhood increases exponentially with
portance in Application-Specific Integrated Circuit imple- the number of filter coefficients, we also propose an effi-
mentations where expensive die area can be saved by using cient iterative algorithm for performing the search.
fewer bits to represent a coefficient. Our experiments also The structure of the paper is as follows. In section 2,
confirm the result that delta parameterization regularly re- we review the use of delta operator in digital filters, and in
quires at least two or three bits less than shift parameteri- section 3 the problem of optimal quantization is addressed.
zation to fulfill the same narrowband filter specifications. In section 4, we present examples of optimal delta filter
quantization, and propose a computationally lighter algo-
rithm for the neighborhood search in section 5. Section 6
concludes the paper.
1 Introduction
Delta operator realizations of digital filters [I, 21 are 2 Delta Filters
claimed to fare better than traditional shift operator real-
izations when narrowband filters with limited wordlength The delta operator is defined as
coefficients are to be realized [3, 41. This means that using
the delta operator, less bits are required to impIement a fil- 6=- 2 - 1
ter with similar characteristics than with the shift operator.
A '
This is of considerable importance in Application-Specific where z is the shift operator and A is a parameter that
Integrated Circuit (ASIC) implementations, where each bit may be chosen freely to optimize filter performance, e.g.
added to the wordlength translates to increased die area, to minimize roundoff noise. In this paper we only consider
which in turn rises cost and hinders speed. the case A = 1, however [l].
Generally, the design of delta-operator filters is done In delta filters, the 6-' block is used instead of z-'.
by first computing the shift domain coefficients, transform- Directly from ( l ) , we get
ing these coefficients to the delta domain coefficients, and
finally performing quantization according to the number
of bits available. Traditionally, digital filter quantization
is performed by truncating, or, more commonly, rounding Consider a second-order IIR, with the transfer function
the coefficients to the closest finite-wordlength coefficient
available. (3)
P. T. Harju has been supported by the Nokia Foundation.

0-7803-2912-0
83
where bo, b l , b 2 , a i , and a2 are the filter Coefficients. Con- is needed, and the che
verting the filter to the delta domain, we get the structure factured. In this paper, we concentrate on quantization for
depicted in Figure 1, with the transfer function fixed-point arithmetic.
A straightforward way of creating finite-wordlength
fixed-point filter coefficients from the infinite-wordlength
(4) or floating-point prototype coefficients is by rouding. Con-
sider the two-dimensional example of Figure 2, where the
where the filter coefficients a,, i = 1 , 2 , and ,6, i = 0,1,2, crossings of the gridlines correspond to possible quantiza-
can be obtained from a, and b, as indicated in Table 1. tion points, and the circle denotes the infinite-wordlength
These transforms are calculated by substituting (2) into point. The solid arrow denotes rounding to the closest
(4) and equating this with (3) [5]. finite-wordlength point.
When only a few bits are used to represent each coeffi-
PO bo cient, rounding the coefficients may perturb the magnitude
Pi (2bo + b l ) / A ai (2+ai)/A response of the filter considerably. The effect may be so
PZ (bo + bi + b2)/A2 az +
(1 + a i a2)/A2 violent that the filter does not conform to the desired spec-
ifications after quantization, or at least deviate disturbingly
Table 1. Converting second-order shift filter coefficients much from the prototype filter. In such a case, a better so-
to the delta domain Coefficients. lution may be found in some other quantized point near the
original prototype coefficients. The computational burden
For realizing filters with infinite-wordlength coefficients, of searching all the points of the quantized coefficient space
both shift and delta realizations are equivalent. When is unthinkable for most designs, however, and the optimal
the coefficients are quantized, certain important differences coefficients are likely to be found quite near the original,
emerge, however Quantization of the coefficients limits the unquantized coefficients. Therefore, a good alternative to
zeroes and poles to lie in specific locations on the complex a complete search of the coefficient space is to search only
plane only, and depending on the coefficient parameteriza- the neighboring quantized coefficients. This means round-
tion, different sets of possible pole/zero locations are ob- ing each coefficient up and down to the closest possible
tained For delta realizations, this location grid is more quantized values, a total of 2' distinct points for a filter
dense near the point z = f l than for shift realizations. with c coefficients. This scheme is illustrated in Figure 2
Hence with delta realizations, the locations of poles and ze- by the dashed arrows.
roes near zero frequency can be more accurately controlled. Searching a larger neighborhood using this method is
This makes delta filters more appropriate for realizing nar- not computationally feasible for most cases, although even
rowband filters with limited wordlength than shift realiza- better quantized solutions might be found that way.
tions Delta filters excel in applications where the sampling
frequency is very high compared to the frequency band of
interest, as in digital control systems [3, 41 4 Examples
In this section, we present two examples of creating finite-
3 Coefficient Quantization wordlength delta filters using fixed-point arithmetic. In
both cases, we are interested in constraining the passband
When digital filters are realized in hardware, b bits are and stopband magnitude response side prescribed limits.
used for representing the filter coefficients. The result- In both cases, we use three second-order delta filter blocks
ing level of quantization is dependent on both the type in cascade.
of arithmetic used and the number of bits available. In The design procedure used is as follows. We first cre-
fixed-point arithmetic, 2' points are evely spread over the ate a prototype filter using the elliptic approximation, per-
dynamic range, and hence the quantization resolution is form scaling to embed the gain term in the numerator
equal everywhere. Floating-point arithmetic designates TZ coefficients, and convert the coefficients to the delta do-
bits for the exponent and b - n bits for the mantissa, thus main. We then perform an exhaustive neighborhood search
effectively maintaining the same number of significant fig- by going through all the immediate quantized neighbors
ures throughout the dynamic range. While floating-point of the infinite-wordlength prototype coefficients and see
arithmetic offers a comfortable compromise between large if the specifications by any of these points. In
dynamic range and relatively fine, although variable reso- the case of three se er filters, this means consid-
lution, it requires much more complicated hardware than ering 215 = 32768 different points. If no suitable filters
fixed-point arithmetic [6]. Therefore, while floating-point were found, the number of bits available per coefficient is
arithmetic is getting increasingly popular in Digital Sig- increased by one, and a new neig hood search is per-
nal Processors (DSPs), fixed-point arithmetic is still widely formed. We also design a correspo shift domain filter
used in ASIC implementations where die area is at a pre- to see how many bits are required to implement it.
mium. When designing ASIC digital filters, the less bits In example 1, we implement a sixth-order lowpass fil-
are required to represent a number, the less silicon surface ter with upper passband edge at 0.1885 and lower stop-

84
band edge at 0.2262, denoting sampling frequency by 27~. coefficients for the block in question. After this, another
The passband magnitude response is required to stay be- block is chosen for a full neighborhood search. If no im-
tween -1.5 and +IdB, and the maximum gain at stopband provement in filter quality is achieved for a certain number
-40dB. The lowest number of bits with which the specifi- of neighborhood searches, the algorithm is terminated.
cations could be met was eight. Magnitude responses of the Using this algorithm, the search can easily be extended
prototype (solid), the directly rounded finite-wordlength beyond the immediate neighborhood, as including for in-
(dashed), and the best neighboring finite-wordlength fil- stance four of the closest points for all coefficients would
ters (dash-dotted) are shown in Figures 3 (0 to the Nyquist only mean 4' = 1024 points for a second-order block.
frequency) and 4 (passband only). Note how badly the
directly rounded filter behaves on the passband, while the
best result of the neighborhood search neatly complies with 6 Conclusions
the specifications. Direct rounding produced an acceptable
result after increasing the number of bits to nine, but 11 We have shown that for delta operator filters with finite-
bits were required for the shift operator structure of the wordlength fixed-point coefficients, some other quantized
same size to yield a result within the set boundaries, even coefficients than those obtained by direct rounding fre-
using an exhaustive neighborhood search. quently result in a more accurate approximation of the orig-
In example 2, we create a sixth-order bandpass filter inal prototype filter. Since performing an exhaustive search
with passband edges at 0.1916 and 0.3110 and stopband of the quantized neighborhood of the infinite-wordlength
edges at 0.1257 and 0.3770. Passband was constrained be- coefficients can easily become computationally unfeasible,
tween -1.5 and OdB, and stopband gain was required to be we have also outlined a computationally efficient iterative
smaller than -30dB. Again, eight bits were sufficient for method for searching the quantized coefficient space.
the neighborhood search scheme to yield an acceptable de- Our preliminary results suggest that the results pre-
sign. Magnitude responses of the prototype (solid), directly sented for delta operator filters are directly applicable to
rounded (dashed), and best neighbor filter (dash-dotted) the traditional shift operator filters as well. Confirming this
are shown in Figures 5 and 6 for the frequency range of fact would require additional studies, however. Whether
interest and the passband only, respectively. Note that extending the neighborhood search to more than one point
the directly rounded filter fails to meet the specifications in each direction can further improve quantized filter qual-
on both passband and stopband, while the neighborhood ity is a problem that also needs to be addressed in the
search reveals an adequate solution. Only when the number future. Further research is required on finding a suitable,
of bits was increased to nine could a satisfactory solution computationally light method for performing the neighbor-
be found by direct rounding. 10 bits were required by a hood search.
shift domain structure to achieve acceptable magnitude re-
sponse.
References
5 Efficient Neighborhood Search [I] G. C. Goodwin, R. H. Middleton, and H. V. Poor,
"High speed digital signal processing and control,"
Performing an exhaustive search of the quantized neigh- Proc. of IEEE, Vol. 80, pp. 240-259, Feb. 1992.
borhood for filters with many coefficients, or extending the [2] R. H. Middleton and G. C. Goodwin, Digital Con-
neighborhood beyond one point in each direction for any trol and Estimation: A Unified Approach. Eaglewood
one coefficient soon becomes computationally overwhelm- Cliffs, NJ: Prentice-Hall, 1990.
ing for modern personal computers. As revealed by our
study, searching the neighborhood can significantly im- [3] G. Li and M. Gevers, "Roundoff noise minimization
prove the quality of filters produced, however. Therefore, using delta-operator realizations," IEEE Puns. Sig.
a computationally lighter method for finding quantized co- Proc., Vol. 41, pp. 629-637, Feb. 1993.
efficients that perform better than directly rounded coeffi-
cients would be in clear demand. [4] G. Li and M. Gevers, "Comparative study of finite
One way to lower the computational burden of the wordlength effects in shift and delta operator parame-
neighborhood search is to take an iterative approach, and terizations," IEEE Tkans. Autom. Contr., Vol. 38, pp.
consider one second-order filter block at a time. This 803-807, May 1993.
greatly reduces the number of points to be examined in [5] J. Kauraniemi, T. I. Laakso, I. Hartimo, and S. J.
one search, as with five coefficients, only 25 = 32 immedi- Ovaska, "Delta operator realizations of recursive digi-
ate neighbors exist. In this approach, all filter coefficients tal direct form filters," in Proc. 12th Eur. Conf. Circ.
are first rounded directly, and then a full neighborhood Theory and Design, Istanbul, Turkey, Aug. 1995, Vol.
search is performed for one filter block at a time while keep- 2, pp. 667-670.
ing the rest of the filter coefficients stationary. Once the
neighborhood of one block has been thoroughly searched, [6] A. Antoniou, Digital Falters: Analysis, Design, and
the coefficients that produce the best results by some pre- Applications, second ed. New York, NY: McGraw-Hill,
defined measure are selected and they are set as the new 1993.

85
Figure 2. Rounding the infinite-wordlength coefficient
(circle) to the closest quantized point (solid arrow) and to
Figure 1. second-order delta-operator filter. the other neighboring quantized points (dashed arrow).

-10
O h

-30 002 004 006 008 01 0.12 014 016 018 02


FREQUENCY

Figure 3. Magnitude responses of example 1 prototype Figure 4. Passband magnitude responses of example 1
(solid), directly rounded (dashed) and best quantized prototype (solid), directly rounded
neighbor (dash-dotted) filters. Required magnitude quantized neighbor
response limits are denoted by lines.

018 02 022 0.24 028 028 0.3 032


FREQUENCY

Figure 5. Close-ups of magnitude responses of example Figure 6. Passband magnitude resp


2 prototype (solid), directly rounded (dashed), and best prototype (solid), directly rounded (
quantized neighbor (dash-dotted) filters. Required quantized neighbor (dash-dotted) filters. Required
magnitude response limits are denoted by lines. magnitude response limits are denoted by lines.

86

S-ar putea să vă placă și