SlideShare a Scribd company logo
1 of 4
Download to read offline
TWO-STAGE POLYPHASE INTERPOLATORS AND 
DECIMATORS FOR SAMPLE RATE CONVERSIONS 
WITH PRIME NUMBERS 
Håkan Johansson and Lars Wanhammar 
Department of Electrical Engineering, Linköping University 
S-581 83 Linköping Sweden 
Tel: +46 13 284421 
e-mail: hakanj@isy.liu.se 
Abstract 
In this paper we demonstrate that it can be 
advantageous from a computational point of view 
to use a two-stage realization instead of a single-stage 
realization for sample rate conversions with 
prime numbers. One of the stages performs a 
conversion by a factor of two using linear-phase, or 
approximately linear-phase, half-band filters. The 
other stage changes the sample rate by the 
rational factor N/2 using a linear-phase FIR filter. 
The actual filtering can be performed at the lowest 
of the two sample frequencies involved. It is also 
possible to exploit the coefficient symmetry of the 
linear-phase FIR filter in the stage that changes 
the rate by a rational factor. The overall workload 
of the two-stage realization can therefore be 
reduced compared with the corresponding single-stage 
realization. 
1 INTRODUCTION 
Interpolation and decimation can be performed 
efficiently using a polyphase structure. This 
structure is based on a decomposition of the overall 
transfer function, H(z), into N subfilters Hn(zN), 
such that H(z) can be rewritten in the form 
N−1 
Σ Hn (zN ) (1) 
H(z) = z−n 
n=0 
where N denotes the sample rate conversion ratio. 
When the polyphase structure is used for sample 
rate conversions by a factor N, the filters Hn(zN) 
can be realized to work at the lower sample 
frequency, as illustrated in Figs. 1 and 2. The 
arithmetic workload is thereby reduced by a factor 
N. 
The filter H(z) can always be restated in the 
form of (1) if it corresponds to an FIR filter. In the 
IIR case, the most efficient filters are obtained by 
letting the subfilters be allpass filters [1]. These 
filters are referred to as Nth-band IIR filters due to 
the close relationship to Nth-band FIR filters. If 
the phase behaviour is of less importance, the Nth-band 
IIR filters are known to be the most efficient 
structures for sample rate conversions with factors 
of N. 
The Nth-band IIR filters can also be realized to 
have approximately linear-phase, by letting one of 
the allpass branches consist of pure delays. 
However, the workload of these filters is 
significantly higher than for the corresponding non-linear 
phase filters. Compared with conventional 
FIR filters, they are in many cases still in favour 
though. 
From a computational point of view, it is often 
favourable to use a multi-stage realization of 
interpolation and decimation instead of using a 
single-stage realization. This holds for both FIR 
filters and Nth-band IIR filters [2, 3]. One 
drawback of this approach is that sample rate 
conversions with prime numbers can not be 
performed in a straightforward manner. However, 
by including stages that convert the sample rate by 
rational factors, it is possible to exploit the benefits 
of the multi-stage realization even in the case of 
conversions with prime numbers. 
In this paper we show that sample rate 
conversions with prime numbers for applications 
where the phase behaviour is of importance, can be 
more efficiently performed using a two-stage 
realization instead of using a single-stage 
realization. The two-stage realization uses a 
linear-phase FIR filter and a half-band filter. The 
half-band filter can be either a linear-phase half-band 
FIR filter or an approximately linear-phase 
half-band IIR filter. The latter is a special case of 
Nth-band IIR filters for N = 2. The overall 
workload of the two-stage realization can be lower 
than for the corresponding single-stage realization. 
For N > 2, the Nth-band IIR filters exhibit a 
number of extra don't care bands, as shown in Fig.
3. In some cases it is necessary to remove these 
extra bands to prevent aliasing into the transition 
band in the decimation case, and to avoid the 
corresponding imaging errors in the interpolation 
case. By using a two-stage structure, the problem 
of the extra don't care bands are eliminated. It 
should be mentioned however that aliasing into the 
transition band occurs even for the two-stage 
realization, but in this case the aliased 
components originates only from the upper part of 
the transition band. This is due to the fact that a 
half-band filter is used in one of the stages. Half-band 
filters do not have extra don't care bands, but 
their transition bands always include a quarter of 
the sample frequency. 
Following this introduction, section two presents 
the two-stage realization. In section three we 
demonstrate by means of examples that the two-stage 
structures can be more efficient, in terms of 
arithmetic operations, than the corresponding 
single-stage structures. 
x(n) 
fsample 
H0(z) 
H1(z) 
HN-1(z) 
y(m) 
Nfsample 
Figure 1. Polyphase interpolator. 
x(m) 
Nfsample 
H0(z) 
H1(z) 
HN-1(z) 
y(n) 
fsample 
Figure 2. Polyphase decimator. 
H(ejωΤ) 
ωcΤ π/N 2π/N 3π/N π 
ωΤ 
Figure 3. Magnitude response for an Nth-band IIR 
filter. 
2 TWO-STAGE REALIZATION 
To reduce the workload for interpolation and 
decimation with prime numbers we use the 
structures shown in Figs. 4 and 5. 
x(n) 2 H1(z) 
fsample 
y(m) 
Nfsample 
N H2(z) 2 
Figure 4. Two-stage structure for interpolation with a 
factor N. 
x(m) 2 H2(z) N 
Nfsample 
y(n) 
fsample 
H1(z) 2 
Figure 5. Two-stage structure for decimation with a 
factor N. 
Due to the duality between interpolation and 
decimation, we restrict the discussion in this paper 
to interpolation. Assume that the desired 
interpolation factor is the prime number N. The 
conversion is performed in two stages using the 
structure shown in Fig. 4. In the first stage, 
interpolation with the factor 2 is performed. In the 
second stage, a sample rate conversion with the 
rational factor N/2 follows. The overall converter 
thus performs interpolation with the desired factor 
N. 
The first filter can be a half-band filter working 
at the input sample frequency. Half-band filters are 
also very efficient since these have a small number 
of nonzero-valued coefficients. If the second filter, 
H2(z), is an FIR filter, not only the first filter but 
also the second filter can be realized to work at the 
input sample frequency. This is due to the fact that 
in the case of sample rate conversions with rational 
factors using FIR filters, it is always possible to 
move the downsamplers to the input of the 
converter, and the upsamplers to the output of the 
converter [4]. This is valid as long as the 
upsampling and downsampling factors are 
relatively prime. The actual filtering in the two-stage 
structure is thus performed at the lowest of 
the two sample rates involved. 
In Fig. 6 the structure for sample rate 
conversion with the factor N/2 is shown. The
downsamplers are placed at the input of the 
converter. The factors m, n, and N are related 
according to 
2n − mN = −1 (2) 
The filters G0(z) and G1(z) corresponds to the 
polyphase subfilters of the filter H2(z) in Figs. 4 
and 5, i.e. 
H2 (z) = G0 (z2 ) + z−1G1(z2 ) (3) 
If the filter H2(z) is an FIR filter, then the filters 
G0(z) and G1(z) can also be expressed in the 
polyphase forms 
N−1 
Σ G0n (zN ) (4) 
G0 (z) = z−n 
n=0 
and 
N−1 
Σ G1n (zN ) (5) 
G1(z) = z−n 
n=0 
By using polyphase structures for these two 
filters, the final structure for conversion with the 
rational factor N/2 is derived. The final structure is 
shown in Fig. 7. The filtering in this structure is 
performed at half the input sample frequency, 
which is equal to the original input sample 
frequency. All filtering in the two-stage structure is 
thus performed at the lowest of the two sample 
frequencies involved. The corresponding structure 
for conversion with the factor 2/N is easily obtained 
using the transposition theorem. 
Since the downsampling factor for the converter 
shown in Figs. 6 and 7 always is two, it is possible 
to exploit the symmetry of the coefficients of linear-phase 
FIR filters, as long as the order of the filter 
is even. This is due to the fact that in this case 
both the multiplier coefficients, corresponding to 
g(n) and g(M-n), where M is the filter order, belong 
to one and the same filter, which is either G0(z) or 
G1(z). 
In terms of number of multiplications and 
additions per sample, the two-stage structure has 
potential advantages for applications where the 
phase response is of importance. The order of a 
linear-phase FIR filter or an approximately linear 
phase Nth-band filter depends heavily on the 
relative transition band width of the filter. In the 
two-stage structure, the band width of the 
individual filters are wider than for the filter in the 
corresponding single-stage structure, which means 
that the overall complexity in some cases can be 
reduced. 
Nfsample/2 
z-m 
2 N G0(z) 
2 N G1(z) 
z-n 
x(n) 
fsample 
y(m) 
Figure 6. Sample rate conversion by N/2. 
N 
2 
z-m z-n 
N 
G0,0(z) 
G0,1(z) 
G0,N-1(z) 
Nfsample/2 
x(n) fsample 
y(m) 
N 
N 
N 
G1,0(z) 
G1,1(z) 
N 
z-1 
z-1 
z-1 
z-1 
G1,N-1(z) 
2 
Figure 7. Structure for sample rate conversion by N/2 
derived from the structure in Fig. 6 using polyphase 
decomposition. 
3 EXAMPLES 
We have considered two of the specifications in [1]. 
These are as follows: 
Ex 1: N = 3, ωcT = 0.8π/3, ωsT = 1.2π/3, 
Amin = 48 dB 
Ex 2: N = 7, ωcT = 0.8π/7, ωsT = 1.2π/7, 
Amin = 70 dB 
For the filters used in the conversion by the 
factor two, we have used approximately linear-phase 
half-band IIR filters, and linear-phase half-band 
FIR filters. For the filters that are used in 
the stages performing the sample rate changes by 
rational factors, linear-phase FIR filters were used. 
The maximal passband deviations of these filters 
were chosen to 0.2 dB. The passband ripples of the
half-band filters are uniquely determined by their 
stopband attenuations and need not be specified. 
The multiplication rates and group delay 
deviations for the two examples are summarized in 
Table 1 and Table 2, respectively. For a 
comparizon, the table also includes the results for 
the corresponding linear-phase Nth-band filters, 
and the corresponding linear-phase FIR filters, 
meeting the same requirements. 
From the tables we can see that for the first 
case where the conversion ratio is 3, the two-stage 
structure requires a larger number of 
multiplications compared with the corresponding 
single-stage 3rd-band structure. However, in many 
cases it is necessary to remove the extra don't care 
bands that Nth-band IIR filters possess, by adding 
an extra masking filter. If this is taken into 
account, the complexity of the two structures will 
be about the same. Compared with the single-stage 
FIR realization, the two-stage structure 
needs fewer operations, even when only FIR filters 
are used. 
For the second case where the conversion ratio 
is 7, the two-stage realization has a lower 
multiplication rate than the corresponding single-stage 
realizations. This holds for both the case 
where the half-band filter is realized using an IIR 
filter, and the case where it is realized using an 
FIR filter. Thus, with the two-stage approach, it is 
in this case possible to realize sample rate 
converters having exact linear phase, at a lower 
multiplier cost compared with the corresponding 
single-stage approximately linear-phase Nth-band 
IIR converters. 
Example 1, N=3 Multiplication 
rate 
Group 
delay Δτg 
Two-stage 
H1: Half-band IIR 
H2: FIR 
4 0.32 
Two-stage 
H1: Half-band FIR 
H2: FIR 
5 0 
One-stage 
FIR 
6 0 
One-stage 
3rd-band IIR [1] 
(without correction 
filter) 
2.7 0.66 
Table 1. Results from example 1. 
Example 2, N=7 Multiplication 
rate 
Group 
delay Δτg 
Two-stage 
H1: Half-band IIR 
H2: FIR 
4.1 0.15 
Two-stage 
H1: Half-band FIR 
H2: FIR 
4.7 0 
One-stage 
FIR 
7.6 0 
One-stage 
7th-band IIR [1] 
(without correction 
filter) 
6 0.38 
Table 2. Results from example 2. 
4 CONCLUSIONS 
In this paper it has been demonstrated that it can 
be favourable from a computational point of view to 
use a two-stage realization instead of a single-stage 
realization for sample rate conversions with 
prime numbers. Comparizons showed that by 
realizing the converters in two stages using only 
linear-phase FIR filters, or a combination of 
approximately linear-phase half-band IIR filters 
and linear-phase FIR filters, the workload can be 
reduced compared with realizing the converters in 
one stage using approximately linear-phase Nth-band 
IIR filters. 
The two-stage realization also eliminates the 
problem of the extra don't care bands that Nth-band 
IIR filters exhibit. Another advantage of a 
two-stage realization is that the number of 
coefficients of each of its two filters is reduced in 
comparizon with the filter that is used in the 
corresponding single-stage realization. The search 
for optimal filter coefficients for these two filters 
can be performed independently. The search time 
can thereby be reduced dramatically. 
REFERENCES 
[1] Renfors M. and Saramäki T.: Recursive Nth- 
Band Digital Filters-Part I: Design and 
Properties, IEEE Trans. on Circuits and 
Systems, Vol. CAS-34 No. 1, pp. 24-39, Jan. 1987. 
[2] Renfors M. and Saramäki T.: Recursive Nth- 
Band Digital Filters-Part II: Design of 
Multistage Decimators and Interpolators, IEEE 
Trans. on Circuits and Systems, Vol. CAS-34 No. 
1, pp. 40-51, Jan. 1987. 
[3] Crochiere R.E. and Rabiner L.R.: Multirate 
Digital Signal Processing, Prentice-Hall Inc., 
Englewood Cliffs, N. J., 1983. 
[4] Hsiao C.C.: Polyphase Filter Matrix for Rational 
Sampling Rate Conversions, IEEE Intern. Conf. 
on Acoustics, Speech, and Signal Processing, pp. 
2173-2176, April 1987.

