Lably
Skip to content

Upsampling

Digital signal resampling method

  • 3 min read
  • 4 chapters

Related on Lably

Through Dot product and Data stream

Upsampling by an integer factor

Rate increase by an integer factor L can be explained as a 2-step process, with an equivalent implementation that is more efficient:

  1. Expansion: Create a sequence, xL[n], comprising the original samples, x[n], separated by L−1 zeros. A notation for this operation is: xL[n]=x[n]↑L.
  2. Interpolation: Smooth out the discontinuities using a lowpass filter, which replaces the zeros.

In this application, the filter is called an interpolation filter, and its design is discussed below. When the interpolation filter is an FIR type, its efficiency can be improved, because the zeros contribute nothing to its dot product calculations. It is an easy matter to omit them from both the data stream and the calculations. The calculation performed by a multirate interpolating FIR filter for each output sample is a dot product:

where the h sequence is the impulse response of the interpolation filter, and K is the largest value of k for which h[j+kL] is non-zero.


In the case L=2, function h can be designed as a half-band filter, where almost half of the coefficients are zero and need not be included in the dot products. Impulse response coefficients taken at intervals of L form a subsequence, and there are L such subsequences (called phases) multiplexed together. Each of L phases of the impulse response is filtering the same sequential values of the x data stream and producing one of L sequential output values. In some multi-processor architectures, these dot products are performed simultaneously, in which case it is called a polyphase filter.

For completeness, we now mention that a possible, but unlikely, implementation of each phase is to replace the coefficients of the other phases with zeros in a copy of the h array, and process the xL[n] sequence at L times faster than the original input rate. Then L−1 of every L outputs are zero. The desired y sequence is the sum of the phases, where L−1 terms of the each sum are identically zero. Computing L−1 zeros between the useful outputs of a phase and adding them to a sum is effectively decimation. It's the same result as not computing them at all. That equivalence is known as the second Noble identity. It is sometimes used in derivations of the polyphase method.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Computing and communication