CHAPTER 8 DSP Algorithm Implementation Wang Weilian School of Information Science and Technology Yunnan University.

Slides:



Advertisements
Similar presentations
DFT & FFT Computation.
Advertisements

Digital Filter Banks The digital filter bank is set of bandpass filters with either a common input or a summed output An M-band analysis filter bank is.
Digital Kommunikationselektronik TNE027 Lecture 5 1 Fourier Transforms Discrete Fourier Transform (DFT) Algorithms Fast Fourier Transform (FFT) Algorithms.
DFT and FFT FFT is an algorithm to convert a time domain signal to DFT efficiently. FFT is not unique. Many algorithms are available. Each algorithm has.
The Discrete Fourier Transform. The spectrum of a sampled function is given by where –  or 0 .
1 Chapter 16 Fourier Analysis with MATLAB Fourier analysis is the process of representing a function in terms of sinusoidal components. It is widely employed.
AMI 4622 Digital Signal Processing
Chapter 8: The Discrete Fourier Transform
Lecture #17 INTRODUCTION TO THE FAST FOURIER TRANSFORM ALGORITHM Department of Electrical and Computer Engineering Carnegie Mellon University Pittsburgh,
Introduction to Fast Fourier Transform (FFT) Algorithms R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2003.
1 Copyright © 2001, S. K. Mitra Polyphase Decomposition The Decomposition Consider an arbitrary sequence {x[n]} with a z-transform X(z) given by We can.
Lecture #18 FAST FOURIER TRANSFORM INVERSES AND ALTERNATE IMPLEMENTATIONS Department of Electrical and Computer Engineering Carnegie Mellon University.
Orthogonal Transforms
Signals and Systems Discrete Time Fourier Series.
Unit 7 Fourier, DFT, and FFT 1. Time and Frequency Representation The most common representation of signals and waveforms is in the time domain Most signal.
Discrete Time Periodic Signals A discrete time signal x[n] is periodic with period N if and only if for all n. Definition: Meaning: a periodic signal keeps.
Fast Fourier Transforms
T Digital Signal Processing and Filtering
Unit III FIR Filter Design
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Discrete-Time and System (A Review)
Numerical Analysis – Digital Signal Processing Hanyang University Jong-Il Park.
CHAPTER 3 Discrete-Time Signals in the Transform-Domain
Digital Signal Processing – Chapter 10
Finite-Length Discrete Transform
Copyright © 2001, S. K. Mitra Tunable IIR Digital Filters We have described earlier two 1st-order and two 2nd-order IIR digital transfer functions with.
Copyright © 2001, S. K. Mitra Digital Filter Structures The convolution sum description of an LTI discrete-time system be used, can in principle, to implement.
Zhongguo Liu_Biomedical Engineering_Shandong Univ. Chapter 8 The Discrete Fourier Transform Zhongguo Liu Biomedical Engineering School of Control.
Professor A G Constantinides 1 Interpolation & Decimation Sampling period T, at the output Interpolation by m: Let the OUTPUT be [i.e. Samples exist at.
1 Lecture 1: February 20, 2007 Topic: 1. Discrete-Time Signals and Systems.
Real time DSP Professors: Eng. Julian S. Bruno Eng. Jerónimo F. Atencio Sr. Lucio Martinez Garbino.
Digital Signal Processing Chapter 3 Discrete transforms.
Wavelets and Multiresolution Processing (Wavelet Transforms)
LIST OF EXPERIMENTS USING TMS320C5X Study of various addressing modes of DSP using simple programming examples Sampling of input signal and display Implementation.
Chapter 5 Finite-Length Discrete Transform
CHAPTER 2 Discrete-Time Signals and Systems in the Time-Domain
1 Lecture 4: March 13, 2007 Topic: 1. Uniform Frequency-Sampling Methods (cont.)
Digital Filter Structures
Linear filtering based on the DFT
Copyright ©2010, ©1999, ©1989 by Pearson Education, Inc. All rights reserved. Discrete-Time Signal Processing, Third Edition Alan V. Oppenheim Ronald W.
Professor A G Constantinides 1 Discrete Fourier Transforms Consider finite duration signal Its z-tranform is Evaluate at points on z-plane as We can evaluate.
Fast Fourier Transform (FFT) Problem: we need an efficient way to compute the DFT. The answer is the FFT. Consider a data sequence and its DFT: We can.
Fast Fourier Transforms. 2 Discrete Fourier Transform The DFT pair was given as Baseline for computational complexity: –Each DFT coefficient requires.
Analysis of Linear Time Invariant (LTI) Systems
Learning from the Past, Looking to the Future James R. (Jim) Beaty, PhD - NASA Langley Research Center Vehicle Analysis Branch, Systems Analysis & Concepts.
Husheng Li, UTK-EECS, Fall The specification of filter is usually given by the tolerance scheme.  Discrete Fourier Transform (DFT) has both discrete.
بسم الله الرحمن الرحيم Digital Signal Processing Lecture 14 FFT-Radix-2 Decimation in Frequency And Radix -4 Algorithm University of Khartoum Department.
Chapter 9. Computation of Discrete Fourier Transform 9.1 Introduction 9.2 Decimation-in-Time Factorization 9.3 Decimation-in-Frequency Factorization 9.4.
Discrete Fourier Transform
1 Chapter 8 The Discrete Fourier Transform (cont.)
Integral Transform Method
DIGITAL SIGNAL PROCESSING ELECTRONICS
Discrete-time Systems
By: Mohammadreza Meidnai Urmia university, Urmia, Iran Fall 2014
Fast Fourier Transforms Dr. Vinu Thomas
Lecture #17 INTRODUCTION TO THE FAST FOURIER TRANSFORM ALGORITHM
4.1 DFT In practice the Fourier components of data are obtained by digital computation rather than by analog processing. The analog values have to be.
Chapter 8 The Discrete Fourier Transform
Fast Fourier Transformation (FFT)
Lecture 17 DFT: Discrete Fourier Transform
Chapter 9 Computation of the Discrete Fourier Transform
Quadrature-Mirror Filter Bank
Chapter 8 The Discrete Fourier Transform
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Ideal Filters Zero Phase Transfer Functions Linear Phase Transfer.
The Report of Monographic Study
Chapter 8 The Discrete Fourier Transform
Lecture #18 FAST FOURIER TRANSFORM ALTERNATE IMPLEMENTATIONS
Lecture 22 IIR Filters: Feedback and H(z)
Fast Fourier Transform (FFT) Algorithms
Lecture #17 INTRODUCTION TO THE FAST FOURIER TRANSFORM ALGORITHM
Presentation transcript:

CHAPTER 8 DSP Algorithm Implementation Wang Weilian School of Information Science and Technology Yunnan University

OUTLINE Concepts Relating to DSP Algorithm –Matrix Representation –Precedence Graph –Structure Verification Structure Simulation and Verification Using MATLAB Computation of DFT –Goertzel’s Algorithm –FFT –Inverse DFT computation Summary

MATRIX REPRESENTATION OF THE DIGITAL FILTER STRUCTURE Consider the structure figure: The structure can be described by a set of equations:

MATRIX REPRESENTATION OF THE DIGITAL FILTER STRUCTURE In the time-domain, the equivalent set of equations is as follows: The above set of equations are non-computable in the present order.

MATRIX REPRESENTATION OF THE DIGITAL FILTER STRUCTURE Reorder the above equations as follows: The above ordered set of equations can be implemented in the sequential order and is computable.

MATRIX REPRESENTATION OF THE DIGITAL FILTER STRUCTURE A simple way to examine the computability of structure equations is by writing the equations in a matrix form. Define four matrices as follows:

MATRIX REPRESENTATION OF THE DIGITAL FILTER STRUCTURE The first ordered set of equations can be described in the compact matrix form: The matrix equation is not computable because all elements of the matrix F on the diagonal and above diagonal are not all zeros.

MATRIX REPRESENTATION OF THE DIGITAL FILTER STRUCTURE Computability condition: all elements of the F matrix on the diagonal and above diagonal must be zeros. The F matrix for the second ordered set of equations is It can be seen that the above F matrix satisfies the computability condition.

PRECEDENCE GRAPH Precedence graph can be used to test the computability of a digital filter structure. It is developed from the signal flow-graph of the digital filter structure. The signal flow-graph description of is shown below

PRECEDENCE GRAPH The reduced signal flow-graph is The precedence graph of the above figure is

STRUCTURE VERIFICATION A digital filter structure is verified to ensure that no computational and / or other errors taken place and that the structure is indeed characterized by H (z). Consider a causal 3rd order IIR transfer function Its unit sample response is {h[n]}, then

STRUCTURE VERIFICATION From the above equation, we arrive at in the time-domain, the equivalent convolution sum is for n=0,1,2,…,6, we have

STRUCTURE VERIFICATION The above equations can be written in the matrix form in the partitioned form, it can be written as

STRUCTURE VERIFICATION where Solving the second equation, we get Substituting above in the first equation, we arrive at In the case of N-th order IIR filter, the coefficients of its transfer function can be determined from the first 2N+1 impulse response samples.

STRUCTURE VERIFICATION

Structure Simulation & Verification Using MATLAB As shown earlier, the set of equations describing the filter structure must be ordered properly to ensure computability. The procedure is to express the output of each adder and filter output variable in terms of all incoming variables.

Structure Simulation & Verification Using MATLAB

From the computed impulse response samples, the structure can be verified by determining the transfer function coefficients using the M-file strucver. The M-file filter implements IIR filter in the transposed direct form II structure shown below for a 3rd order filter. As indicated in the figure, d(1) has been assumed to be equal to 1. Structure Simulation & Verification Using MATLAB

COMPUTATION OF DFT

GOERTZEL’S ALGORITHM Goertzel’s algorithm is a recursive DFT computation scheme making use of the identity We can write Define

GOERTZEL’S ALGORITHM then we have is the direct convolution of the causal sequence with a causal sequence

GOERTZEL’S ALGORITHM A second order realization According to the above figure, DFT computation equations are

GOERTZEL’S ALGORITHM

FAST FOURIER TRANSFORM ALGORITHMS The basic idea behind the fast Fourier transform ( FFT) –Decompose the N-point DFT computation into computations of smaller- size DFTs –Take advantage of the periodicity and symmetry of the complex number.

DECIMATION-IN-TIME FFT ALGORITHM Consider a sequence of length. Using 2-band polyphase decomposition, we can express its z-transform as

DECIMATION-IN-TIME FFT ALGORITHM

Examination of the above flow-graph reveals that each stage of the DFT computation process employs the same basic computational module Basic computational module is called butterfly computation. DECIMATION-IN-TIME FFT ALGORITHM

DECIMATION-IN-FREQUENCY FFT ALGORITHM

INVERSE DFT COMPUTATION

DFT AND IDFT COMPUTATION USING MATLAB The following functions in the MATLAB package can be used to compute DFT and IDFT: fft(x) ifft(x) fft(x,N) ifft(x,N) Since vectors in MATLAB are indexed from 1 to N, the DFT and the IDFT computed in the above MATLAB functions make use of the expressions:

SUMMARY Some common factors in the implementation of DSP algorithm The implementation carried out by the set of equations describing the algorithm The computability condition of these equations Fast Fourier transform (FFT) MATLAB-based implementation of digital filtering algorithms