More Related Content

What's hot

Asymmetric recursive Gaussian filtering for space-variant artificial bokeh
 Asymmetric recursive Gaussian filtering for space-variant artificial bokeh Asymmetric recursive Gaussian filtering for space-variant artificial bokeh
Asymmetric recursive Gaussian filtering for space-variant artificial bokeh
Tuan Q. Pham
 
Paper id 252014114
Paper id 252014114Paper id 252014114
Paper id 252014114
IJRAT
 
ECE 569 Digital Signal Processing Project
ECE 569 Digital Signal Processing ProjectECE 569 Digital Signal Processing Project
ECE 569 Digital Signal Processing Project
?? ?
 

What's hot (20)

FK_icassp_2014
FK_icassp_2014FK_icassp_2014
FK_icassp_2014
 
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)
 
Chapt 2
Chapt 2Chapt 2
Chapt 2
 
Multirate dtsp
Multirate dtspMultirate dtsp
Multirate dtsp
 
Multistage Implementation of Narrowband LPF by Decimator in Multirate DSP App...
Multistage Implementation of Narrowband LPF by Decimator in Multirate DSP App...Multistage Implementation of Narrowband LPF by Decimator in Multirate DSP App...
Multistage Implementation of Narrowband LPF by Decimator in Multirate DSP App...
 
Spectral Analysis of Sample Rate Converter
Spectral Analysis of Sample Rate ConverterSpectral Analysis of Sample Rate Converter
Spectral Analysis of Sample Rate Converter
 
Project 5 report 5.13 pm
Project 5 report 5.13 pmProject 5 report 5.13 pm
Project 5 report 5.13 pm
 
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
 
Asymmetric recursive Gaussian filtering for space-variant artificial bokeh
 Asymmetric recursive Gaussian filtering for space-variant artificial bokeh Asymmetric recursive Gaussian filtering for space-variant artificial bokeh
Asymmetric recursive Gaussian filtering for space-variant artificial bokeh
 
Paper id 252014114
Paper id 252014114Paper id 252014114
Paper id 252014114
 
Digital Image Processing - Frequency Filters
Digital Image Processing - Frequency FiltersDigital Image Processing - Frequency Filters
Digital Image Processing - Frequency Filters
 
Sampling theorem
Sampling theoremSampling theorem
Sampling theorem
 
Final document
Final documentFinal document
Final document
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
wcnc05
wcnc05wcnc05
wcnc05
 
ECE 569 Digital Signal Processing Project
ECE 569 Digital Signal Processing ProjectECE 569 Digital Signal Processing Project
ECE 569 Digital Signal Processing Project
 
