Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Polyphase filter banks

ProblemSplit a wideband signal into many equally spaced frequency channels, each at a reduced sampling rate (a channeliser), and recombine channels into one signal
Devised byMaurice Bellanger and J. L. Daguet (1974), the polyphase DFT filter bank; Ronald Crochiere and Lawrence Rabiner (1981), weighted overlap-add; P. P. Vaidyanathan (1987–1993), perfect-reconstruction theory; fred harris (2003), polyphase channelisers for radio
AccuracyAnalysis channels have the prototype’s response (60 dB stopband by default, test below); oversampled synthesis reconstructs the input to better than −65 dB with the default prototype; critically sampled synthesis is exact only for one-tap-per-phase prototypes (table below)
CostPer block of input samples: multiply-adds for a prototype of taps, and one -point FFT
Read firstResampling: polyphase, half-band and CIC filters
APICriticallySampledPolyphaseAnalysisFilterBank, CriticallySampledPolyphaseSynthesisFilterBank, OversampledPolyphaseAnalysisFilterBank, OversampledPolyphaseSynthesisFilterBank

Overview

A uniform DFT filter bank splits a signal into channels centred on , , each band-pass filtered by a shifted copy of one low-pass prototype and decimated. Built directly it needs filters running at the full rate. The polyphase structure gets every channel from one shared polyphase filter and a single FFT per output block, at roughly the cost of filtering the input once. With decimation by the bank is critically sampled. With decimation by it is oversampled by , which relaxes the prototype’s transition band and suppresses aliasing between channels. A synthesis bank reverses the process. Channelisers of this kind sit in every wideband radio receiver, spectrum monitor and radio telescope correlator.

Where it is used

A filter bank splits a wideband signal into many narrow channels efficiently.

  • Software-defined radio and radio astronomy. A polyphase filter bank channelises the whole band into thousands of channels for spectrometers and receivers.
  • Communications. Multicarrier systems (FBMC, OFDM-like) and satellite transponders that separate many users.
  • Audio coding. MP3 and AAC split sound into subbands before quantising each according to how audible it is.
  • Cost. The polyphase structure with an FFT is far cheaper than separate filters.

History

Maurice Bellanger and J. L. Daguet (1974) introduced the polyphase network with an FFT to build transmultiplexers for telephony, which converted between frequency-division and time-division multiplexed channels. Ronald Crochiere and Lawrence Rabiner (1981) gave the weighted overlap-add formulation. P. P. Vaidyanathan, Mark Smith, Thomas Barnwell and others (1980s) worked out the conditions for perfect reconstruction. fred harris’s work (2003) on polyphase channelisers made oversampled banks with arbitrary output rates standard in software radio.

The idea

The polyphase analysis bank

The task. A filter bank splits a wide-band signal into adjacent frequency channels, each delivered as its own low-rate signal: a radio receiver separating many stations at once, for example. The direct construction uses one band-pass filter per channel. All of them have the same shape, obtained by shifting a single low-pass prototype filter to the centre frequency of each channel, which amounts to multiplying its taps by a complex exponential. Each channel occupies only of the band, so its output can be decimated, keeping one sample in every .

Built this way the bank costs filters, each running at the full input rate. The polyphase form computes all channels for the price of one filter and one FFT.

The derivation. Channel of the bank filters by and decimates. The key observation is that the exponential repeats with period in , so taps that are apart share the same factor. Splitting the filter sum into interleaved parts accordingly, , the output at block time is

The inner sum does not depend on the channel . It is the input, delayed by , filtered by the -th phase of the prototype (every -th tap, starting from tap ): a polyphase component. The outer sum, over , is an -point DFT of these components. So the channels are obtained together: compute the polyphase components, which uses each of the taps once, and take one FFT. One block costs multiply-adds and one FFT, however many channels there are. The default prototype is a Kaiser-window low-pass with cutoff at half a channel spacing and 60 dB attenuation:

Figure 15.18. Channel responses.

Each channel is a shifted copy of the prototype’s response, with 60 dB of rejection outside its band.

The sample places back must be multiplied by the tap . Reversing the prototype within each block of taps leaves a prototype of ones unchanged, so a test with that prototype cannot see the error, but with the default prototype the channels’ side lobes are only 15–20 dB down.

Critical sampling and oversampling

Decimating each channel by keeps the total sample rate equal to the input’s, but a practical prototype’s transition band then overlaps the neighbouring channels, and their aliases fold into each channel. Decimating by (oversampling by 2) leaves room for the transition band, so a channel is free of aliases from its neighbours. This is the usual choice for channelisers.

