## Multirate Polyphase Filters and Filter Banks, (GREEN Technology, also known as DSP Magic)

fred harris - Watch Now - DSP Online Conference 2020 - Duration: 01:37:59

Recently, someone posted a question on a DSP blog I visit occasionally. How does one design a very narrow bandwidth low pass filter? One version of the problem is a filter with 10 Hz wide pass band, a 10 Hz wide transition band, and a 1 kHz sample rate. Stopband attenuation >80 dB with passband ripple <0.01 dB. This a very bad combination: low transition bandwidth with high sample rate! I think students post their homework problems on the blog so I seldom volunteer to do their homework. I did however read the many suggestions posted on the blog submitted by regular subscribers to the blog. They were interesting to read but nothing clever and of limited value. Some were just plain silly, but to quote a famous line, “who am I to judge?” The consensus was that some problems are hard and require lots of resources, this is one of them! All it takes is lots of filter coefficients and lots of multiply and adds. 405 taps seemed to be about the right number. When I read one suggestion from someone I know at Westminster University in London, I simply had to throw my hat in the ring. It then became a game: how small could you make the filter and still satisfy the specifications? For a week I submitted daily solutions requiring fewer and fewer coefficients. I started at 38 M&A per input sample and I stopped when I reached 6 M&A per input sample!

The presentation will show how to build narrowband filters with more than an order of magnitude reduction of workload. The only requirement is that there be a large ratio of sample rate to bandwidth. Once we learn the simple trick to accomplish this reduction we pose the question, Can we achieve similar reduction in workload when there is not a large ratio of sample rate to bandwidth? The answer surprisingly is yes! We will share the recipe for the secret sauce so you too will know how wideband filters can also be implement with more than an order of magnitude workload reduction. How about an I-Q filter pair with 1400 taps per arm replaced with a resampling filter requiring only 100 real multiplies?

 italics surround text with `*asterisks*` bold surround text with `**two asterisks**` hyperlink `[hyperlink](https://example.com)` or just a bare URL `code` surround text with ``backticks`` strikethrough surround text with `~~two tilde characters~~` quote prefix with `>`

fred_hSpeaker
Score: 0 | 4 years ago | no reply

the M-path filter was designed to permit the interchange of filtering and resampling and thus only compute the output samples at a lower output sample rate. If you use the M-path without the embedded resampling you would wasting processing cycles. There is no advantage to operate systems at rates significantly above the Nyquist rate. It just raises the cost and the temperature.
fred h

Johnn
Score: 0 | 4 years ago | no reply

Explained everything very well
mycoles

Score: -1 | 4 years ago | 2 replies

Thank you a lot for the graet talk!

When I do downconversion instead of throwing extra samples away I accumulate and average them. Is it meaningful to do? Can it be implemented in polyphase filter?

fred_hSpeaker
Score: 0 | 4 years ago | 1 reply

By down conversion do you mean I-Q down conversion or heterodyne with quadrature mixers or multipliers. Filtering after the down conversion is required to average away the sum frequency resulting from the products. The polyphase version of down conversion avoids the complex products at the high input rate.
does this help?

Score: 0 | 4 years ago | no reply

fred
I am sorry if my question made you confused. Thank you a lot for reply!
I meant downsampling. In my application I do downsampling of the radar signal (not I-Q) which comes on 800Hz sample rate by 64 and then filter the result to get clear vital signal.
I just do not discard input samples but accumulate and average 64 samples for one output sample.

fred_hSpeaker
Score: 0 | 4 years ago | 1 reply

You are not discarding samples you are redistributing them... each path is taking 1-mth of the input sample and the remaining samples are being processed by the other M-1 paths. the down sampling happens per path but not the sinput sample stream... the commutator is like playing cards... when the dealer distributes the cards to different players, the total number of cards remains the same... the players just process their assigned subset.

Score: 0 | 4 years ago | no reply

