Professional Documents
Culture Documents
In contrast to the tradtional interpolation (see eq. (2)) the h(t) = N-1 (t) (11)
desired signal value srek (t) is no longer a weighted sum of
with
the samples s(nT ) but can formulated as a weighted sum of
general coefficients c(nT ) [4]. N-1 (t) = (0 * 0 * . . . * 0 )(t) (12)
N-times
srek (t) = c(nT) h(t - nT ) (6)
1 for - T / 2 < t < T / 2
n=-
(t) =
0
1/ 2 for |t| = T / 2 (13)
This form is called generalized interpolation and is carried
0 otherwise
out in two separate steps. Equation (6) is only the second
with W = 2 f T / L, and GB-spline (W) = GB-spline (z)z=W being
N N
The B-spline 0 is very similiar to the nearest neighbor in-
terpolation (also called zero-order hold), 1 is equivalent to the frequency response of a simple FIR-filter (see table 2 * )
[7]. The filter HCIC (W) = HCIC (z)z=W is a simple running
N N
the linear interpolation. Both B-splines fulfil the interpola-
tion constraint. This is not true for N 3 anymore. Thus,
N
a pre-filter HPF (z) = 1/ HS (z) of order N is required (see N
N
GB-spline (z)
tab. 1). 1 1
N 2 1
N HPF (z) 3 (z + 6 + z-1 )/ 8
1 1 4 (z + 4 + z-1 )/ 6
2 1 5 (z + 76z + 230 + 76z-1 + z-2 )/ 384
2
3 8/ (z + 6 + z-1 ) 6 (z2 + 26z + 66 + 26z-1 + z-2 )/ 120
4 6/ (z + 4 + z-1 )
5 384/ (z + 76z + 230 + 76z-1 + z-2 )
2
N
Table 2: Transfer function of the FIR-filter GB-spline (z)
6 120/ (z2 + 26z + 66 + 26z-1 + z-2 )
N
Table 1: Transfer function of pre-filter HPF (z) = 1/ HS (z) of sum filter (causal notation)
order N for B-splines of degree (N - 1) N N
1 - z-L
L-1
N
HCIC (z) = K z O = K
-n
O (20)
n=0
1 - z-1
For the case of increasing the sample rate of s(k T ) by
an integer factor L only some samples of h(t) are required mostly implemented as the well-known CIC-filter [6].
but not the whole function h(t). In the case of spline- Hence, the implementation of a spline-interpolator can be
interpolation the reconstruction function becomes realized very efficiently (see fig. 3).
The combination of the B-spline with the pre-filter is
h(kT / L) = N-1 (t)t=kT / L (14) called cardinal spline. Since the pre-filter is a symmetric
hS (kT ) = N-1 (t)t=kT (15) IIR filter, the cardinal spline has infinite support (duration).
Therefore there is no closed solution for the cardinal spline.
Interpreting equation (6) as a convolution we obtain a dig- The reconstruction function and the pre-filter are described
N
ital system as shown in figure 2 where H(z) is the Z- separately. However, the frequency response HC-spline (W) of
transform of h(kT / L) and HPF (z) the Z-transform of h-1 (kT ) the cardinal spline (overall system) can be formulated as a
(see eq. (10)). product of pre-filter and reconstruction function (see fig. 3)
N
HC-spline (W) = HPF
N
(LW) HB-spline
N
(W) (21)
c(kT ) 1
s(kT ) HPF (z) L H(z) srek (nT / L) = N-1 HPFN
(LW) HCICN
(W) GNB-spline (W) (22)
L
with W = 2 f T / L. Figures 4 and 5 show an example of
Figure 2: Increasing the sample rate by an integer factor L impulse and frequency response of a spline interpolation
filter.
N
0.8
N HPF (z)
1 1
0.6
2 1
amplitude
J8 L2L-1 N Jz + 6 LL+1/ -1
2 2
2 -1 + z N
3
0.4
3
J6 L2L-1 N Jz + 4 LL+1/ -1
2 2
2 -1 + z N
2
BSpline 4
0.2
0
N
Table 3: Transfer function of pre-filter HPF (z) for CIC-filter
0.2
of degree N (In practical cases the numerator will be mostly
4 3 2 1 0 1 2 3 4 set equal to one.)
normalized time t=k T/L
BSpline
N
H
CIC
() now (see eq. (3)).
40
The frequency response of the thus extended CIC-
interpolator for an up-sampling factor L (see fig. 6) is
60
N
HE-CIC (W) = HPF
N
(LW) HCIC
N
(W) (23)
80 N
sin LW/ 2
= HPF (LW)N K O (24)
sin W/ 2
100
0.5 0 0.5
normalized frequency F=/(2*) with W = 2 f T / L. For the extended CIC-decimator for
a down-sampling factor M (see fig. 7) we get get a very
Figure 5: Frequency response of a cubic (N = 4) spline- similiar equation
interpolation filter with L = 5
sin MW/ 2 N
N
HE-CIC (W) = K O HPF
N
(MW) (25)
sin W/ 2
A CIC-filter for interpolation of order N as well as a sam-
N with W = 2 f T . Impulse and frequency response of the ex-
pled B-spline hB-spline (kT / L) has zeros at W0 = 2n/ L with tended CIC-filter are actually very similiar to that of the
n [1, L-1] of order N. These zeros are responsible for the spline interpolators. The influence of the dropped filter
attenuation of the imaging components. B-splines of order N
GB-spline (z) GN (z) = 1 is negligible.
N have 2 d(N - 1)/ 2t additional zeros improving the stop-
band attenuation only very slightly. Therefore they should Of course, there were several other ideas to correct the se-
N vere passband droop of CIC-filters like sharpening or using
be omitted. However the thus resulting pre-filter HPF (z) de-
so-called ISOP-filters as pre- or post-filters, but the exten-
dxt means the greatest integer less than or equal to x. sion by an IIR-filter performs in a much better way [8, 9].
CIC-interpolator
c() N N
s(kT ) HPF (z) I1 - z-1 M L I 1-z1 -1 M srek (nT / L)
CIC-decimator
N N
c()
s(kT ) I 1-z1 -1 M M I1 - z-1 M HPF (z) s(nMT )
modified CIC-filter
time-variant implementation
NI NI +ND ND
s(kT ) HI,PF (z) I1 - z-1 M L I 1-z1 -1 M M I1 - z-1 M HD,PF (z) s(nMT / L)
5 CIC-filters for sample rate conver- 6 Polynomial filters for sample rate
sion by rational factors conversion by rational factors
Until now we have only dealt with integer factor sample rate Spline-interpolators as well as extended CIC-interpolators
conversion, namely interpolation and decimation. But the are special types of polynomial interpolation filters using
required sample rate conversion factor can be any rational the generalized interpolation (6). An example of poly-
or even irrational number. Assuming that each irrational nomial interpolation filters using the traditional interpola-
factor can be sufficiently approximated by some rational tion (2) are the Lagrange-interpolators. That means that for
factors, only rational factors will be treated. all these interpolators of a given order N, the number of
To realize sample rate conversion by arbitrary rational concatenated polynomials Np and the coefficients ci, j (see
factors, an interpolator and a decimator have to be cascaded. eq. (5)) are predefined. However, sometimes it is necessary
Using an extended CIC-interpolator of order NI and an ex- to design a filter with some certain characteristics, which
tended CIC-decimator of order ND leads to the structure are not covered by special filters. Some filter design strate-
shown in figure 8. Although this solution seems simple, gies are dicussed in [2] and [11]. A detailed comparison of
there is a big problem. The intermediate signal between a lot of special polynomial filters can be found in [4]. Fig-
interpolator and decimator as well as the whole integrator ures 9 and 10 show an example of an optimized polynomial
section is clocked L-times the input sample rate. Such im- filter, where in contrast to the B-splines the transfer zeros
plementations will overstrain any feasible hardware. But in the stopband (potential aliasing components) are spread
there are two facts from which it is possible to take advan- getting a wider stopband. This filter looks very similiar to
tage: 1) the integrator section is fed with L-1 zeros between the so-called o-MOMS, which perform the best signal re-
each pair of input samples, and 2) the integrator section cre- construction for a given effort [15].
ates output samples which will never be used by the follow- A cascade of up-sampler, polynomial filter, and down-
ing differentiator section because the down-sampler drops sampler permits sample rate conversion by arbitrary ratio-
all samples except each Mth sample. The combination of nal factors. Still, we have the same problems as cascad-
the integrator section with the up-sampler and the down- ing CIC-interpolators and -decimators. A implementation
sampler can be realized by a periodically time-variant sys- which avoids the high intermediate sample rate and creates
tem, clocked either at input or output sample rate. For a de- only the required output samples, is the so-called Farrow
tailed discussion of the time-variant (modified) CIC-filters structure (see fig. 11) [12]. The Farrow structure consists of
see [10, 14]. Meanwhile the CIC-filters have a multiplier- N FIR-filter branches and the length of each branch filter is
free structure, their time-variant implementation requires Np . The fixed coefficients ci, j describe the impulse response
multipliers now. The required hardware effort is compa- h(t) = i pi (t) (see eqs. (4) and (5)). More details about the
rable with that of the Farrow-structure (see next section). Farrow structure can be found in e.g. [2, 12, 13, 14].
s(kT ) or
c(kT ) z-1 z-1
control(nMT /L)
+ + + srek (nMT / L)
j=1 ci, j ci, j ci, j
+ + +
j=2 ci, j ci, j ci, j
+ +
j=N ci, j ci, j ci, j
i=
Np
-1 i=
Np
-2 i=-
Np (nMT / L)
2 2 2
Figure 11: Farrow structure realizing sample rate conversion by means of polynomials of length T
+ + + z-1
i=
N
- 2p ci, j ci, j ci, j z-1
+ + + z-1 +
i=
N
- 2p +1 ci, j ci, j ci, j
z-1
s(nMT / L) or
+ + + z-1 +
c(nMT / L)
i=
Np
2 -1 ci, j ci, j ci, j
integrate
and dump
s(kT )
(kT ) control(nMT /L)
Figure 12: Transposed Farrow structure realizing sample rate conversion by means of polynomials of length MT / L
It is important to remark repeatedly that the length A very detailed derivation of this structure can be found in
of the polynomials pi (t) are bounded to the input sam- [14]. The transposed Farrow structure is very similiar to
ple period T . Thats why, the Farrow-structure is not a the original one. There is only an additional integrate and
very suitable choice for sample rate conversion by ratio- dump unit required. For more details see [13, 14]. The
nal factors. This is because the Farrow-structure can only length of the polynomials pi (t) are now bounded to the
realize interpolation filters which are in fact very good anti- output sample period MT / L.
imaging filters, but what we really need are anti-aliasing It is very interesting that the same filter coefficients ci, j
filters. Thus, if the impulse response h(t) is built up by can be used for both structures, resulting in an interpola-
polynomials of length MT / L instead of T , it would be pos- tion or a decimation filter, respectively. Hence, all well in-
sible to design anti-aliasing filters. Or equivalently, if the vestigated interpolation algorithms like spline or Lagrange
impulse response h(t) of the interpolation filters we dealt interpolation can be used for decimation and sample rate
with in this paper, is scaled in time by the factor M/ L, the conversion by rational factors, too. Of course, scaling the
frequency response will be scaled by L/ M, thus transform- filter h(t) in time means that the interpolation constraint (3)
ing the image rejection into an aliasing rejection property. is no longer hold, but it does not matter, because we do not
The transposed Farrow structure is exactly the looked for want to reconstruct the whole signal s(t) but only prevent
counterpart of the (original) Farrow structure (see fig. 12). aliasing distortions within the channel of interest.
A second solution is to truncate the infinite impulse re-
1 truncated impulse response sponse and implement this windowed filter as a stable FIR-
of overall system
filter. It is quite sensible to merge this FIR-filter with a
0.8 prior or following filter task (possibly matched filtering) by
convolution of both impulse responses.
0.6 A third solution is to take use of the zero-pole cancella-
amplitude
N
40 Hoptfilter()
where the scaling factor 6/ (Cz + 2) can be neglected in most
practical cases (see fig. 13). The coefficient Cz depends on
60
the location of the transfer poles p1 and p2 and is
80
Cz = - ApD
1 + p2 E
D
(28)
100 For
0 the cubic spline-interpolator
0 the poles are at p1 = -2 +
3 and p2 = -2 - 3.
120 The drawback of this solution is that the unstable poles
0.5 0 0.5
normalized frequency F=/(2*)
must be exactly cancelled by zeros. Therefore Cz must not
be rounded. However, this again is equivalent to the trun-
Figure 10: Frequency response of a cubic (N = 4) opti- cation of the infinite impulse response of the pre- or post-
mized polynomial based interpolation filter with L = 5 filter. The window length is 2D - 1 samples for the example
above.
which is the case in image processing. length is equal to the block length of the input signal.
z-1 z-D
+ Cp Cz +
z-1 z-D
s(kT ) + + c(kT )
turned to a transposed Farrow structure which automati- [8] Alan Y. Kwentus, Zhongnong Jiang, and Alan N.
cally results in the required anti-aliasing properties, it is Willson. Application of Filter Sharpening to Cascaded
now possible to use a transposed form of spline interpo- Integrator-Comb Decimation Filters. IEEE Transac-
lation. This automatically scales the filter properly in time tions on Signal Processing, 45(2):457467, February
and frequency, thus transforming the image rejection into 1997.
an aliasing rejection property. Compared with traditional
solutions this approach reduces the required effort consid- [9] Hyuk J. Oh, Sunbin Kim, Ginkyo Choi, and Yong H.
erably. Lee. On the Use of Interpolated Second-Order Poly-
nomials for Efficient Filter Design in Programmable
Downconversion. IEEE Journal on Selected Areas in
References Communications, JSAC-17(4):551560, April 1999.
[1] T. Hentschel, M. Henker, and G. P. Fettweis. The Dig- [10] M. Henker, T. Hentschel, and G. P. Fettweis. Time-
ital Front-End of Software Radio Terminals. IEEE variant CIC-filters for sample-rate conversion with
Personal Communications, 6(4):4046, August 1999. arbitrary rational factors. In IEEE 6th Interna-
tional Conference on Electronics, Circuits and Sys-
[2] Jussi Vesma and Tapio Saramaki. Interpolation fil- tems (ICECS 99), pages 6770, Paphos, Cyprus, 5.-
ters with arbitrary frequency response for all-digital 8. September 1999.
receivers. In Proc. IEEE Int. Symp. on Circuits and
Syst. (ISCAS 96), pages 568571, Atlanta, GA, USA, [11] Jussi Vesma. A frequency-domain approach to
May 1996. polynomial-based interpolation and the Farrow struc-
ture. IEEE Transactions on Circuits and Systems
[3] Dengwei Fu and Alan N. Willson. Interpolation II: Analog and Digital Signal Processing, 47(3):206
in Timing Recovery Using a Trigonometric Polyno- 209, March 2000.
mial and its Implementation. In Proc. IEEE Global
Telecommunications Conference (Globecom 98), [12] C. W. Farrow. A Continuously Variable Digital Delay
volume Mini Conference Record, pages 173178, Element. In Proc. IEEE International Symposium on
Sydney, Australia, November 1998. Circuits and Systems (ISCAS 88), pages 26412645,
Espoo, Finland, June 1988.
[4] Philippe Thevenaz, Thierry Blu, and Michael Unser.
Interpolation Revisited. IEEE Transaction on Medical [13] Tim Hentschel and Gerhard Fettweis. Continuous-
Imaging, 19(7):739758, July 2000. Time Digital Filters for Sample-Rate Conversion in
Reconfigurable Radio Terminals. In Proceedings of
[5] Michael Unser. Splines, a perfect fit for signal and the European Wireless, pages 5559, Dresden, Ger-
image processing. IEEE Signal Processing Magazine, many, 12.-14. September 2000. VDE, VDE Verlag
16(6):2238, November 1999. Berlin Offenbach.
[6] Eugene B. Hogenauer. An Economical Class of Dig- [14] Tim Hentschel. Multirate Systems for Sample Rate
ital Filters for Decimation and Interpolation. IEEE Conversion in Software Radio. PhD thesis, Dres-
Transactions on Acoustics, Speech and Signal Pro- den University of Technology, Dresden, Germany,
cessing, ASSP-29(2):155162, April 1981. September 2001.
[7] Michael Unser, Akram Aldroubi, and Murray Eden. [15] Thierry Blu, Philippe Thevenaz, and Michael Unser.
Fast B-spline transforms for continuous image rep- MOMS: maximal-order interpolation of minimal sup-
resentation and interpolation. IEEE Transac- port. IEEE Transactions on Image Processing,
tions on Pattern Analysis and Machine Intelligence, 10(7):10691080, July 2001.
13(3):277285, March 1991.