You are on page 1of 5

892

IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS—II: EXPRESS BRIEFS, VOL. 60, NO. 12, DECEMBER 2013

Hardware-Efficient Implementation of Half-Band IIR
Filter for Interpolation and Decimation
I. H. H. Jørgensen, P. Pracný, and E. Bruun, Senior Member, IEEE

Abstract—This brief deals with a simple heuristic method for
the hardware optimization of a half-band infinite-impulse response (IIR) filter. The optimization method that is proposed here
is intended for a quick design selection at the system level, without
the need for computationally intensive calculations and simulations. The aim is to arrive at a design with low hardware complexity that is measured in terms of the number of adders. In the
approach that is presented here, the filter specification is treated
with some flexibility at the topmost system level. The half-band
filter is implemented as a parallel connection of two all-pass filter
cells. The filter is designed by first fixing the most sensitive filter
coefficient to a convenient value that can be quantized by using
only a few adders. Subsequently, the overdesign margin is used
to coarsely quantize the remaining filter coefficients and thereby
minimize hardware demands. The complexity of the resulting IIR
filter is evaluated by counting all the adders in the filter, i.e.,
the adders for both the filter coefficients and the filter cells. The
result of the method is compared with state-of-the-art works where
the filter is designed by using the fixed filter specification and
advanced algorithms to minimize the hardware that is used to
implement filter coefficients.

Fig. 1. Example of a multistage interpolation filter with four stages, performing a sample-rate increase of 64.

Fig. 2. IIR filter using a parallel connection of two all-pass cells H0 (z −2 )
and H1 (z −2 ), which is used as the first stage of the filter in Fig. 1. X(z −2 )
and Y (z −1 ) are the input and output signals, respectively. The filter runs at
2fs, in .

Index Terms—Decimation, digital filter, half-band filter, hearing
aid, infinite-impulse response (IIR) filter, interpolation, interpolation filter, low power, low voltage, sigma–delta Σ−Δ modulator.

I. I NTRODUCTION

O

VERSAMPLED digital-to-analog (D/A) converters, such
as a Σ−Δ modulator, are widely used in systems in
which the signal bandwidth can be limited to a fraction of the
system’s operating frequency [1]. This greatly helps in relaxing
the circuit requirements, e.g., the matching of components, at
the expense of a high-frequency operation. Due to the oversampling nature of Σ−Δ modulators, an interpolation filter is
needed prior to the modulator. To reduce the hardware demands
and power consumption, the state-of-the-art D/A converter
designs implement the interpolation filter as a multistage filter
[1]. An example of an interpolation filter that increases the input
signal sampling frequency fs, in 64 times and that consists of
four stages can be seen in Fig. 1.
With the first stage of the interpolation filter implemented as
a half-band FIR filter, this stage becomes the most hardware
demanding of all filter stages [1], [2]. To reduce the hardware

Manuscript received July 10, 2013; accepted October 9, 2013. Date of
publication November 1, 2013; date of current version December 24, 2013.
This brief was recommended by Associate Editor Y. Miyanaga.
The authors are with the Department of Electrical Engineering, Technical University of Denmark, 2800 Kongens Lyngby, Denmark (e-mail:
ihhj@elektro.dtu.dk; pp@elektro.dtu.dk; eb@elektro.dtu.dk).
Color versions of one or more of the figures in this brief are available online
at http://ieeexplore.ieee.org.
Digital Object Identifier 10.1109/TCSII.2013.2285975

Fig. 3. Second-order all-pass filter cell that is running at (a) 2fs, in and
(b) fs, in .

demands and power consumption, a half-band IIR filter can
be used instead if the requirement for phase linearity is not
strict [3]. For this purpose, the design optimization using a
polyphase IIR structure of all-pass filter cells for sample-rate
conversion was originally proposed in [4] (see Figs. 2 and 3). A
thorough description is given in [3], and a genetic algorithm
was used to design such a filter in [5]. Various options for
the all-pass IIR filter cells (with transfer functions H0 (z −2 )
and H1 (z −2 ) in Fig. 2) and their sensitivity to coefficient
quantization can be found in [6] and [7].
The filter that is used in this brief to implement the interpolation is shown in Fig. 2. Each of the all-pass filters, i.e.,
H0 (z −2 ) and H1 (z −2 ), in Fig. 1 are constructed using one or
more second-order all-pass filters, effectively resulting in a halfband IIR filter [3], i.e.,
H(z) = H0 (z −2 ) + z −1 H1 (z −2 )