Synthesis and reconstruction

A synthesis bank interpolates each channel, modulates it back to its centre frequency, and sums. In polyphase form, each frame is inverted by an unnormalised inverse FFT, , and overlap-added through a synthesis filter : the frame whose newest input sample was adds to output sample . Substituting the analysis bank gives, in the frequency domain,

up to a linear phase. The terms are aliases of the input. The output is a delayed copy of the input when two conditions hold. First, the channels add up flat: is constant. Second, there is no aliasing: is zero wherever an image is not. The combined delay of and must also be a multiple of , so that the copies from different channels add in phase.

The default prototype, a low-pass whose −6 dB point is at , has shifted copies that add to one. With oversampling, , its images at multiples of lie beyond . So a low-pass with cutoff and the same transition width passes every channel’s band unchanged and stops the images. That is the oversampled synthesis bank’s default, scaled for unit gain (). With critical sampling, , the images begin where the channels’ transition bands do, and no FIR removes them. A critically sampled DFT bank reconstructs only if each polyphase component of the prototype is a single tap, as for the rectangular prototype that makes the bank a block DFT. (Critically sampled perfect reconstruction with good channel selectivity needs other structures, such as cosine-modulated banks.) Measured with white noise, after the best delay and complex gain are removed:

Table 15.14. Reconstruction by the polyphase filter banks.

bank (16 channels)prototype filterbest delay (samples)best gainrelative RMS error after removing delay and gain
critically sampledone tap per phase (rectangular)01.00002.6e-16
critically sampleddefault (Kaiser, 60 dB)2240.94081.8e-1
oversampled ×2one tap per phase (rectangular)01.00002.5e-16
oversampled ×2default (Kaiser, 60 dB)2240.99943.5e-4
oversampled ×4default (Kaiser, 60 dB)2240.99981.4e-4

The oversampled banks reconstruct to the level of the 60 dB filters, delayed by the prototype’s length minus . The critically sampled bank with the default prototype leaves an aliasing error of about a fifth of the signal. Use it as a channeliser, or for analysis followed by synthesis only with a one-tap prototype.

Algorithm

For channels, decimation and a prototype of length .

Analysis bank (a stream).

  1. Keep the last input samples.
  2. After every new samples, form the polyphase sums: for , , the products of every -th tap, starting at tap , with the samples the same distances back from the newest.
  3. Arrange the in the order the FFT expects (reversed), and take an -point FFT. Its outputs are the channel samples for this block.

Each block costs multiply-adds and one FFT of length .

Synthesis bank (a stream), with a synthesis filter .

  1. Take the unnormalised inverse FFT of each incoming frame of channel samples, giving .
  2. Add , for every tap index of the synthesis filter, into an accumulator, starting at the output sample , where is the index of the newest input sample of the frame. The frame’s values are thus repeated periodically under the filter.
  3. Emit the oldest samples of the accumulator, which no later frame can change, and shift the accumulator.

Implementation

        let mut poly = vec![Complex::new(0.0, 0.0); self.channels];
        let l = self.history.len();
        for (k, pk) in poly.iter_mut().enumerate().take(self.channels) {
            let mut acc = Complex::new(0.0, 0.0);
            for r in 0..self.phases {
                let s_off = r * self.channels + (self.channels - 1 - k);
                // The prototype tap for the sample s_off places before the newest one.
                let t_idx = s_off;
                let s_idx = l - 1 - s_off;
                acc += self.history[s_idx] * self.taps[t_idx];
            }
            *pk = acc;
        }
        let z = self.ifft.execute(frame)?;
        // Output index of filter tap 0 for this frame: (t + 1)·hop − M (may be negative at the start).
        let start = ((self.frames + 1) * self.hop) as isize - self.channels as isize;
        for (v, &fv) in self.filter.iter().enumerate() {
            let n = start + v as isize;
            if n < self.next_out as isize {
                continue;
            }
            let i = n as usize - self.next_out;
            if i >= self.acc.len() {
                self.acc.resize(i + 1, Complex::new(0.0, 0.0));
            }
            self.acc[i] += z[v % self.channels] * fv;
        }
        self.frames += 1;
        // Later frames only touch outputs from (t + 2)·hop − M on, so everything before is final.
        let complete = ((self.frames + 1) * self.hop).saturating_sub(self.channels);
        while self.next_out < complete {
            out.push(self.acc.pop_front().unwrap_or(Complex::new(0.0, 0.0)));
            self.next_out += 1;
        }
  • The number of channels must be a power of two, and a supplied prototype’s length a multiple of it.
  • Oversampled banks take the oversampling factor (a power of two dividing ); their hop is .
  • The banks take complex input and produce one complex vector of channels per block, through the StreamOperator interface.
  • Both synthesis banks share one overlap-add engine; with_synthesis_filter replaces the default filter, and synthesis_filter returns it.

