Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Prentice Hall
Author: Jeffrey H. Reed
Book: Software Radio: A Modern Approach to Radio Engineering
Copyright: 2002
ISBN: 0130811580
NI Supported: No
Publish Date: Dec 31, 2007


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Sampling Rate Conversion by Stages

1 ratings | 5.00 out of 5
Print

Overview

National Instruments has partnered with Prentice Hall to bring you large portions of in-depth technical topics from several PTR RF and Communications books, including Digital Communications: Fundamentals and Applications, 2nd Edition. This series of content is designed for a broad range of audiences, from experts who want to review a specific topic to students who need easy-to-understand documentation for their projects.

For the complete list of RF topics, please visit the RF and Communications Resource Main Page.

3.2.5 Sampling Rate Conversion by Stages

The decimator and interpolator discussed so far are of a single-stage structure. When large

changes in sampling rate are required, multiple stages of sample rate conversion are found

to be more computationally efficient. Most practical systems employ a multi-stage structure,

resulting in a considerable relaxation in the specifications of anti-aliasing (decimation)

or anti-imaging (interpolation) filters in each stage compared to a single stage realization.

The decimation in Figure 3.23 can be realized in two stages if the decimation factor

D can be expressed as a product of two integers, D1 and D2. Referring to Figure 3.24,

in the first stage, the signal x(n) is decimated by a factor of D1. The output, v(p) is

further decimated by D2 in the second stage resulting in an overall decimation of x(n) by

                             Figure 3.23: Decimation in a Single Stage.

                              Figure 3.24: Decimation in Two Stages.

 

D = (D1D2). The filters H1(z) and H2(z) are so designed that the aliasing in the band of

interest is belowa prescribed level and that the overall passband and stopband tolerances are

met. This multi-stage sampling rate conversion system offers less computation and more

flexibility in filter design. An example is given below to illustrate the idea of multi-stage

sampling rate conversion.

Example: Multi-Stage Sampling Rate Conversion

We have a discrete time signal with a sampling rate of 90 kHz. The signal has the

desired information in the frequency band from 0 to 450 Hz (passband), and the band from

450 to 500 Hz is the transition band. The signal is to be decimated by a factor of ninety.

The required tolerances are a passband ripple of 0.002 and a stopband ripple of 0.001.

Decimation in a Single Stage

First we consider a single-stage design as shown in Figure 3.25(a). The specifications of

the required LPF are shown in Figure 3.25(b).

According to the formula by Kaiser, the approximate length of an FIR filter is given

by [34]

where peak passband ripple (linear) δp = 0.002, peak stopband ripple (linear) δs = 0.001,

normalized transition bandwidth  passband edge frequency fp = 450 Hz,

stopband edge frequency fs = 500 Hz, and sampling frequency Fs = 90 kHz.

From Equation 3.37, the lowpass FIR filter H(z) has a length of N ≈ 5424. Therefore,

the number of multiplications per second, Msec, needed for this single-stage decimator is

Since only one out of ninety samples is actually used, the computation rate is based on the

decimated signal rate.

Decimation in Two Stages

Let us now consider the two-stage implementation of the decimation process as shown in

Figure 3.26.

Figure 3.25: (a) Block Diagram for Single-Stage Decimation, (b) The Filter Specification.

                    Figure 3.26: Block Diagram for Multi-Stage Decimation.

 

Due to the cascade decomposition, each of the two filters, H1(z) and H2(z), must have

a linear passband ripple specification half of that specified for the single-stage filter, H(z).

The stopband ripple specifications for these two filters can be the same as that of H(z)

since the cascade connection will only reduce the stopband ripple.

Stage One

The first stage will decimate the input signal x(n) by a factor of forty-five. The filter

specifications for the first-stage LPF H1(z) are

                                            

                        Figure 3.27: Decimation Filter Design for Stage One.

                                     

These specifications are shown in Figure 3.27.

The reason for choosing this value of the stopband edge is that, after decimation by a

factor of forty-five, the residual energy of the signal in the band from 1000 to 2000 Hz will

be aliased back to the band from 0 to 1000 Hz. Due to the attenuation in the stopband, the

energy of the signal in the band from 1500 to 2000 Hz is very small compared to that in

1000 to 1500 Hz. So the amount of aliasing in the desired band of interest (0 to 450 Hz)

will also be small, resulting in very little signal distortion.

According to Equation 3.37, the approximate length of the FIR filter, H1(z) is N1 =

276. The number of multiplications per second for the first stage is

Stage Two

The specifications for the second-stage filter, H2(z), are

                                  

Figure 3.28 shows the characteristics of H2(z). This stage will perform a decimation

of factor two on the output signal of the first stage. So, the total decimation of x(n) is by a

factor of ninety as required.

                       Figure 3.28: Decimation Filter Design for Stage Two.

For the second stage, the length of the filter, as calculated from Equation 3.37, is N2 =

129. The number of multiplications required for this stage is

The total number of multiplications per second required for the two-stage implementation

of the decimator is

So, the two-stage implementation requires only    of the operation required of the

single-stage implementation

Decimation in Three Stages

To further illustrate the concept of multi-stage implementation of decimator and interpolator,

we will now consider the three-stage implementation as shown in Figure 3.29.

Stage One

In this stage, decimation by fifteen is performed on the input signal x(n). The characteristics

of the LPF, H1(z), are shown in Figure 3.30. The filter specifications are

                                   

 

                                               

 

                         Figure 3.30: Decimation Filter Design for Stage One.

 

As in the two-stage case, the choice of stopband edge frequency can be extended to the

point for which negligible aliasing occurs in the passband (band of interest).

The approximate length of the filter as given by Equation 3.37 is N1 = 60. The number

of multiplications per second for this stage is calculated as

Stage Two

In this stage, a decimation by a factor of three is done. The specifications of the LPF in this

stage, H2(z), are

                                       

As before, the stopband edge frequency can be stretched out to 1500 Hz. The filter

characteristics are shown in Figure 3.31.

The length of filter required for this stage is N2 = 20 and the number of multiplications

per second is

Stage Three

The third stage performs a decimation of factor two on the output of the second stage. The

specifications of the LPF, H3(z), in this stage are

            

Figure 3.31: Decimation Filter Design for Stage Two.

                  

Figure 3.32 shows the specifications for H3(z). As before, the approximate length of

the filter, as calculated from Equation 3.37, is N3 = 134. The number of multiplications

required per second in the third stage is

                  Figure 3.32: Decimation Filter Design for Stage Three.

The total number of multiplications in the three stages of implementation is


[+] Enlarge Image

Compared to the single-stage implementation, the number ofmultiplicationsper second

are reduced by a factor of    by using three stages.

From this example, we can see that a significant saving in computation as well as in

storage can be achieved by a multi-stage decimator and interpolator design. These savings

depend on the optimum design of the number of stages and the choice of decimation factor

for the individual stages.

The examples illustrate the many different combinations and ordering possible. One

approach is to determine the sets of I and D factors that satisfy the filtering requirements

and then estimate the storage and computational costs for each set. The lowest cost solution

is then selected [37].

Relevant NI products


Customers interested in this topic were also interested in the following NI products:

For the complete list of tutorials, return to the NI RF and Communications Fundamentals Main page.

Buy the Book


Purchase Software-defined Radio from Prentice Hall Professional through this link and receive the following:

  • Between 15% and 30% Off
  • Free Shipping and Handling
1 ratings | 5.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
Excerpt from the book published by Prentice Hall Professional (http://www.phptr.com).
Copyright Prentice Hall Inc., A Pearson Education Company, Upper Saddle River, New Jersey 07458.
This material is protected under the copyright laws of the U.S. and other countries and any uses not in conformity with the copyright laws are prohibited, including but not limited to reproduction, DOWNLOADING, duplication, adaptation and transmission or broadcast by any media, devices or processes.