Sign in

username:

password:



Not a member?

Search blogs



Search tips

Articles by category

Our Bloggers

DSP Blogs > Markus Nentwig > Polyphase filter / Farrows interpolation

Markus Nentwig
Markus received his Dipl. Ing. degree in electrical engineering / communications in 1999. Work interests include RF transceiver system design, implementation and modeling, towards the long term evolution of UMTS. He is a member of research staff at Nokia Research Center. | Personal Website

RSS Feed

Would you like to be notified by email when Markus Nentwig publishes a new blog?

  

Polyphase filter / Farrows interpolation

Posted by Markus Nentwig on Sep 18 2007 under Basics   

Hello,

this article is meant to give a quick overview over polyphase filtering and Farrows interpolation.

A good reference with more depth is for example Fred Harris' paper: http://www.signumconcepts.com/IP_center/paper018.pdf

The task is as follows:
Interpolate a band-limited discrete-time signal at a variable offset between samples.
In other words:
Delay the signal by a given amount with sub-sample accuracy.
Both mean the same.

The picture below shows samples (black) representing a continuous-time waveform (blue).

discrete-time samples and the equivalent continuous-time waveform

Conceptually, the problem is "easy" to solve:

Reconstruct the continuous-time waveform from the samples,
then
resample as desired

Ideal reconstruction of the blue curve requires an ideal lowpass filter. It can be approximated by a FIR filter to any desired accuracy (but the better the filter, the more latency is introduced to the system).

Another approximation can be made: Instead of delaying the signal in arbitrary small steps, it may be sufficient to limit the accuracy to a fraction 1/N of a sample. In my example I'm using 1/8.
This limitation will be lifted at the end, when the polyphase filter is developed into the Farrows interpolator.

Accordingly, the task is now:
Interpolate the signal by a factor of N (in the example 8)
and
decimate with an offset according to the delay, also called "decimation phase".

Interpolation is done by inserting zero samples... (picture)

discrete-time samples and the equivalent continuous-time waveform

... and lowpass-filtering (picture).

discrete-time samples and the equivalent continuous-time waveform

Out of N samples, the one with the desired offset is now picked out. The other N-1 samples are discarded by decimation.

For example: decimation for a 1/8 offset, only the red samples 'survive':

discrete-time samples and the equivalent continuous-time waveform

 

Alternative decimation phase: Delay 2/8 samples, the green samples are of interest:

discrete-time samples and the equivalent continuous-time waveform

 

Another decimation phase for 3/8 samples delay (blue samples)

discrete-time samples and the equivalent continuous-time waveform

 

A possible FIR filter implementing the lowpass and decimation is shown below:
For the 1/8 delay case, only the red taps are nonzero, the other samples are discarded (decimated):
Delay by 2/8 uses only the green taps, delay by 3/8 only the blue taps and so on.

discrete-time samples and the equivalent continuous-time waveform

A real FIR filter designed to typical requirements (most notably passband ripple, alias rejection, width of the transition region), may easily require 100 taps or more. It will be much longer than shown.

Of course, an implementation according to above picture would be very inefficient, since most parts of the filter aren't doing anything (not contributing to the output).
This can be seen in the following picture, showing the same filter with all "decimated" branches removed.

discrete-time samples and the equivalent continuous-time waveform

Only one out of 8 taps is nonzero. Also, N-1 zero samples are created at the input for every actual sample, and they cannot contribute to the output.
As a result, the filter can be simplified, and the N-1 zero samples per input sample are omitted.
The picture below shows three filters for different decimation phase, delaying the signal by 1/8, 2/8 or 3/8 of a sample, respectively.

discrete-time samples and the equivalent continuous-time waveform

Note that in comparison to the full-length FIR filter, the length has shrunk by a factor of N (8 in the example). Only one of the above filters is needed at a time. So one filter is sufficient, with N banks of coefficients that are selected by a "commutator switch".

discrete-time samples and the equivalent continuous-time waveform

Even though the number of delays and multipliers has been reduced, the total number of coefficients remains the same as in the original filter.

The higher the required subsample accuracy N, the more coefficients are needed.
Instead of stacking more and more coefficients for each multiplier, it is possible to fit one polynomial to the series of coefficients for each multiplier. Its variable is the desired subsample delay, corresponding to the position of the commutator switch in the above picture.

The Farrows interpolator replaces each column of coefficients with a polynomial.

So much for now...
I hope the material has been useful to give some overview on the topic.
If you have comments or questions, please reply to the blog or send me a mail.
Especially "bug reports" are always welcome.
And thanks for reading!

Cheers

Markus

Another free reference: http://www.acoustics.hut.fi/~vpv/publications/icassp00-fd.pdf

PS: Be careful with using equiripple filter designs (Parks McClellan) for Farrows scheme.
The outermost points of the impulse response do not form a "smooth" curve. They are a discontinuity and cannot be easily approximated by a polynomial.
This issue does not appear with a simple polyphase implementation of the same filter.



Rate this article:
4.75
Rating: 4.75 | Votes: 4
 
posted by Markus Nentwig
Markus received his Dipl. Ing. degree in electrical engineering / communications in 1999. Work interests include RF transceiver system design, implementation and modeling, towards the long term evolution of UMTS. He is a member of research staff at Nokia Research Center. | Personal Website

Previous post by Markus Nentwig: Through the tube...
Next post by Markus Nentwig: Delay estimation by FFT
all articles by Markus Nentwig

Would you like to be notified by email when Markus Nentwig publishes a new blog?

  


Comments


 

meomeo wrote:

10/3/2007
 
hello!
Do you know linear interpolation of linear prediction coefficients in speech coding?. If you know that, could you explain it to me?
Thanks a lot
 

mnentwig wrote:

10/3/2007
 
Hello,
sorry, my knowledge in that area is quite basic. But maybe one of the other bloggers would like to pick up the topic?
 

Andrew Elder wrote:

10/4/2007
 
Markus,

I'm looking forward the the Farrows Interpolation details that I assume will follow.

How doe this technique compare with Polyphase IIR methods implemented using allpass subfilters - described in "DSP System Design" by Krukowski and Kale ?
 

mnentwig wrote:

10/9/2007
 
Hello,

a good place for details regarding Farrows interpolation is the reference at the beginning of the article. I think I won't go any deeper into the details here.

About FIR/IIR, it's a tricky question. Which one is better?
Maybe it's best to compare alternative designs for a particular set of requirements.
In general, FIRs have the advantage of linear phase, but IIR allpasses can reportedly achieve "almost" linear phase. The advantage of IIR filters is almost instantaneous response, whereas FIR filters pay for the linear phase with longer latency.

Maybe I should add one comment:
If I were faced with a problem that requires a Farrows interpolator, the first thing I'd do is to have a look at the system design and try to get rid of it...
 

rifo wrote:

10/11/2007
 
Great article!!
Please keep up the good work
 

rajbaret wrote:

10/17/2007
 
How are these coefficients generated ?Can anyone give some pointers to this?
Is there any way to use the same coefficients to use for all the other delay paths and move them circularly for the result to be delayed more or less ?
 

mnentwig wrote:

10/21/2007
 
Hello,

the coefficients are obtained with standard FIR filter design methods, for example the filter design tool in Matlab. There is the usual tradeoff between passband ripple, stopband attenuation and filter size.


And yes, a polyphase filter can be used as a variable delay line. For example, the red, green and blue coefficient sets would correspond to three different delays. Use the output samples that correspond to one bank (for example "green") and simply don't calculate the others (red, blue, ...).
 

cpshah99 wrote:

5/15/2008
 
HI Markus,

Can u please tell me how can I introduce ISI and doppler in the transmitted signal to check if my receiver corrects the ISI and doppler or not.

I am using channel B of proakis [0.407 0.815 0.407];

Thanks.

Regards,

Chintan

Add a Comment
You need to login before you can post a comment (best way to prevent spam). ( Not a member? )