Wavelet transform in two dimensions
Wavelet transform in two dimensionsWavelet transform in two dimensions
Wavelet transform in two dimensions
 
CHANNEL EQUALIZATION by NAVEEN TOKAS
CHANNEL EQUALIZATION by NAVEEN TOKASCHANNEL EQUALIZATION by NAVEEN TOKAS
CHANNEL EQUALIZATION by NAVEEN TOKAS
 
Estimation of Separation and Location of Wave Emitting Sources : A Comparison...
Estimation of Separation and Location of Wave Emitting Sources : A Comparison...Estimation of Separation and Location of Wave Emitting Sources : A Comparison...
Estimation of Separation and Location of Wave Emitting Sources : A Comparison...
 
Joint Timing and Frequency Synchronization in OFDM
Joint Timing and Frequency Synchronization in OFDMJoint Timing and Frequency Synchronization in OFDM
Joint Timing and Frequency Synchronization in OFDM
 

Similar to 09e4150bdb38f89ebc000000

Dct,gibbs phen,oversampled adc,polyphase decomposition
Dct,gibbs phen,oversampled adc,polyphase decompositionDct,gibbs phen,oversampled adc,polyphase decomposition
Dct,gibbs phen,oversampled adc,polyphase decomposition
Muhammad Younas
 

Similar to 09e4150bdb38f89ebc000000 (20)

Simulink based design simulations of band pass fir filter
Simulink based design simulations of band pass fir filterSimulink based design simulations of band pass fir filter
Simulink based design simulations of band pass fir filter
 
Simulink based design simulations of band pass fir filter
Simulink based design simulations of band pass fir filterSimulink based design simulations of band pass fir filter
Simulink based design simulations of band pass fir filter
 
Reducting Power Dissipation in Fir Filter: an Analysis
Reducting Power Dissipation in Fir Filter: an AnalysisReducting Power Dissipation in Fir Filter: an Analysis
Reducting Power Dissipation in Fir Filter: an Analysis
 
236628934.pdf
236628934.pdf236628934.pdf
236628934.pdf
 
Dct,gibbs phen,oversampled adc,polyphase decomposition
Dct,gibbs phen,oversampled adc,polyphase decompositionDct,gibbs phen,oversampled adc,polyphase decomposition
Dct,gibbs phen,oversampled adc,polyphase decomposition
 
Analysis and Estimation of Harmonics Using Wavelet Technique
Analysis and Estimation of Harmonics Using Wavelet TechniqueAnalysis and Estimation of Harmonics Using Wavelet Technique
Analysis and Estimation of Harmonics Using Wavelet Technique
 
Comparative Analysis of Different Wavelet Functions using Modified Adaptive F...
Comparative Analysis of Different Wavelet Functions using Modified Adaptive F...Comparative Analysis of Different Wavelet Functions using Modified Adaptive F...
Comparative Analysis of Different Wavelet Functions using Modified Adaptive F...
 
Design of Low Power Reconfigurable IIR filter with Row Bypassing Multiplier
Design of Low Power Reconfigurable IIR filter with Row Bypassing MultiplierDesign of Low Power Reconfigurable IIR filter with Row Bypassing Multiplier
Design of Low Power Reconfigurable IIR filter with Row Bypassing Multiplier
 
IRJET- MASH 1-2 Delta Sigma Modulator with Quantizer for Fractional-N Frequen...
IRJET- MASH 1-2 Delta Sigma Modulator with Quantizer for Fractional-N Frequen...IRJET- MASH 1-2 Delta Sigma Modulator with Quantizer for Fractional-N Frequen...
IRJET- MASH 1-2 Delta Sigma Modulator with Quantizer for Fractional-N Frequen...
 
Area Efficient Reconfigurable Fast Filter Bank for Multi-Standard Wireless R...
 Area Efficient Reconfigurable Fast Filter Bank for Multi-Standard Wireless R... Area Efficient Reconfigurable Fast Filter Bank for Multi-Standard Wireless R...
Area Efficient Reconfigurable Fast Filter Bank for Multi-Standard Wireless R...
 
C1102021925
C1102021925C1102021925
C1102021925
 
N010237982
N010237982N010237982
N010237982
 
Efficient Design of Higher Order Variable Digital Filter for Multi Modulated ...
Efficient Design of Higher Order Variable Digital Filter for Multi Modulated ...Efficient Design of Higher Order Variable Digital Filter for Multi Modulated ...
Efficient Design of Higher Order Variable Digital Filter for Multi Modulated ...
 
Low Peak to Average Power Ratio and High Spectral Efficiency Using Selective ...
Low Peak to Average Power Ratio and High Spectral Efficiency Using Selective ...Low Peak to Average Power Ratio and High Spectral Efficiency Using Selective ...
Low Peak to Average Power Ratio and High Spectral Efficiency Using Selective ...
 
Bf4102414417
Bf4102414417Bf4102414417
Bf4102414417
 
A HYBRID DENOISING APPROACH FOR SPECKLE NOISE REDUCTION IN ULTRASONIC B-MODE ...
A HYBRID DENOISING APPROACH FOR SPECKLE NOISE REDUCTION IN ULTRASONIC B-MODE ...A HYBRID DENOISING APPROACH FOR SPECKLE NOISE REDUCTION IN ULTRASONIC B-MODE ...
A HYBRID DENOISING APPROACH FOR SPECKLE NOISE REDUCTION IN ULTRASONIC B-MODE ...
 
A HYBRID DENOISING APPROACH FOR SPECKLE NOISE REDUCTION IN ULTRASONIC B-MODE...
A HYBRID DENOISING APPROACH FOR SPECKLE NOISE  REDUCTION IN ULTRASONIC B-MODE...A HYBRID DENOISING APPROACH FOR SPECKLE NOISE  REDUCTION IN ULTRASONIC B-MODE...
A HYBRID DENOISING APPROACH FOR SPECKLE NOISE REDUCTION IN ULTRASONIC B-MODE...
 
04 18696 ijict
04 18696 ijict04 18696 ijict
04 18696 ijict
 
Cd4301458461
Cd4301458461Cd4301458461
Cd4301458461
 
Ah34207211
Ah34207211Ah34207211
Ah34207211
 

Recently uploaded

01-vogelsanger-stanag-4178-ed-2-the-new-nato-standard-for-nitrocellulose-test...
01-vogelsanger-stanag-4178-ed-2-the-new-nato-standard-for-nitrocellulose-test...01-vogelsanger-stanag-4178-ed-2-the-new-nato-standard-for-nitrocellulose-test...
01-vogelsanger-stanag-4178-ed-2-the-new-nato-standard-for-nitrocellulose-test...
AshwaniAnuragi1
 
☎️Looking for Abortion Pills? Contact +27791653574.. 💊💊Available in Gaborone ...
☎️Looking for Abortion Pills? Contact +27791653574.. 💊💊Available in Gaborone ...☎️Looking for Abortion Pills? Contact +27791653574.. 💊💊Available in Gaborone ...
☎️Looking for Abortion Pills? Contact +27791653574.. 💊💊Available in Gaborone ...
mikehavy0
 
一比一原版(Griffith毕业证书)格里菲斯大学毕业证成绩单学位证书
一比一原版(Griffith毕业证书)格里菲斯大学毕业证成绩单学位证书一比一原版(Griffith毕业证书)格里菲斯大学毕业证成绩单学位证书
一比一原版(Griffith毕业证书)格里菲斯大学毕业证成绩单学位证书
c3384a92eb32
 

