Assignment 3
(Due Date: Monday 17/09/2018 at 5pm)
1. We wish to extract tones at 100 and 150 Hz from tones at 1000 and 1050 Hz and then
downsample the output by the largest possible factor. Assume the signal containing the four
tones is sampled at 50 kHz. Use a Kaiser window FIR filter with a passband from 0 to 200Hz (3
dB down at band edge) and attenuation > 70 dB at 300 Hz. Implement the filter, downsample
the output, and examine the output spectrum to ensure that it meets specifications. Now
reimplement the filtering and downsampling with a single polyphase downsampling filter.
Compare the number of operations required for the original FIR implementation and the
downsampling implementation.
(4 marks)
2. Upsample the output of the downsampling filter of Question 1 back to the original 50 kHz
sampling rate by designing an appropriate upsampling filter using zero packing and low-pass
filtering. Then reimplement as a polyphase upsampling filter. Check the output of the
polyphase upsampler against the filtered zero-packed output to show they are the same. Compare
the number of operations required for the original single-rate FIR implementation from Q1 and
the polyphase downsampling/upsampling implementation in this question.
(6 marks)
3. Without incurring additional computation, modify the polyphase upsampling filter to frequency
shift the data by heterodyning with a 4 kHz carrier. That is the tones at 100, and 150 Hz will
now be placed at 3850, 3900, 4100, and 4150 Hz.
(5 marks)
Simulation Exercise
Simulate the single rate system of Q1 in Simulink. Listen to the output on the
loudspeaker/headphones. Shows graphs and images in your report.
Method
1. Create new Simulink Model
2. Open Simulink Library Browser
3. Select Sine Wave Source
4. Set parameters as per Q1
5. Build model with Spectrum Analyser, Filter, and Scope
6. Ask Tutors for help
(5 marks)
(Total: 20 marks)