1549-7747 © 2013 IEEE

=

K1
K0  

a0, k + z −2
a1, k + z −2
−1
+
z
.
−2
1 + a0, k z
1 + a1, k z −2

k=1

k=1

(1)

Thus. The transfer function is most sensitive to the change of the coefficient corresponding to the pole that is closest to the unity circle in the z-domain. where ωp and ωs are the normalized passband and stopband cutoff frequencies.JØRGENSEN et al. 3 by 1% while leaving the other coefficients unchanged results in the dash–dotted (blue) transfer function.: IMPLEMENTATION OF HALF-BAND IIR FILTER FOR INTERPOLATION AND DECIMATION 893 Fig. The smallest coefficient a1. Applying a 1% change to a0. IIR filter transfer function sensitivity to coefficient changes. The optimization methods in the state-of-the-art works is discussed in Section II.. In Section III. 2 and a1. 6. therefore. This makes this filter suited for the implementation in which both area and current consumption are a primary consideration. avoiding multipliers. Results are summarized in Section IV. they can be realized. resulting in the smallest number of adders [6]. To illustrate this effect. The largest coefficient a0. To reduce the hardware demands in the IIR filter. which results in filter designs with hardware complexities on par with the designs that are obtained using much more computationally intensive methods. In [7]. 5. ωp = 1 − ωs . 3 corresponds to the pole that is closest to the unity circle. 1 corresponds to the pole that is farthest from the unity circle. running at half the sampling rate [3]. and dp ∼ d2s /2 [4]. respectively. 6 shows a transfer function of a half-band IIR filter using a parallel connection of two allpass cells. 5. Example designs are included. First. it is an advantage to use as few adders as possible. and dp . offering the opportunity for hardware-efficient implementation. Due to the symmetric properties of a half-band filter. filter in the state-of-the-art works is the following [6]. 3(b). A genetic algorithm is used to find the combination of the quantized coefficients. the stateof-the-art works focus on filter coefficients and their implementation as a sum of integer powers of two. it can be seen that the . In a modern CMOS process. The adders represent the majority of the hardware that is needed to construct the filter. the power consumption is of extreme importance. and dp and ds are the passband ripple and the stopband ripple. therefore. 3(a). The largest of the coefficients corresponds to the pole that is closest to the unity circle. as shown in Fig. as the all-pass sections are constructed using H0 (z −2 ) and H1 (z −2 ). This half-band filter holds two advantages. a step-by-step method is proposed. II. This allows the coefficients to be implemented using only the shifters and adders/subtractors. Fig. which is shown as the dotted (red) curve. is judged by counting the number of adders that is needed to implement the coefficients. 1. The filter coefficients are listed in the Step 1 column in Table I. and the resulting diagram for the second-order all-pass filter is shown in Fig. hearing aids [2]. respectively. Fig. Second. IIR filter from Fig. Given ωp . A diagram for one of the second-order all-pass filters can be implemented by only using two adders. 6. the complexity of the filter in the state-of-the-art works. 4. such as in [6]–[8]. the order of the parallel all-pass filters must be determined so that the filter specifications are met after the filter coefficients are quantized and implemented using only the shifters and adders/subtractors. ωs . such as hearing aids. avoiding multipliers. Simplified transfer function of a general half-band filter. they do not incur any additional hardware. 1 results in the dashed (green) curve and the solid (black) curve. it is shown that the sensitivity of the coefficients increases as the position of the pole corresponding to a coefficient approaches the unity circle in the z-domain. but for some battery-powered applications. 2. in . Changing a0. where filters H0 (z −2 ) and H1 (z −2 ) are operated at fs. respectively. F ILTER -D ESIGN M ETHOD D ISCUSSION A transfer function of a half-band polyphase IIR filter as a parallel connection of two all-pass filters is shown in Fig. the area of an adder is insignificant. the number of coefficients and adders is lower. 4.g. In Fig. The approach that is chosen to design and minimize the IIR Fig. as shown in Fig. Since shifts can be simply implemented by rewiring the individual bits of a binary word. e. K0 and K1 are the number of the second-order allpass filters that are used in each branch of the filter in Fig. Here. reducing the number of adders is a good system-level optimization to achieve both high hardware and power efficiency in the application-specific integratedcircuit implementation.

1. Thus. 3.05 kHz. performing a sample rate increase by a factor of two (see Fig. and input sampling frequency fs. The methods that are described in [5]–[8] deal with a minimization of the number of adders that is needed for the coefficients. leaving a margin of approximately 20 dB for the quantization of the filter coefficients. Step 2) A list of 16-bit-long words with all the possible combinations of signed bits set to one is created using simple MATLAB scripts. performing decimation. IIR filter transfer function plot in Steps 1. 1 is designed as a parallel connection of two all-pass filter cells. therefore.1 dB is allocated to the first half-band IIR filter. the filter cell that is shown in Fig. 1) does not contain any . However.. 1 is changed by 1%. of all the coefficients. A stopband ripple in the range of 55–60 dB is sufficient for a hearing aid since a speech input signal of normal intensity is about 60 dB above the threshold of hearing. 3 is changed by 1% and the smallest change when coefficient a1. and it is optimized with respect to the hardware demands. 1) and (16. The filters are designed for interpolation.093. Due to the symmetry of the half-band filter. 60. For this reason. This allows the first filter stage to be implemented as an IIR filter [2]. with the x of the 16 bits set to +/−1. A detailed study of coefficient sensitivity and the use of all-pass filter cells that are more resistant to coefficient quantization can be found in [7]. The analytic design method in [4] gives the transfer function in Fig. Performing similar investigations on other filters of any order will also reveal that. out = 44. a stopband ripple of ds = −58 dB has been selected.05 kHz.1 dB is used for the high-fidelity audio application [2]. VOL.. x) consists of all possible 16-bit values. Hearing aids normally have a bandwidth of BW = 10 kHz [2]. even for a person with normal hearing. 7. and the normalized transition band is ωt = ωp − ωs = 0. Once this list is available. 2 with the all-pass sections of Fig. 2) are investigated. the value slots (16. it can be reused for other designs. ωs = 1 − ωp = 0. the first stage of the multistage filter in Fig. the filter is designed for an attenuation of 80 dB.4535. the largest is the most sensitive and is likely to incur the largest number of adders when quantized. and dp = 0. Filter 1 is used to explain the simple heuristic step-by-step design method that results in hardware complexity comparable to the state-of-theart designs that are obtained using more complicated design techniques. NO. In the first step. the output sampling frequency is fs. III. The all-pass cell in Fig. a passband ripple of 0. in = 22. the same coefficients can be used for filters. Step 3) The largest of all the coefficients (a0. 12. 3 should be designed for ωp = 0.g.4535. Filter 1: In applications such as hearing aids. 7 (the red dotted curve) and the coefficients in the Step 1 column in Table I. when evaluating the filter complexity. e. the all-pass filter cells also need adders for the implementation. in = 44. 2). In this example. The interpolation factor is two.1 kHz) = 0. For the present design for hearing aids.1 kHz. 3 is used for the design. the total number of adders that is used for the coefficients and for the filter cells should be calculated. and ds = −58 dB. A word length of 16 bits is sufficient as it is well above the coefficient sensitivity. the input sampling frequency in this example is half of the standard high-fidelity audio sampling frequency fs. Filter 2 and Filter 3 are used to show a comparison of the proposed method with the current state-of-the-art designs of [6] and [8] where numerical optimization methods are used. Therefore. The 16-bit values are sorted into slots. and 4. 3 in this case) corresponds to the pole that is closest to the unity circle in the z-domain. can be implemented using the smallest number of adders).5 dB is chosen for the whole filter chain in Fig. slot (16. the normalized passband cutoff frequency is ωp = (2π × 2 × 10 kHz)/(2π × 44.5465. For the present design. To fulfill the Nyquist criterion. Slot (16.e. but because of the duality.894 IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS—II: EXPRESS BRIEFS. For example. It is the most sensitive to quantization [7] and is likely to incur the largest number of adders of all the coefficients. A passband ripple of 1 dB is audible. and a ripple of 0.1 dB. dp = 0. A detailed discussion of the interpolation filter specifications for hearing aids is given in [2]. 3 only requires two adders.1 kHz/2 = 22. DECEMBER 2013 TABLE I IIR F ILTER C OEFFICIENT VALUES IIR filter transfer function shows the most substantial change when coefficient a0. H EURISTIC F ILTER -D ESIGN M ETHOD W ITH E XAMPLES Three design examples are presented. an overdesign is applied: instead of a stopband attenuation of 58 dB. These slots contain values with the most coarse quantization (i. Fig. the audio quality requirements are relaxed compared with high fidelity. specifying the number of bits that is set to one. Step 1) The half-band IIR filter in Fig.

the next most sensitive coefficient to be determined is a1. example 3] and [6. example 9]. Moreover. the remaining stopband ripple margin is used for coarse quantization. 3 can be now implemented using only one adder (see Table I). a half-band filter with specifications taken from the works in [6] and [8] has been designed.5 and 1. (16. Moreover.2.: IMPLEMENTATION OF HALF-BAND IIR FILTER FOR INTERPOLATION AND DECIMATION TABLE II C OMPARISON OF THE D ESIGN M ETHODS AND H ARDWARE D EMANDS value between 0. 2). This changes the specification of normalized transition band ωt from 0. This gives 16 adders in total for the entire filter using the simple heuristic method that is presented here. 3 . it does not provide a candidate for quantizing a0. It is possible to relax the specification of the transition band to ωt = 0. The search starts with choosing the closest possible smaller or larger values from slot (16. 3). The resulting number of adders used for all coefficients is eight. etc. The resulting transfer function fulfills the original specification of Step 1 and can be seen in Fig. as in Step 1) such that a0. respectively. with two adders in each cell. Filter 2: For comparison purposes. the stopband attenuation was degraded. 3 exactly corresponds to 0. using the analytic method of [4]. 1). thus. It can be seen that the simple method presented here results in filter complexities that are comparable with what can be achieved using more complicated approaches. With the most sensitive coefficient fixed to a0. Details of the calculation are given in Table IV. notice that the sampling rate of the proposed filter is only fs . At the same time. and the passband ripple is well within the specification of dp = 0.0746 and gives the dashed (green) transfer function in Fig. with two adders in each cell (see Fig. the filter is designed using the half-band IIR filter in Fig. the number of adders that is used for the filter with the same specification with the works in [6] and [8] can be estimated to 30 adders and 17 adders. The quantized coefficients are listed in the Step 4 column in Table I.44 and ds = −46 dB. There were no better results found for this design by running the script. this results in ωs = 0. If the filter using the quantized coefficient does not fulfill the specification. ωp = 0. This results in ten adders to implement the coefficients. there are six second-order all-pass cells (one cell per coefficient). Due to the symmetric properties of the half-band filter. 7 and the new filter coefficients in the Step 3 column in Table I. 3. The analytic method in [4] and the given steps result in four second-order all-pass cells (one cell per coefficient). A comparison with the design in [8] can be found in Table IV and the filter coefficients of the design using the simple method are shown in Table V. From slot (16. Step 4) In this step. 3 is 0. This results in 22 adders in total. The result of this step is that coefficient a0. 2.e. Step 4 is then repeated for the rest of the coefficients. 3 .425 and ds = −65 dB. the quantization is refined by examining the closest possible values that are available in slot (16.56 and dp ∼ d2s /2 = 1.JØRGENSEN et al. Due to the symmetric properties of the half-band filter. with the all-pass sections of Fig. Assuming three adders per cell. 4). 3 = 0. 2). The filter is now redesigned by varying ωt (again. 3). The search is continued until the filter fulfills the specification by choosing values from slots (16. A similar approach that uses the overdesign was presented in [9] where it was applied to FIR filters but without specifically exploiting the coefficient sensitivity and without expressing the coefficients as the sums of integer powers of two.9375. The designs . Again. resulting in a further reduction in the number of adders (see Table II).1 × 10−4 dB. A simple Matlab script has been run to check a large number of possible quantized coefficient 895 TABLE III IIR F ILTER C OEFFICIENT VALUES FOR F ILTER 2 TABLE IV C OMPARISON OF THE H ARDWARE D EMANDS AND S AMPLING R ATES IN F ILTERS 2 AND 3 combinations. Filter 3: A final example for the comparison is the lattice wave half-band filter design with specifications taken from [6. 7 (the solid (blue) curve). suggesting that the power consumption for this filter will be lower compared with the other designs. but the filter still fulfills the original specification of Step 1. Compared with a direct quantization of the coefficients.9375. i. The margin that is gained by the filter performance being better than needed is used for a coarse quantization of the coefficients (see Table III) to fit the specification. The filter specification for [6. this gives a reduction in the number of adders by approximately 20% (see Table II) for this design.9375. this results in ωs = 0. quantizing them one by one in descending order.093 to 0. the value that is closest to a0..2 dB. example 6] are ωp = 0.575.

1669–1673. 2012. Z. the proposed filter offers the opportunity for low-power implementation in. DECEMBER 2013 TABLE V IIR F ILTER C OEFFICIENT VALUES FOR F ILTER 3 coefficients. and T. Telecommun. Sep. vol. 130. vol. pp. “Design and realization of efficient IIR digital filter structures based on sensitivity minimizations. Khan. [5] J. NO. 299–308. Dec. Mehboob. 2005. Devices Syst. The proposed method results in hardware complexities on par with the stateof-the-art filter examples that are designed using more computationally intensive methods. Dec. Constantinides. 6. ISPA. P. [6] V. Llimós. Cable Broadcast. The margin that is gained from the overdesign in the stopband attenuation is utilized to permit a coarse quantization of the [1] R. hearing aid applications [2]. M. no. Hoboken. “A systematic algorithm for designing multiplierless computationally efficient recursive decimators and interpolators. pp. 2007. [2] P. 1. 24–39. vol. vol. Yli-Kaakinen and T. 54. Conf. 167–172. G Circuits. Anzova. Nikolova. Saramäki. no.. ch. 8th Int. Electron. .” in Proc. 1983. R EFERENCES fulfill the same specification. “FIR filter design methodology for hardware optimized implementation. it has been obtained using a quick and easy design methodology.” in Proc. Bruun. 364–367.” IEEE Trans. [7] G. 744–747. “Example modulator systems. and V. J. 1838–1851. pp. “Digital signal processing schemes for efficient interpolation and decimation.” IEE Proc. which is measured in terms of the number of adders. Circuits Syst. “Interpolation filter design for hearing-aid audio class-D output stage application. 4th Int.. and E.. Saramäki. Yli-Kaakinen and T. Papers. G. Renfors and T. Ivanova. pp. IEEE APCCAS. A. Serv. 2006.” IEEE Trans. Reg. NJ. 225–235. VOL. Although the design presented here does use a slightly higher number of adders. 2007. 2009. [9] R.” IEEE Trans. Jan. “Recursive Nth-band digital filters— Part I: Design and properties. C ONCLUSION A simple optimization method is presented for a half-band IIR filter in order to obtain a low hardware complexity of the filter. S. 55.” in Understanding Delta-Sigma Data Converters. and R. 12. [8] J. Saramäki.896 IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS—II: EXPRESS BRIEFS. pp. no.. ICECS. C. Modern Satellite. “An algorithm for the design of multiplierless IIR filters as a parallel connection of two allpass filters. 2005. Temes. The optimization relies on the overdesign of the IIR filter at system level and the application of simple all-pass filter cells. IV. I. Consum. Qamar. Valenzuela and A. Anzova. e. Aug. “A systematic algorithm for the design of lattice wave digital filters with short-coefficient wordlength. Aug.” in Proc. [4] R. 3. 60. Schreier and G. Circuits Syst. 9. 34.. Dec. Yli-Kaakinen. A. pp. Sep. Pracný.” in Proc.g. Taking the lower sampling rate into account. 1987. [3] M. Symp. The complexity of the resulting IIR filter is evaluated by counting all the adders in the filter. Stoyanov. K. The filter coefficients are quantized. pp. 8. I. Saramäki. pp. no. starting with the most sensitive coefficient and proceeding with the less sensitive coefficients. USA: IEEE Press.