Recently uploaded (20)

Passive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.pptPassive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.ppt
 
01-vogelsanger-stanag-4178-ed-2-the-new-nato-standard-for-nitrocellulose-test...
01-vogelsanger-stanag-4178-ed-2-the-new-nato-standard-for-nitrocellulose-test...01-vogelsanger-stanag-4178-ed-2-the-new-nato-standard-for-nitrocellulose-test...
01-vogelsanger-stanag-4178-ed-2-the-new-nato-standard-for-nitrocellulose-test...
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...
 
☎️Looking for Abortion Pills? Contact +27791653574.. 💊💊Available in Gaborone ...
☎️Looking for Abortion Pills? Contact +27791653574.. 💊💊Available in Gaborone ...☎️Looking for Abortion Pills? Contact +27791653574.. 💊💊Available in Gaborone ...
☎️Looking for Abortion Pills? Contact +27791653574.. 💊💊Available in Gaborone ...
 
Dynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptxDynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptx
 
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility Applications
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
 
Working Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdfWorking Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdf
 
Basics of Relay for Engineering Students
Basics of Relay for Engineering StudentsBasics of Relay for Engineering Students
Basics of Relay for Engineering Students
 
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and ToolsMaximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
 
Databricks Generative AI FoundationCertified.pdf
Databricks Generative AI FoundationCertified.pdfDatabricks Generative AI FoundationCertified.pdf
Databricks Generative AI FoundationCertified.pdf
 
CLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalCLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference Modal
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdf
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
 
一比一原版(Griffith毕业证书)格里菲斯大学毕业证成绩单学位证书
一比一原版(Griffith毕业证书)格里菲斯大学毕业证成绩单学位证书一比一原版(Griffith毕业证书)格里菲斯大学毕业证成绩单学位证书
一比一原版(Griffith毕业证书)格里菲斯大学毕业证成绩单学位证书
 
DBMS-Report on Student management system.pptx
DBMS-Report on Student management system.pptxDBMS-Report on Student management system.pptx
DBMS-Report on Student management system.pptx
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
 
Adsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) pptAdsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) ppt
 

09e4150bdb38f89ebc000000

  • 1. TWO-STAGE POLYPHASE INTERPOLATORS AND DECIMATORS FOR SAMPLE RATE CONVERSIONS WITH PRIME NUMBERS Håkan Johansson and Lars Wanhammar Department of Electrical Engineering, Linköping University S-581 83 Linköping Sweden Tel: +46 13 284421 e-mail: hakanj@isy.liu.se Abstract In this paper we demonstrate that it can be advantageous from a computational point of view to use a two-stage realization instead of a single-stage realization for sample rate conversions with prime numbers. One of the stages performs a conversion by a factor of two using linear-phase, or approximately linear-phase, half-band filters. The other stage changes the sample rate by the rational factor N/2 using a linear-phase FIR filter. The actual filtering can be performed at the lowest of the two sample frequencies involved. It is also possible to exploit the coefficient symmetry of the linear-phase FIR filter in the stage that changes the rate by a rational factor. The overall workload of the two-stage realization can therefore be reduced compared with the corresponding single-stage realization. 1 INTRODUCTION Interpolation and decimation can be performed efficiently using a polyphase structure. This structure is based on a decomposition of the overall transfer function, H(z), into N subfilters Hn(zN), such that H(z) can be rewritten in the form N−1 Σ Hn (zN ) (1) H(z) = z−n n=0 where N denotes the sample rate conversion ratio. When the polyphase structure is used for sample rate conversions by a factor N, the filters Hn(zN) can be realized to work at the lower sample frequency, as illustrated in Figs. 1 and 2. The arithmetic workload is thereby reduced by a factor N. The filter H(z) can always be restated in the form of (1) if it corresponds to an FIR filter. In the IIR case, the most efficient filters are obtained by letting the subfilters be allpass filters [1]. These filters are referred to as Nth-band IIR filters due to the close relationship to Nth-band FIR filters. If the phase behaviour is of less importance, the Nth-band IIR filters are known to be the most efficient structures for sample rate conversions with factors of N. The Nth-band IIR filters can also be realized to have approximately linear-phase, by letting one of the allpass branches consist of pure delays. However, the workload of these filters is significantly higher than for the corresponding non-linear phase filters. Compared with conventional FIR filters, they are in many cases still in favour though. From a computational point of view, it is often favourable to use a multi-stage realization of interpolation and decimation instead of using a single-stage realization. This holds for both FIR filters and Nth-band IIR filters [2, 3]. One drawback of this approach is that sample rate conversions with prime numbers can not be performed in a straightforward manner. However, by including stages that convert the sample rate by rational factors, it is possible to exploit the benefits of the multi-stage realization even in the case of conversions with prime numbers. In this paper we show that sample rate conversions with prime numbers for applications where the phase behaviour is of importance, can be more efficiently performed using a two-stage realization instead of using a single-stage realization. The two-stage realization uses a linear-phase FIR filter and a half-band filter. The half-band filter can be either a linear-phase half-band FIR filter or an approximately linear-phase half-band IIR filter. The latter is a special case of Nth-band IIR filters for N = 2. The overall workload of the two-stage realization can be lower than for the corresponding single-stage realization. For N > 2, the Nth-band IIR filters exhibit a number of extra don't care bands, as shown in Fig.
  • 2. 3. In some cases it is necessary to remove these extra bands to prevent aliasing into the transition band in the decimation case, and to avoid the corresponding imaging errors in the interpolation case. By using a two-stage structure, the problem of the extra don't care bands are eliminated. It should be mentioned however that aliasing into the transition band occurs even for the two-stage realization, but in this case the aliased components originates only from the upper part of the transition band. This is due to the fact that a half-band filter is used in one of the stages. Half-band filters do not have extra don't care bands, but their transition bands always include a quarter of the sample frequency. Following this introduction, section two presents the two-stage realization. In section three we demonstrate by means of examples that the two-stage structures can be more efficient, in terms of arithmetic operations, than the corresponding single-stage structures. x(n) fsample H0(z) H1(z) HN-1(z) y(m) Nfsample Figure 1. Polyphase interpolator. x(m) Nfsample H0(z) H1(z) HN-1(z) y(n) fsample Figure 2. Polyphase decimator. H(ejωΤ) ωcΤ π/N 2π/N 3π/N π ωΤ Figure 3. Magnitude response for an Nth-band IIR filter. 2 TWO-STAGE REALIZATION To reduce the workload for interpolation and decimation with prime numbers we use the structures shown in Figs. 4 and 5. x(n) 2 H1(z) fsample y(m) Nfsample N H2(z) 2 Figure 4. Two-stage structure for interpolation with a factor N. x(m) 2 H2(z) N Nfsample y(n) fsample H1(z) 2 Figure 5. Two-stage structure for decimation with a factor N. Due to the duality between interpolation and decimation, we restrict the discussion in this paper to interpolation. Assume that the desired interpolation factor is the prime number N. The conversion is performed in two stages using the structure shown in Fig. 4. In the first stage, interpolation with the factor 2 is performed. In the second stage, a sample rate conversion with the rational factor N/2 follows. The overall converter thus performs interpolation with the desired factor N. The first filter can be a half-band filter working at the input sample frequency. Half-band filters are also very efficient since these have a small number of nonzero-valued coefficients. If the second filter, H2(z), is an FIR filter, not only the first filter but also the second filter can be realized to work at the input sample frequency. This is due to the fact that in the case of sample rate conversions with rational factors using FIR filters, it is always possible to move the downsamplers to the input of the converter, and the upsamplers to the output of the converter [4]. This is valid as long as the upsampling and downsampling factors are relatively prime. The actual filtering in the two-stage structure is thus performed at the lowest of the two sample rates involved. In Fig. 6 the structure for sample rate conversion with the factor N/2 is shown. The
  • 3. downsamplers are placed at the input of the converter. The factors m, n, and N are related according to 2n − mN = −1 (2) The filters G0(z) and G1(z) corresponds to the polyphase subfilters of the filter H2(z) in Figs. 4 and 5, i.e. H2 (z) = G0 (z2 ) + z−1G1(z2 ) (3) If the filter H2(z) is an FIR filter, then the filters G0(z) and G1(z) can also be expressed in the polyphase forms N−1 Σ G0n (zN ) (4) G0 (z) = z−n n=0 and N−1 Σ G1n (zN ) (5) G1(z) = z−n n=0 By using polyphase structures for these two filters, the final structure for conversion with the rational factor N/2 is derived. The final structure is shown in Fig. 7. The filtering in this structure is performed at half the input sample frequency, which is equal to the original input sample frequency. All filtering in the two-stage structure is thus performed at the lowest of the two sample frequencies involved. The corresponding structure for conversion with the factor 2/N is easily obtained using the transposition theorem. Since the downsampling factor for the converter shown in Figs. 6 and 7 always is two, it is possible to exploit the symmetry of the coefficients of linear-phase FIR filters, as long as the order of the filter is even. This is due to the fact that in this case both the multiplier coefficients, corresponding to g(n) and g(M-n), where M is the filter order, belong to one and the same filter, which is either G0(z) or G1(z). In terms of number of multiplications and additions per sample, the two-stage structure has potential advantages for applications where the phase response is of importance. The order of a linear-phase FIR filter or an approximately linear phase Nth-band filter depends heavily on the relative transition band width of the filter. In the two-stage structure, the band width of the individual filters are wider than for the filter in the corresponding single-stage structure, which means that the overall complexity in some cases can be reduced. Nfsample/2 z-m 2 N G0(z) 2 N G1(z) z-n x(n) fsample y(m) Figure 6. Sample rate conversion by N/2. N 2 z-m z-n N G0,0(z) G0,1(z) G0,N-1(z) Nfsample/2 x(n) fsample y(m) N N N G1,0(z) G1,1(z) N z-1 z-1 z-1 z-1 G1,N-1(z) 2 Figure 7. Structure for sample rate conversion by N/2 derived from the structure in Fig. 6 using polyphase decomposition. 3 EXAMPLES We have considered two of the specifications in [1]. These are as follows: Ex 1: N = 3, ωcT = 0.8π/3, ωsT = 1.2π/3, Amin = 48 dB Ex 2: N = 7, ωcT = 0.8π/7, ωsT = 1.2π/7, Amin = 70 dB For the filters used in the conversion by the factor two, we have used approximately linear-phase half-band IIR filters, and linear-phase half-band FIR filters. For the filters that are used in the stages performing the sample rate changes by rational factors, linear-phase FIR filters were used. The maximal passband deviations of these filters were chosen to 0.2 dB. The passband ripples of the
  • 4. half-band filters are uniquely determined by their stopband attenuations and need not be specified. The multiplication rates and group delay deviations for the two examples are summarized in Table 1 and Table 2, respectively. For a comparizon, the table also includes the results for the corresponding linear-phase Nth-band filters, and the corresponding linear-phase FIR filters, meeting the same requirements. From the tables we can see that for the first case where the conversion ratio is 3, the two-stage structure requires a larger number of multiplications compared with the corresponding single-stage 3rd-band structure. However, in many cases it is necessary to remove the extra don't care bands that Nth-band IIR filters possess, by adding an extra masking filter. If this is taken into account, the complexity of the two structures will be about the same. Compared with the single-stage FIR realization, the two-stage structure needs fewer operations, even when only FIR filters are used. For the second case where the conversion ratio is 7, the two-stage realization has a lower multiplication rate than the corresponding single-stage realizations. This holds for both the case where the half-band filter is realized using an IIR filter, and the case where it is realized using an FIR filter. Thus, with the two-stage approach, it is in this case possible to realize sample rate converters having exact linear phase, at a lower multiplier cost compared with the corresponding single-stage approximately linear-phase Nth-band IIR converters. Example 1, N=3 Multiplication rate Group delay Δτg Two-stage H1: Half-band IIR H2: FIR 4 0.32 Two-stage H1: Half-band FIR H2: FIR 5 0 One-stage FIR 6 0 One-stage 3rd-band IIR [1] (without correction filter) 2.7 0.66 Table 1. Results from example 1. Example 2, N=7 Multiplication rate Group delay Δτg Two-stage H1: Half-band IIR H2: FIR 4.1 0.15 Two-stage H1: Half-band FIR H2: FIR 4.7 0 One-stage FIR 7.6 0 One-stage 7th-band IIR [1] (without correction filter) 6 0.38 Table 2. Results from example 2. 4 CONCLUSIONS In this paper it has been demonstrated that it can be favourable from a computational point of view to use a two-stage realization instead of a single-stage realization for sample rate conversions with prime numbers. Comparizons showed that by realizing the converters in two stages using only linear-phase FIR filters, or a combination of approximately linear-phase half-band IIR filters and linear-phase FIR filters, the workload can be reduced compared with realizing the converters in one stage using approximately linear-phase Nth-band IIR filters. The two-stage realization also eliminates the problem of the extra don't care bands that Nth-band IIR filters exhibit. Another advantage of a two-stage realization is that the number of coefficients of each of its two filters is reduced in comparizon with the filter that is used in the corresponding single-stage realization. The search for optimal filter coefficients for these two filters can be performed independently. The search time can thereby be reduced dramatically. REFERENCES [1] Renfors M. and Saramäki T.: Recursive Nth- Band Digital Filters-Part I: Design and Properties, IEEE Trans. on Circuits and Systems, Vol. CAS-34 No. 1, pp. 24-39, Jan. 1987. [2] Renfors M. and Saramäki T.: Recursive Nth- Band Digital Filters-Part II: Design of Multistage Decimators and Interpolators, IEEE Trans. on Circuits and Systems, Vol. CAS-34 No. 1, pp. 40-51, Jan. 1987. [3] Crochiere R.E. and Rabiner L.R.: Multirate Digital Signal Processing, Prentice-Hall Inc., Englewood Cliffs, N. J., 1983. [4] Hsiao C.C.: Polyphase Filter Matrix for Rational Sampling Rate Conversions, IEEE Intern. Conf. on Acoustics, Speech, and Signal Processing, pp. 2173-2176, April 1987.