fred
Thank you for the nice example! It is more clear now.
So we use all of the input samples but propagate them through different paths by commutator. And if we don't use resample on the output then the sample rate of the input and output signals are same. Is it correct?

jgaid
Score: 0 | 4 years ago | no reply

thank you and Well done!

Leonard
Score: 0 | 4 years ago | 1 reply

managers always want more as well!

fred_hSpeaker
Score: 0 | 4 years ago | no reply

That too!
fred

TheBOOM
Score: 0 | 4 years ago | 1 reply

On 'Down Sample Complex Digital IF', is it correct to say that we're still shifting the freq of the signal down, but after we filter our band of interest first? If we're filtering with a digital filter, then doesn't that present the same high-sample-rate challenge? Is the downsample done by reducing the output sample rate, compared to the input sample rate? thx!

fred_hSpeaker
Score: 0 | 4 years ago | no reply

there are two steps.. the equivalency therom interchanges thedown converter and the filter. the down converter the steps to te downside of the down sampler and runs at output rate. the second step is to convert up-converted filter to a polyphase and pull the resampler to its input side. the intenal rotators become a constant on each path and can be pulled out of the filter weights and applied to the output of the path filters . Since we have not selected the desired nyquist zone to extract from the filter path de=rotaed sum.. we can use the filter path sums for form all the de-aliased baseband channel time series. the IFFT makes the cast insignificant> nothing runs at the high input rate now!

TheBOOM
Score: 0 | 4 years ago | 1 reply

Equivalency: Which samples are getting discarded?

fred_hSpeaker
Score: 0 | 4 years ago | no reply

TheBOOM,

Good question. Nyquist doesn't address the phase of the samples we keep...only spacing between them but there is no reference time 0. When we build the polyphase filter the starting point is undefined... Unless there is a refernce like a second resampler to which we are keepning them phase locked. I have used the starting point as part of a time synchronizing system. in the M-path polyphase all paths are equivalent except for different delays... that's why we can to time synchronization by inserting or removing delay by changing which weights are in the signal path... amkes a great interpolator chain too!

SteveBragg_Neptune
Score: 0 | 4 years ago | no reply

Dr harris, I appreciate you so much. At my company, all of our 902-928 MHz receivers for meter reading are based on your polyphase channelizer. My colleague has just completed a new implementation using Winograd (prime-factor) Fourier Transforms. We both owe you a debt of gratitude.

Michal
Score: 0 | 4 years ago | no reply

Wow, my mind is boiling. I have known undersampling technique as a super smart. And there is so much more! Thank you very much and hope that the second edition of book will be available soon. Best regards and chapeau bas!

scaffee
Score: 1 | 4 years ago | no reply

fred harris is fantastic as always!
Can't wait for the next edition of your book, fred!

woodpecker
Score: 1 | 4 years ago | no reply

Terrific fred, Looking forward to the new edition of your book - It'll keep me occupied for months !

Lalu
Score: 0 | 4 years ago | no reply

Thanks Fred for your wonderful presentation. My curiosity has been piqued and I will now read up on Multi Rate Filters, about which I know nothing.
Lalu

Danilo
Score: 0 | 4 years ago | no reply

Fantastic.
Simply unbeatable.
Best prof ever.

Leandro
Score: 1 | 4 years ago | no reply

Thank you so much Professor Harris!! That was such a master class.

TheBOOM
Score: 0 | 4 years ago | no reply

"Since i'm here and you're not, i'm going to keep going." :D

TheBOOM
Score: 0 | 4 years ago | no reply

Deep and entertaining talk!

Graeme
Score: 0 | 4 years ago | no reply

Delighted to hear there's a new version of the book. It's a good one. Just be cautious about grey-market international versions (ethics aside, the last edition was missing material. Or so I've heard.)

Leonard
Score: 0 | 4 years ago | no reply

Fred you could self publish and make it available in electronic form

Leonard
Score: 0 | 4 years ago | 1 reply

Product placement?

Stephane.Boucher
Score: 0 | 4 years ago | no reply

haha!