3.17  Advanced: Multirate Processing

Many modern DSP systems adopt distinct sampling rates along the processing chain, using interpolators and decimators. Two basic blocks of these multirate processing systems are the upsampler and downsampler.

3.17.1  Upsampler and interpolator

The upsampler has an output q[m] = x[mL] for any m that is an integer multiple of L and 0 otherwise. It is represented by

x[n] L q[m].

Note that distinct indexes m and n are used to emphasize the sampling rates are not the same.

The upsampling by L is not a time-invariant operation (in spite of being linear), so the system is not LTI. When the input is a WSS process, the output process cannot be assumed WSS.

The Fourier transform of the upsampler output is given by:

Q(ejΩ) = X(ejLΩ),
(3.98)

which corresponds to scaling the abscissa Ω by the factor L such that Q(ejΩ) is a compressed version39 of X(ejΩ).

Figure 3.66 provides an example where the original spectrum X(ejΩ) is an ideal lowpass filter with cutoff frequency Ωc = π4 rad. After upsampling by L = 4, the resulting Q(ejΩ) has not a lowpass spectrum anymore. In fact, the new “high frequency” components in Q(ejΩ) are required to enable the amplitudes of the upsampler output q[m] to vary from/to zero between two original samples of the (relatively “smooth”) input x[n].

PIC

Figure 3.66: Original spectrum X(ejΩ) (top) and its upsampled version Q(ejΩ) = X(ejLΩ) with L = 4 (bottom). For convenience, the abscissa was normalized by π such that the value (in red) of X(ejΩ) at Ω = 2π rad (f = 2) appears in Ω = π2 rad (f = 0.5) for Q(ejΩ).

Notice that there is no aliasing or change in spectrum amplitude involved in this process, but within [π,π[ rad, Q(ejΩ) has L versions of what was the original X(ejΩ) in the range [π,π[ rad as emphasized in Figure 3.67. In this example, with L = 4, the equivalent of four replicas of the original spectrum can be found within [π,π[ rad: the ones centered at f = 0.5,0,0.5 and half of the replicas in f = 1 and 1.

PIC

Figure 3.67: Zoom of the bottom plot of Figure 3.66: due to the upsampling by L = 4, Q(ejΩ) has four replicas of the original lowpass spectrum.

The autocorrelations Rx[lL] and Rq[l] of the signals at, respectively, the input and output of an upsampler are related by

Rq[l] = { Rx[lL], l = 0,±L,±2L, 0, otherwise.
(3.99)

Assuming the entire bandwidth of the input is of interest, in order to eliminate all images within the interval [π,π[ except the one centered at Ω = 0 (DC), a lowpass filter Hi(z) should have a stopband starting at πL. Otherwise, imaging will occur. Hence, an interpolator is composed of an upsampler and a lowpass filter, which is represented by

x[n] L q[m] Hi(z) x~[m].

3.17.2  Downsampler and decimator

Meanwhile, the downsampler can be represented by

z[m] M y[n].

and has an output y[n] = z[nM]. Its spectrum can be expressed as:

Y (ejΩ) = 1 M k=0M1Z(ej(Ω2πk)M)
(3.100)

In other words, the spectrum Y (ejΩ) of the downsampled signal is the sum of M stretched versions of the spectrum Z(ejΩ) of the input signal z[m].

As discussed in Example 1.5, the transformation (Ω 2πk)M of the independent variable Ω corresponds to stretching the frequency axis by M and shifting this intermediate result by 2πk rad. As indicated in Eq. (3.100), these M individual versions are summed and the result is scaled by 1M.

Figure 3.68 illustrates an example in which the original spectrum Z(ejΩ) is downsampled by M = 3. As indicated by Eq. (3.100), Y (ejΩ) is composed by M = 3 parcels and each one represented by one color in Figure 3.68.

PIC

Figure 3.68: Original spectrum Z(ejΩ) (top) and the result Y (ejΩ) (bottom) of downsampling it by M = 3.

If one considers a single parcel Z(ej(Ω2πk)M), it can be observed that a parcel itself is not periodic in Ω = 2π, as required for any discrete-time signal spectrum. For example, Z(ejΩ3)(in blue) alone does not have a period of 2π. The replica at Ω = 2π rad of the original spectrum is shifted to M × 2π = 6π in Y (ejΩ) and, consequently, Z(ejΩ3) does not have a replica at 2π nor 4π, but only at Ω = 6π and multiples. But when the parcel Z(ejΩ3) is combined with Z(ej(Ω2π)3) (in red) and Z(ej(Ω4π)3) (in black), the resulting spectrum indeed indicates that Z(ejΩ) has a period of 2π.

Since the maximum frequency that can be represented after downsampling is reduced by a factor of M, any frequency beyond πM in the input will be aliased into the central period of the downsampled signal, as indicated by the M 1 replicas in Eq. (3.100). Hence, a decimator is composed of an anti-alising filter Hd(z) designed with stopband edge at πM and a downsampler, as illustrated in

z~[m] Hd(z) z[m] M y[n].

Note that an interpolator uses a lowpass filter after the upsampling operation to combat imaging, while a decimator uses the lowpass filter before downsampling in order to control aliasing.