In practice

//! Channelising a signal with a polyphase DFT analysis filter bank.

use lib_jsl_dsp::discrete::spectral::oversampled_polyphase_filter_bank::OversampledPolyphaseAnalysisFilterBank;
use lib_jsl_dsp::discrete::stream_operator::StreamOperator;
use num_complex::Complex;
use std::f64::consts::PI;

fn main() {
    // Two complex tones, in channels 2 and 5 of a 8-channel bank.
    let m = 8;
    let x: Vec<Complex<f64>> = (0..1024)
        .map(|n| Complex::from_polar(1.0, 2.0 * PI * 2.0 / m as f64 * n as f64) + Complex::from_polar(0.1, 2.0 * PI * 5.1 / m as f64 * n as f64))
        .collect();
    let mut bank = OversampledPolyphaseAnalysisFilterBank::new(m, 2, None).unwrap();
    let frames = bank.process(&x).unwrap().unwrap();
    println!("{} frames of {} channels (hop {})", frames.len(), m, m / 2);
    let tail = &frames[frames.len() / 2..];
    for c in 0..m {
        let p = tail.iter().map(|f| f[c].norm_sqr()).sum::<f64>() / tail.len() as f64;
        println!("channel {c}: {:7.1} dB", 10.0 * p.max(1e-30).log10());
    }
}
256 frames of 8 channels (hop 4)
channel 0:   -91.3 dB
channel 1:   -74.4 dB
channel 2:     0.0 dB
channel 3:   -74.4 dB
channel 4:   -89.2 dB
channel 5:   -20.0 dB
channel 6:   -91.9 dB
channel 7:   -95.8 dB

The strong tone appears in channel 2 and the weak one (−20 dB, slightly off the centre of channel 5) in channel 5. The other channels see only the prototype’s stopband leakage, more than 74 dB down.

Strengths

  • Many channels for the cost of one filter and one FFT per block; every channel has the prototype’s selectivity.
  • Oversampling suppresses aliasing between channels with modest prototypes.

Weaknesses

  • Critically sampled DFT banks cannot reconstruct with selective prototypes; oversampling costs times more channel samples.
  • Fixed, uniform channel spacing; power-of-two channel counts only.

Exercises

  1. Derive the polyphase form of the analysis bank from the definition of channel ’s filter .
  2. Show that with a one-tap-per-phase prototype the critically sampled analysis bank is a block DFT, and its synthesis bank the inverse.
  3. For an oversampled bank with , find the largest transition band a prototype can have without aliasing between adjacent channels.
  4. Derive the frequency-domain expression for above from the analysis and synthesis formulas.
  5. Show that a critically sampled DFT bank with an FIR synthesis filter reconstructs only if every polyphase component of the prototype is a monomial.
Hints and answers
  1. . Split : the factor depends only on (the phase) and , so each channel is the same polyphase sum with an extra DFT across .
  2. A one-tap-per-phase prototype has nonzero only for : each output is the DFT of a block of input samples (times the taps), i.e. a block DFT, and the synthesis bank applies the inverse DFT.
  3. With decimation by the spectrum repeats every of the sampling rate while channels are spaced apart; adjacent channels overlap in aliases unless the transition band is narrower than the gap of .
  4. Write the decimated channel outputs as shifts and apply the synthesis filters; sum over channels and decimation phases to get , with the terms being aliases.
  5. Without decimation redundancy, aliasing cancellation requires each polyphase component of the (FIR) prototype to be invertible by a causal FIR filter, which for FIR polyphase components means a pure delay with a gain: a monomial.

Further reading

  • M. G. Bellanger and J. L. Daguet, “TDM-FDM transmultiplexer: digital polyphase and FFT”, IEEE Transactions on Communications 22 (1974) 1199–1205.
  • R. E. Crochiere and L. R. Rabiner, Multirate Digital Signal Processing, Prentice Hall, 1983, chapter 7.
  • P. P. Vaidyanathan, Multirate Systems and Filter Banks, Prentice Hall, 1993.
  • f. j. harris, Multirate Signal Processing for Communication Systems, Prentice Hall, 2004.