Hossein Sameti Department of Computer Engineering Sharif University of Technology.

Slides:



Advertisements
Similar presentations
Chapter 19 Fast Fourier Transform (FFT) (Theory and Implementation)
Advertisements

DFT & FFT Computation.
David Hansen and James Michelussi
Digital Kommunikationselektronik TNE027 Lecture 5 1 Fourier Transforms Discrete Fourier Transform (DFT) Algorithms Fast Fourier Transform (FFT) Algorithms.
The Discrete Fourier Transform. The spectrum of a sampled function is given by where –  or 0 .
LECTURE Copyright  1998, Texas Instruments Incorporated All Rights Reserved Use of Frequency Domain Telecommunication Channel |A| f fcfc Frequency.
DFT/FFT and Wavelets ● Additive Synthesis demonstration (wave addition) ● Standard Definitions ● Computing the DFT and FFT ● Sine and cosine wave multiplication.
Hossein Sameti Department of Computer Engineering Sharif University of Technology.
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.
Reconfigurable Computing S. Reda, Brown University Reconfigurable Computing (EN2911X, Fall07) Lecture 16: Application-Driven Hardware Acceleration (1/4)
Chapter 12 Fourier Transforms of Discrete Signals.
Chapter 19 Fast Fourier Transform (FFT) (Theory and Implementation)
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.
Unit 1. Sorting and Divide and Conquer. Lecture 1 Introduction to Algorithm and Sorting.
Fast Fourier Transforms
Hossein Sameti Department of Computer Engineering Sharif University of Technology.
Discrete-Time and System (A Review)
Numerical Analysis – Digital Signal Processing Hanyang University Jong-Il Park.
Signals and Systems Prof. H. Sameti Chapter 7: The Concept and Representation of Periodic Sampling of a CT Signal Analysis of Sampling in the Frequency.
CE Digital Signal Processing Fall 1992 Z Transform
DISCRETE FOURIER TRANSFORM
Digital Signal Processing – Chapter 10
Jeff Wang Kay-Won Chang March 18, DEMO Harmonic Product Spectrum (HPS) pitch detection: obtain fundamental frequency from FFT Fast Fourier Transform.
Hossein Sameti Department of Computer Engineering Sharif University of Technology.
Digital Signal Processing Chapter 3 Discrete transforms.
Z TRANSFORM AND DFT Z Transform
Lecture 6: DFT XILIANG LUO 2014/10. Periodic Sequence  Discrete Fourier Series For a sequence with period N, we only need N DFS coefs.
ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU Under-Graduate Project Case Study: Single-path Delay Feedback FFT Speaker: Yu-Min.
Chapter 5 Finite-Length Discrete Transform
Hossein Sameti Department of Computer Engineering Sharif University of Technology.
Speaker: Darcy Tsai Advisor: Prof. An-Yeu Wu Date: 2013/10/31
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
EE345S Real-Time Digital Signal Processing Lab Fall 2006 Lecture 17 Fast Fourier Transform Prof. Brian L. Evans Dept. of Electrical and Computer Engineering.
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.)
Chapter 4 Discrete-Time Signals and transform
Homework 3 1. Suppose we have two four-point sequences x[n] and h[n] as follows: (a) Calculate the four-point DFT X[k]. (b) Calculate the four-point DFT.
DIGITAL SIGNAL PROCESSING ELECTRONICS
An Iterative FFT We rewrite the loop to calculate nkyk[1] once
CE Digital Signal Processing Fall Discrete-time Fourier Transform
3.1 Introduction Why do we need also a frequency domain analysis (also we need time domain convolution):- 1) Sinusoidal and exponential signals occur.
Polynomial + Fast Fourier Transform
Chapter 9 Computation of the Discrete Fourier Transform
Fast Fourier Transforms Dr. Vinu Thomas
Fast Fourier Transform
FAST FOURIER TRANSFORM ALGORITHMS
Real-time double buffer For hard real-time
DFT and FFT By using the complex roots of unity, we can evaluate and interpolate a polynomial in O(n lg n) An example, here are the solutions to 8 =
Lecture #17 INTRODUCTION TO THE FAST FOURIER TRANSFORM ALGORITHM
Real-time 1-input 1-output DSP systems
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.
Fast Fourier Transformation (FFT)
Chapter 9 Computation of the Discrete Fourier Transform
Chapter 19 Fast Fourier Transform
Speaker: Yumin Adviser: Prof. An-Yeu Wu Date: 2013/10/24
Fast Fourier Transform (FFT) Algorithms
Speaker: Chris Chen Advisor: Prof. An-Yeu Wu Date: 2014/10/28
Lecture #17 INTRODUCTION TO THE FAST FOURIER TRANSFORM ALGORITHM
Fast Fourier Transform
CE Digital Signal Processing Fall Discrete Fourier Transform (DFT)
Presentation transcript:

Hossein Sameti Department of Computer Engineering Sharif University of Technology

 Many real-life systems can be modeled by LTI systems  use convolution for computing the output  use DFT to compute convolution  Fast Fourier Transform (FFT) is a method for calculating Discrete Fourier Transform (DFT)  Only faster!  Definition of DFT:  How many computations? 2 N pt. DFT of x(n) Q: For each k:How many adds and how many mults? A: (N-1) complex adds and N complex mults. How many k values do we have? N Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

3 Direct computation: FFT: Ideal case: NDirectFFT 10^3O(10^6)O(10^3*log10^3)=O(10^4) 10^6O(10^12)O(10^6*log10^6)=O(2*10^7) Example: Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

4 FFT Decimation in time Decimation in frequency Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

5 The main idea: use the divide and conquer method It works by recursively breaking down a problem into two or more sub-problems of the same (or related) type, until these become simple enough to be solved directly. The solutions to the sub-problems are then combined to give a solution to the original problem. Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

6 N: power of 2 n: evenn: odd n: evenn=2r r:0  N/2-1 n:0  N-2 n: oddn=2r+1 r:0  N/2-1 n:1  N-1 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

7 Suppose: What are G(k) and H(k)?

8 In G(k) and H(k), k varies between 0 and N/2-1. However, in X(k), k varies between 0 and N-1. Solution: use the relationship between DFS and DFT. We thus need to replicate G(k) and H(k) “once”, to get X(k). Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

9 g(r) h(r) pt. DFT + (twiddle factor) After replication Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

10 g(r) h(r) pt. DFT Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

11 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

12 N/2 pt. DFT block Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

13 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

14 r(0) r(1) Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

15 r(0) r(1) Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

16 Flow graph of a the 2-pt. DFT Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

17 How many stages do we have? Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

18 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

19 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

20 2 mults+ 2 adds 1 mult+ 2 adds Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

21 In-place computation (only N storage locations are needed) Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

22 How many stages do we have Each stage has N inputs and N outputs. Each butterfly has 2 inputs and 2 outputs. Each stage has butterflies. Each butterfly needs 1 mult and 2 adds. Total number of operations: adds mults Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

23 Output indexing is in order. input indexing is shuffled. Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

24 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

25 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

26 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

27 The main idea: use the divide and conquer method (this time in the frequency domain) Divide the computation into two parts: even indices of k and odd indices of k. Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

28 1 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

29 N/2 pt. DFT of g(n) Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

30 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

31 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

32 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

33 N/2 pt. DFT of h(n) Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

34 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

35

36 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

37 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

38 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

39 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

 Change x with X (i.e., input nodes with output nodes)  Change X with x (i.e., output nodes with input nodes)  Reverse the order of the flow graphs.  The same system function is achieved. 40 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

41 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

42 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

 How can we deal with twiddle factors?  Should we store them in a table (i.e, use a lookup table) or should we calculate them?  What happens if N is not a factor of 2?  It can be shown that if N=RQ, then an N pt. DFT can be expressed in terms of R Q-pt. DFT or Q R pt. DFTs (Cooley-Tukey algorithm). 43 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology