SlideShare a Scribd company logo
1 of 20
Download to read offline
EC533: Digital Signal Processing
  5          l      l

           Lecture 10
       DFT and FFT
10.1 - Frequency Domain Vs. Time Domain



        CTFS              DTFS




        CTFT              DTFT
10.2 - Discrete Fourier Transform (DFT)

• A finite or periodic sequence has only N unique values,
    f              d             h    l             l
  x[n] for 0 ≤ n p N
• S t
  Spectrum is completely defined by N distinct frequency
             i       l t l d fi d b     di ti t f
  samples
• Divide 0..2π into N equal steps {ω(k)} = 2πk/N
           0 2π               steps,
• Uniform sampling of DTFT spectrum:
10.2 – DFT – contd.
Hence,




    Where,                        i.e, 1/Nth of a revolution


                         Twiddle Factor

Properties of the Twiddle Factor:
             k+N              k                                     j
         W   N
                     =
                         W    N
                                             periodicity
                  N
             k+                   k
         W   N
                  2 = −
                          W       N
                                                               -1
                                                                         1
             2
         W   N
                 =
                     W    N
                          2
                                                                    -j
                                                                         N=4
DFT Example
Find the DFT for the 4 points time sequence {1 0 0 1}, fs=8KHz
                            3                           3
                 X (0) = ∑ x(nT ) e − j 0 = ∑ x(nT )
   at k=0,

                           n =0                        n =0

                        = x(0) + x(T ) + x(2T ) + x(3T )
                        = 1+ 0 + 0 +1 = 2
                            3
    at k 1,
       k=1,       X (1) = ∑ x(nT ) e − jΩnT , Ω = 2π
                           n =0
                                                              NT
                            3
                                         − j 2πn
                  X (1) = ∑ x(nT ) e               N

                           n =0
                        = 1 + 0 + 0 + 1e − j 2π 3 4 = 1 + e − j 3π   4


                                 ⎛ 3π     ⎞         ⎛ 3π      ⎞
                        = 1 + cos⎜        ⎟ − j sin ⎜         ⎟ = 1+ j
                                 ⎝ 2      ⎠         ⎝ 2       ⎠
DFT Example – contd.
                  3                               3
                                                            − j 2π 2 n
at k=2,   X (2) = ∑ x(nT ) e   − j 2 ΩnT
                                             = ∑ x(nT ) e                N

                 n =0                            n =0
                 3
                             − j 4πn
              = ∑ x(nT ) e             N

                n =0

              = 1 + 0 + 0 + 1e − j 4π 3 4 = 1 + e − j 3π = 1 − 1 = 0
                       3
                                − j 2π 3 n
at k=3,    X (3) = ∑ x(nT ) e                N

                  n =0

               = 1 + 0 + 0 + 1e − j 9π 2 = 1 − j


           X (k ) = {2, 1 + j , 0, 1 − j}
DFT Example – contd.
x(nT)                                  |X(k)|
    1                                          2
                                                    √2

            x     x                                           x
        0   125   250   375   t(µs)             0    12.57   25.14   37.71   50.28
                                                                                     kΩ(X 103 rad/s)
                                      φ(k)(⁰)
  x(n) ={ , 0, 0,1
         1        }                       +45                                 Phase Angle 
                                                                             indeterminate
                                                                     37.71
                                           0    x                             x
                                                     12.57   25.14           50.28
                                                                                     kΩ(X 103 rad/s)

                                           ‐45




                                                 X(k) ={2,1+ j, 0,1− j}
10.3 - Inverse Discrete Fourier Transform
                  (
                  (IDFT))

  •


  • Ch k
    Check
10.4 - DFT Computational Complexity
The DFT
has:
• (N complex multiplies + N-1 complex adds per point) x N points (k = 0..N-1)
            N2 complex multiplies and N(N 1) complex additions
                                      N(N-1)
where
      cpx mult: (a+jb)(c+jd) = ac - bd + j(ad+bc)= 4 real mults + 2 real adds

       cpx add = 2 real adds

• Total: 4N2 real mults, 4N2-2N real adds

•Looking at DFT Matrix,
 lots of repeated structure are found;
 means opportunities for efficient
                t iti f      ffi i t
 algorithm to be used to reduce
  the DFT complexity
10.5 – Fast Fourier Transform (FFT)

• Reduce complexity of DFT from O(N2) to O(N log2N)
                                         O(N·log

• Grows more slowly with larger N

• Works by decomposing large DFT into several stages of
  smaller DFTs

• Often provided as a highly optimized library
10.6 - Decimation in Time (DIT) FFT

• Can rearrange DFT formula in 2 halves:
10.6 - Decimation in Time (DIT) FFT - contd.



  • We can evaluate an N-pt DFT as two N/2-pt DFTs
                    (plus a few mults/adds)

  • But if DFTN{•} ~ O(N2)
    then DFTN/2{•} ~ O((N/2)2) = 1/4 O(N2)

  • Total computation ~ 2 * 1/4 O(N2)
    = 1/2 the computation (+ε) of direct DFT
10.6.1 - One-Stage DIT Flowgraph
10.6.2 - Multiple DIT Stages
• If decomposing one DFTN into two smaller DFTN/2’s speeds things
  up...
    p
• Why not further divide into DFTN/4’s ?

• ie
  i.e.

• so have




• Similarly,
10.6.2 - Multiple DIT Stages – contd.
Two-Stage DIT Flowgraph
10.6.2 - Multi-stage DIT FFT – contd.

• Can keep doing this until we get down to 2-pt DFTs:




      x(0)
      x(1)
10.7 - FFT Implementation Details
• Basic Butterfly at any stage




• Can be simplified to
10. 8 - 8-pt DIT FFT Flowgraph

000
001
0 0
010
                                            2
011                                        W
                                             8
100
101
110
111                                           2
                                             W
                                              8

      • -1’s absorbed into summation nodes
         0
      • WN disappears

      • Twiddle factor step=N/2 j   (stage order),   j≠1
10.9 - FFT Complexity

                                    N
• Total no. of butterflies = 
  Total no. of butterflies            log 2 N
                                        g
                                    2                  No of stages
                                                           f t


• As each butterfly gives one complex multiplication and 2
  As each butterfly gives one complex multiplication and 2 
  complex addition
• So, FFT has complex multiplications of
  So, FFT has complex multiplications of 
                 N
            Ο(     log 2 N) instead of Ο(N 2 ) in case of DFT
                 2

  and complex additions  of
          Ο(Nl 2 N) i
           (Nlog    instead of Ο(N(N - 1)) i case of DFT
                          d f              in      f
10.10 - Inverse FFT

•


• Thus



                                    Steps f calculating IFFT:
                                    St    for l l ti IFFT
                                    1. Take the conjugate of the freq.
•Hence, Use FFT to calculate IFFT      Samples
                                    2. Calculate FFT of these samples
                                    3. Divide the output by N
                                    4.
                                    4 Take the conjugate of the output

More Related Content

What's hot

Design of digital filters
Design of digital filtersDesign of digital filters
Design of digital filtersNaila Bibi
 
5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals 5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals MdFazleRabbi18
 
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignDSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignAmr E. Mohamed
 
IIR filter realization using direct form I & II
IIR filter realization using direct form I & IIIIR filter realization using direct form I & II
IIR filter realization using direct form I & IISarang Joshi
 
DSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter DesignDSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter DesignAmr E. Mohamed
 
Design of IIR filters
Design of IIR filtersDesign of IIR filters
Design of IIR filtersop205
 
Fir filter design (windowing technique)
Fir filter design (windowing technique)Fir filter design (windowing technique)
Fir filter design (windowing technique)Bin Biny Bino
 
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier TransformAmr E. Mohamed
 
Chapter 9 computation of the dft
Chapter 9 computation of the dftChapter 9 computation of the dft
Chapter 9 computation of the dftmikeproud
 
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)Amr E. Mohamed
 
RF Module Design - [Chapter 5] Low Noise Amplifier
RF Module Design - [Chapter 5]  Low Noise AmplifierRF Module Design - [Chapter 5]  Low Noise Amplifier
RF Module Design - [Chapter 5] Low Noise AmplifierSimen Li
 
Butterworth filter design
Butterworth filter designButterworth filter design
Butterworth filter designSushant Shankar
 

What's hot (20)

Properties of dft
Properties of dftProperties of dft
Properties of dft
 
Z transform ROC eng.Math
Z transform ROC eng.MathZ transform ROC eng.Math
Z transform ROC eng.Math
 
Design of digital filters
Design of digital filtersDesign of digital filters
Design of digital filters
 
5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals 5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals
 
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignDSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
 
IIR filter realization using direct form I & II
IIR filter realization using direct form I & IIIIR filter realization using direct form I & II
IIR filter realization using direct form I & II
 
DSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter DesignDSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter Design
 
Design of IIR filters
Design of IIR filtersDesign of IIR filters
Design of IIR filters
 
Butterworth filter
Butterworth filterButterworth filter
Butterworth filter
 
Fir filter design (windowing technique)
Fir filter design (windowing technique)Fir filter design (windowing technique)
Fir filter design (windowing technique)
 
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
 
Properties of dft
Properties of dftProperties of dft
Properties of dft
 
Chapter 9 computation of the dft
Chapter 9 computation of the dftChapter 9 computation of the dft
Chapter 9 computation of the 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)
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)
 
Decimation in Time
Decimation in TimeDecimation in Time
Decimation in Time
 
IIR filter
IIR filterIIR filter
IIR filter
 
Digital Filters Part 1
Digital Filters Part 1Digital Filters Part 1
Digital Filters Part 1
 
Multirate DSP
Multirate DSPMultirate DSP
Multirate DSP
 
RF Module Design - [Chapter 5] Low Noise Amplifier
RF Module Design - [Chapter 5]  Low Noise AmplifierRF Module Design - [Chapter 5]  Low Noise Amplifier
RF Module Design - [Chapter 5] Low Noise Amplifier
 
Butterworth filter design
Butterworth filter designButterworth filter design
Butterworth filter design
 

Viewers also liked

Dsp U Lec09 Iir Filter Design
Dsp U   Lec09 Iir Filter DesignDsp U   Lec09 Iir Filter Design
Dsp U Lec09 Iir Filter Designtaha25
 
Dsp U Lec01 Real Time Dsp Systems
Dsp U   Lec01 Real Time Dsp SystemsDsp U   Lec01 Real Time Dsp Systems
Dsp U Lec01 Real Time Dsp Systemstaha25
 
Dsp U Lec04 Discrete Time Signals & Systems
Dsp U   Lec04 Discrete Time Signals & SystemsDsp U   Lec04 Discrete Time Signals & Systems
Dsp U Lec04 Discrete Time Signals & Systemstaha25
 
Dsp U Lec07 Realization Of Discrete Time Systems
Dsp U   Lec07 Realization Of Discrete Time SystemsDsp U   Lec07 Realization Of Discrete Time Systems
Dsp U Lec07 Realization Of Discrete Time Systemstaha25
 
DIT-Radix-2-FFT in SPED
DIT-Radix-2-FFT in SPEDDIT-Radix-2-FFT in SPED
DIT-Radix-2-FFT in SPEDAjay Kumar
 
Dsp U Lec08 Fir Filter Design
Dsp U   Lec08 Fir Filter DesignDsp U   Lec08 Fir Filter Design
Dsp U Lec08 Fir Filter Designtaha25
 
Dsp U Lec06 The Z Transform And Its Application
Dsp U   Lec06 The Z Transform And Its ApplicationDsp U   Lec06 The Z Transform And Its Application
Dsp U Lec06 The Z Transform And Its Applicationtaha25
 
Dft and its applications
Dft and its applicationsDft and its applications
Dft and its applicationsAgam Goel
 
Dsp U Lec05 The Z Transform
Dsp U   Lec05 The Z TransformDsp U   Lec05 The Z Transform
Dsp U Lec05 The Z Transformtaha25
 
FFT and DFT algorithm
FFT and DFT algorithmFFT and DFT algorithm
FFT and DFT algorithmUmer Javed
 
Design of FFT Processor
Design of FFT ProcessorDesign of FFT Processor
Design of FFT ProcessorRohit Singh
 
Dsp U Lec02 Data Converters
Dsp U   Lec02 Data ConvertersDsp U   Lec02 Data Converters
Dsp U Lec02 Data Converterstaha25
 
Dsp U Lec03 Analogue To Digital Converters
Dsp U   Lec03 Analogue To Digital ConvertersDsp U   Lec03 Analogue To Digital Converters
Dsp U Lec03 Analogue To Digital Converterstaha25
 
The discrete fourier transform (dsp) 4
The discrete fourier transform  (dsp) 4The discrete fourier transform  (dsp) 4
The discrete fourier transform (dsp) 4HIMANSHU DIWAKAR
 
Fourier transforms
Fourier transformsFourier transforms
Fourier transformsIffat Anjum
 
Radix 4 FFT algorithm and it time complexity computation
Radix 4 FFT algorithm and it time complexity computationRadix 4 FFT algorithm and it time complexity computation
Radix 4 FFT algorithm and it time complexity computationRaj Jaiswal
 

Viewers also liked (20)

Dsp lecture vol 2 dft & fft
Dsp lecture vol 2 dft & fftDsp lecture vol 2 dft & fft
Dsp lecture vol 2 dft & fft
 
Dsp U Lec09 Iir Filter Design
Dsp U   Lec09 Iir Filter DesignDsp U   Lec09 Iir Filter Design
Dsp U Lec09 Iir Filter Design
 
Dsp U Lec01 Real Time Dsp Systems
Dsp U   Lec01 Real Time Dsp SystemsDsp U   Lec01 Real Time Dsp Systems
Dsp U Lec01 Real Time Dsp Systems
 
Dsp U Lec04 Discrete Time Signals & Systems
Dsp U   Lec04 Discrete Time Signals & SystemsDsp U   Lec04 Discrete Time Signals & Systems
Dsp U Lec04 Discrete Time Signals & Systems
 
Dsp U Lec07 Realization Of Discrete Time Systems
Dsp U   Lec07 Realization Of Discrete Time SystemsDsp U   Lec07 Realization Of Discrete Time Systems
Dsp U Lec07 Realization Of Discrete Time Systems
 
Fft ppt
Fft pptFft ppt
Fft ppt
 
DIT-Radix-2-FFT in SPED
DIT-Radix-2-FFT in SPEDDIT-Radix-2-FFT in SPED
DIT-Radix-2-FFT in SPED
 
Dsp U Lec08 Fir Filter Design
Dsp U   Lec08 Fir Filter DesignDsp U   Lec08 Fir Filter Design
Dsp U Lec08 Fir Filter Design
 
Dsp U Lec06 The Z Transform And Its Application
Dsp U   Lec06 The Z Transform And Its ApplicationDsp U   Lec06 The Z Transform And Its Application
Dsp U Lec06 The Z Transform And Its Application
 
Dft and its applications
Dft and its applicationsDft and its applications
Dft and its applications
 
Dsp U Lec05 The Z Transform
Dsp U   Lec05 The Z TransformDsp U   Lec05 The Z Transform
Dsp U Lec05 The Z Transform
 
FFT and DFT algorithm
FFT and DFT algorithmFFT and DFT algorithm
FFT and DFT algorithm
 
DFT and IDFT Matlab Code
DFT and IDFT Matlab CodeDFT and IDFT Matlab Code
DFT and IDFT Matlab Code
 
Design of FFT Processor
Design of FFT ProcessorDesign of FFT Processor
Design of FFT Processor
 
Dsp U Lec02 Data Converters
Dsp U   Lec02 Data ConvertersDsp U   Lec02 Data Converters
Dsp U Lec02 Data Converters
 
Dsp U Lec03 Analogue To Digital Converters
Dsp U   Lec03 Analogue To Digital ConvertersDsp U   Lec03 Analogue To Digital Converters
Dsp U Lec03 Analogue To Digital Converters
 
The discrete fourier transform (dsp) 4
The discrete fourier transform  (dsp) 4The discrete fourier transform  (dsp) 4
The discrete fourier transform (dsp) 4
 
Dft,fft,windowing
Dft,fft,windowingDft,fft,windowing
Dft,fft,windowing
 
Fourier transforms
Fourier transformsFourier transforms
Fourier transforms
 
Radix 4 FFT algorithm and it time complexity computation
Radix 4 FFT algorithm and it time complexity computationRadix 4 FFT algorithm and it time complexity computation
Radix 4 FFT algorithm and it time complexity computation
 

Similar to Dsp U Lec10 DFT And FFT

Recurrences
RecurrencesRecurrences
RecurrencesDEVTYPE
 
NMR Spectroscopy
NMR SpectroscopyNMR Spectroscopy
NMR Spectroscopyclayqn88
 
Correlative level coding
Correlative level codingCorrelative level coding
Correlative level codingsrkrishna341
 
Solutions_Chapter3.pdf
Solutions_Chapter3.pdfSolutions_Chapter3.pdf
Solutions_Chapter3.pdfTessydee
 
IVR - Chapter 4 - Variational methods
IVR - Chapter 4 - Variational methodsIVR - Chapter 4 - Variational methods
IVR - Chapter 4 - Variational methodsCharles Deledalle
 
Block Cipher vs. Stream Cipher
Block Cipher vs. Stream CipherBlock Cipher vs. Stream Cipher
Block Cipher vs. Stream CipherAmirul Wiramuda
 
Signals and Systems Formula Sheet
Signals and Systems Formula SheetSignals and Systems Formula Sheet
Signals and Systems Formula SheetHaris Hassan
 
R. Jimenez - Fundamental Physics from Astronomical Observations
R. Jimenez - Fundamental Physics from Astronomical ObservationsR. Jimenez - Fundamental Physics from Astronomical Observations
R. Jimenez - Fundamental Physics from Astronomical ObservationsSEENET-MTP
 
Diffusion Schrödinger bridges for score-based generative modeling
Diffusion Schrödinger bridges for score-based generative modelingDiffusion Schrödinger bridges for score-based generative modeling
Diffusion Schrödinger bridges for score-based generative modelingJeremyHeng10
 

Similar to Dsp U Lec10 DFT And FFT (20)

Dft
DftDft
Dft
 
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
 
Monopole zurich
Monopole zurichMonopole zurich
Monopole zurich
 
lec_3.pdf
lec_3.pdflec_3.pdf
lec_3.pdf
 
UIT1504-DSP-II-U9_LMS.pdf
UIT1504-DSP-II-U9_LMS.pdfUIT1504-DSP-II-U9_LMS.pdf
UIT1504-DSP-II-U9_LMS.pdf
 
Recurrences
RecurrencesRecurrences
Recurrences
 
NMR Spectroscopy
NMR SpectroscopyNMR Spectroscopy
NMR Spectroscopy
 
Correlative level coding
Correlative level codingCorrelative level coding
Correlative level coding
 
03 image transform
03 image transform03 image transform
03 image transform
 
Solutions_Chapter3.pdf
Solutions_Chapter3.pdfSolutions_Chapter3.pdf
Solutions_Chapter3.pdf
 
IVR - Chapter 4 - Variational methods
IVR - Chapter 4 - Variational methodsIVR - Chapter 4 - Variational methods
IVR - Chapter 4 - Variational methods
 
16 fft
16 fft16 fft
16 fft
 
Lecture1
Lecture1Lecture1
Lecture1
 
ch3-2
ch3-2ch3-2
ch3-2
 
Block Cipher vs. Stream Cipher
Block Cipher vs. Stream CipherBlock Cipher vs. Stream Cipher
Block Cipher vs. Stream Cipher
 
Signals and Systems Formula Sheet
Signals and Systems Formula SheetSignals and Systems Formula Sheet
Signals and Systems Formula Sheet
 
Lecture 9 f17
Lecture 9 f17Lecture 9 f17
Lecture 9 f17
 
R. Jimenez - Fundamental Physics from Astronomical Observations
R. Jimenez - Fundamental Physics from Astronomical ObservationsR. Jimenez - Fundamental Physics from Astronomical Observations
R. Jimenez - Fundamental Physics from Astronomical Observations
 
Jere Koskela slides
Jere Koskela slidesJere Koskela slides
Jere Koskela slides
 
Diffusion Schrödinger bridges for score-based generative modeling
Diffusion Schrödinger bridges for score-based generative modelingDiffusion Schrödinger bridges for score-based generative modeling
Diffusion Schrödinger bridges for score-based generative modeling
 

Recently uploaded

Intermediate Accounting, Volume 2, 13th Canadian Edition by Donald E. Kieso t...
Intermediate Accounting, Volume 2, 13th Canadian Edition by Donald E. Kieso t...Intermediate Accounting, Volume 2, 13th Canadian Edition by Donald E. Kieso t...
Intermediate Accounting, Volume 2, 13th Canadian Edition by Donald E. Kieso t...ssuserf63bd7
 
Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Peter Ward
 
1911 Gold Corporate Presentation Apr 2024.pdf
1911 Gold Corporate Presentation Apr 2024.pdf1911 Gold Corporate Presentation Apr 2024.pdf
1911 Gold Corporate Presentation Apr 2024.pdfShaun Heinrichs
 
EUDR Info Meeting Ethiopian coffee exporters
EUDR Info Meeting Ethiopian coffee exportersEUDR Info Meeting Ethiopian coffee exporters
EUDR Info Meeting Ethiopian coffee exportersPeter Horsten
 
The McKinsey 7S Framework: A Holistic Approach to Harmonizing All Parts of th...
The McKinsey 7S Framework: A Holistic Approach to Harmonizing All Parts of th...The McKinsey 7S Framework: A Holistic Approach to Harmonizing All Parts of th...
The McKinsey 7S Framework: A Holistic Approach to Harmonizing All Parts of th...Operational Excellence Consulting
 
Horngren’s Financial & Managerial Accounting, 7th edition by Miller-Nobles so...
Horngren’s Financial & Managerial Accounting, 7th edition by Miller-Nobles so...Horngren’s Financial & Managerial Accounting, 7th edition by Miller-Nobles so...
Horngren’s Financial & Managerial Accounting, 7th edition by Miller-Nobles so...ssuserf63bd7
 
How Generative AI Is Transforming Your Business | Byond Growth Insights | Apr...
How Generative AI Is Transforming Your Business | Byond Growth Insights | Apr...How Generative AI Is Transforming Your Business | Byond Growth Insights | Apr...
How Generative AI Is Transforming Your Business | Byond Growth Insights | Apr...Hector Del Castillo, CPM, CPMM
 
Entrepreneurship lessons in Philippines
Entrepreneurship lessons in  PhilippinesEntrepreneurship lessons in  Philippines
Entrepreneurship lessons in PhilippinesDavidSamuel525586
 
20220816-EthicsGrade_Scorecard-JP_Morgan_Chase-Q2-63_57.pdf
20220816-EthicsGrade_Scorecard-JP_Morgan_Chase-Q2-63_57.pdf20220816-EthicsGrade_Scorecard-JP_Morgan_Chase-Q2-63_57.pdf
20220816-EthicsGrade_Scorecard-JP_Morgan_Chase-Q2-63_57.pdfChris Skinner
 
Send Files | Sendbig.comSend Files | Sendbig.com
Send Files | Sendbig.comSend Files | Sendbig.comSend Files | Sendbig.comSend Files | Sendbig.com
Send Files | Sendbig.comSend Files | Sendbig.comSendBig4
 
APRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfAPRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfRbc Rbcua
 
PSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationPSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationAnamaria Contreras
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03DallasHaselhorst
 
Driving Business Impact for PMs with Jon Harmer
Driving Business Impact for PMs with Jon HarmerDriving Business Impact for PMs with Jon Harmer
Driving Business Impact for PMs with Jon HarmerAggregage
 
Supercharge Your eCommerce Stores-acowebs
Supercharge Your eCommerce Stores-acowebsSupercharge Your eCommerce Stores-acowebs
Supercharge Your eCommerce Stores-acowebsGOKUL JS
 
BAILMENT & PLEDGE business law notes.pptx
BAILMENT & PLEDGE business law notes.pptxBAILMENT & PLEDGE business law notes.pptx
BAILMENT & PLEDGE business law notes.pptxran17april2001
 
1911 Gold Corporate Presentation Apr 2024.pdf
1911 Gold Corporate Presentation Apr 2024.pdf1911 Gold Corporate Presentation Apr 2024.pdf
1911 Gold Corporate Presentation Apr 2024.pdfShaun Heinrichs
 
Cyber Security Training in Office Environment
Cyber Security Training in Office EnvironmentCyber Security Training in Office Environment
Cyber Security Training in Office Environmentelijahj01012
 
Effective Strategies for Maximizing Your Profit When Selling Gold Jewelry
Effective Strategies for Maximizing Your Profit When Selling Gold JewelryEffective Strategies for Maximizing Your Profit When Selling Gold Jewelry
Effective Strategies for Maximizing Your Profit When Selling Gold JewelryWhittensFineJewelry1
 
NAB Show Exhibitor List 2024 - Exhibitors Data
NAB Show Exhibitor List 2024 - Exhibitors DataNAB Show Exhibitor List 2024 - Exhibitors Data
NAB Show Exhibitor List 2024 - Exhibitors DataExhibitors Data
 

Recently uploaded (20)

Intermediate Accounting, Volume 2, 13th Canadian Edition by Donald E. Kieso t...
Intermediate Accounting, Volume 2, 13th Canadian Edition by Donald E. Kieso t...Intermediate Accounting, Volume 2, 13th Canadian Edition by Donald E. Kieso t...
Intermediate Accounting, Volume 2, 13th Canadian Edition by Donald E. Kieso t...
 
Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...
 
1911 Gold Corporate Presentation Apr 2024.pdf
1911 Gold Corporate Presentation Apr 2024.pdf1911 Gold Corporate Presentation Apr 2024.pdf
1911 Gold Corporate Presentation Apr 2024.pdf
 
EUDR Info Meeting Ethiopian coffee exporters
EUDR Info Meeting Ethiopian coffee exportersEUDR Info Meeting Ethiopian coffee exporters
EUDR Info Meeting Ethiopian coffee exporters
 
The McKinsey 7S Framework: A Holistic Approach to Harmonizing All Parts of th...
The McKinsey 7S Framework: A Holistic Approach to Harmonizing All Parts of th...The McKinsey 7S Framework: A Holistic Approach to Harmonizing All Parts of th...
The McKinsey 7S Framework: A Holistic Approach to Harmonizing All Parts of th...
 
Horngren’s Financial & Managerial Accounting, 7th edition by Miller-Nobles so...
Horngren’s Financial & Managerial Accounting, 7th edition by Miller-Nobles so...Horngren’s Financial & Managerial Accounting, 7th edition by Miller-Nobles so...
Horngren’s Financial & Managerial Accounting, 7th edition by Miller-Nobles so...
 
How Generative AI Is Transforming Your Business | Byond Growth Insights | Apr...
How Generative AI Is Transforming Your Business | Byond Growth Insights | Apr...How Generative AI Is Transforming Your Business | Byond Growth Insights | Apr...
How Generative AI Is Transforming Your Business | Byond Growth Insights | Apr...
 
Entrepreneurship lessons in Philippines
Entrepreneurship lessons in  PhilippinesEntrepreneurship lessons in  Philippines
Entrepreneurship lessons in Philippines
 
20220816-EthicsGrade_Scorecard-JP_Morgan_Chase-Q2-63_57.pdf
20220816-EthicsGrade_Scorecard-JP_Morgan_Chase-Q2-63_57.pdf20220816-EthicsGrade_Scorecard-JP_Morgan_Chase-Q2-63_57.pdf
20220816-EthicsGrade_Scorecard-JP_Morgan_Chase-Q2-63_57.pdf
 
Send Files | Sendbig.comSend Files | Sendbig.com
Send Files | Sendbig.comSend Files | Sendbig.comSend Files | Sendbig.comSend Files | Sendbig.com
Send Files | Sendbig.comSend Files | Sendbig.com
 
APRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfAPRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdf
 
PSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationPSCC - Capability Statement Presentation
PSCC - Capability Statement Presentation
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03
 
Driving Business Impact for PMs with Jon Harmer
Driving Business Impact for PMs with Jon HarmerDriving Business Impact for PMs with Jon Harmer
Driving Business Impact for PMs with Jon Harmer
 
Supercharge Your eCommerce Stores-acowebs
Supercharge Your eCommerce Stores-acowebsSupercharge Your eCommerce Stores-acowebs
Supercharge Your eCommerce Stores-acowebs
 
BAILMENT & PLEDGE business law notes.pptx
BAILMENT & PLEDGE business law notes.pptxBAILMENT & PLEDGE business law notes.pptx
BAILMENT & PLEDGE business law notes.pptx
 
1911 Gold Corporate Presentation Apr 2024.pdf
1911 Gold Corporate Presentation Apr 2024.pdf1911 Gold Corporate Presentation Apr 2024.pdf
1911 Gold Corporate Presentation Apr 2024.pdf
 
Cyber Security Training in Office Environment
Cyber Security Training in Office EnvironmentCyber Security Training in Office Environment
Cyber Security Training in Office Environment
 
Effective Strategies for Maximizing Your Profit When Selling Gold Jewelry
Effective Strategies for Maximizing Your Profit When Selling Gold JewelryEffective Strategies for Maximizing Your Profit When Selling Gold Jewelry
Effective Strategies for Maximizing Your Profit When Selling Gold Jewelry
 
NAB Show Exhibitor List 2024 - Exhibitors Data
NAB Show Exhibitor List 2024 - Exhibitors DataNAB Show Exhibitor List 2024 - Exhibitors Data
NAB Show Exhibitor List 2024 - Exhibitors Data
 

Dsp U Lec10 DFT And FFT

  • 1. EC533: Digital Signal Processing 5 l l Lecture 10 DFT and FFT
  • 2. 10.1 - Frequency Domain Vs. Time Domain CTFS DTFS CTFT DTFT
  • 3. 10.2 - Discrete Fourier Transform (DFT) • A finite or periodic sequence has only N unique values, f d h l l x[n] for 0 ≤ n p N • S t Spectrum is completely defined by N distinct frequency i l t l d fi d b di ti t f samples • Divide 0..2π into N equal steps {ω(k)} = 2πk/N 0 2π steps, • Uniform sampling of DTFT spectrum:
  • 4. 10.2 – DFT – contd. Hence, Where, i.e, 1/Nth of a revolution Twiddle Factor Properties of the Twiddle Factor: k+N k j W N = W N periodicity N k+ k W N 2 = − W N -1 1 2 W N = W N 2 -j N=4
  • 5. DFT Example Find the DFT for the 4 points time sequence {1 0 0 1}, fs=8KHz 3 3 X (0) = ∑ x(nT ) e − j 0 = ∑ x(nT ) at k=0, n =0 n =0 = x(0) + x(T ) + x(2T ) + x(3T ) = 1+ 0 + 0 +1 = 2 3 at k 1, k=1, X (1) = ∑ x(nT ) e − jΩnT , Ω = 2π n =0 NT 3 − j 2πn X (1) = ∑ x(nT ) e N n =0 = 1 + 0 + 0 + 1e − j 2π 3 4 = 1 + e − j 3π 4 ⎛ 3π ⎞ ⎛ 3π ⎞ = 1 + cos⎜ ⎟ − j sin ⎜ ⎟ = 1+ j ⎝ 2 ⎠ ⎝ 2 ⎠
  • 6. DFT Example – contd. 3 3 − j 2π 2 n at k=2, X (2) = ∑ x(nT ) e − j 2 ΩnT = ∑ x(nT ) e N n =0 n =0 3 − j 4πn = ∑ x(nT ) e N n =0 = 1 + 0 + 0 + 1e − j 4π 3 4 = 1 + e − j 3π = 1 − 1 = 0 3 − j 2π 3 n at k=3, X (3) = ∑ x(nT ) e N n =0 = 1 + 0 + 0 + 1e − j 9π 2 = 1 − j X (k ) = {2, 1 + j , 0, 1 − j}
  • 7. DFT Example – contd. x(nT) |X(k)| 1 2 √2 x x x 0 125 250 375 t(µs) 0 12.57 25.14 37.71 50.28 kΩ(X 103 rad/s) φ(k)(⁰) x(n) ={ , 0, 0,1 1 } +45 Phase Angle  indeterminate 37.71 0 x x 12.57 25.14 50.28 kΩ(X 103 rad/s) ‐45 X(k) ={2,1+ j, 0,1− j}
  • 8. 10.3 - Inverse Discrete Fourier Transform ( (IDFT)) • • Ch k Check
  • 9. 10.4 - DFT Computational Complexity The DFT has: • (N complex multiplies + N-1 complex adds per point) x N points (k = 0..N-1) N2 complex multiplies and N(N 1) complex additions N(N-1) where cpx mult: (a+jb)(c+jd) = ac - bd + j(ad+bc)= 4 real mults + 2 real adds cpx add = 2 real adds • Total: 4N2 real mults, 4N2-2N real adds •Looking at DFT Matrix, lots of repeated structure are found; means opportunities for efficient t iti f ffi i t algorithm to be used to reduce the DFT complexity
  • 10. 10.5 – Fast Fourier Transform (FFT) • Reduce complexity of DFT from O(N2) to O(N log2N) O(N·log • Grows more slowly with larger N • Works by decomposing large DFT into several stages of smaller DFTs • Often provided as a highly optimized library
  • 11. 10.6 - Decimation in Time (DIT) FFT • Can rearrange DFT formula in 2 halves:
  • 12. 10.6 - Decimation in Time (DIT) FFT - contd. • We can evaluate an N-pt DFT as two N/2-pt DFTs (plus a few mults/adds) • But if DFTN{•} ~ O(N2) then DFTN/2{•} ~ O((N/2)2) = 1/4 O(N2) • Total computation ~ 2 * 1/4 O(N2) = 1/2 the computation (+ε) of direct DFT
  • 13. 10.6.1 - One-Stage DIT Flowgraph
  • 14. 10.6.2 - Multiple DIT Stages • If decomposing one DFTN into two smaller DFTN/2’s speeds things up... p • Why not further divide into DFTN/4’s ? • ie i.e. • so have • Similarly,
  • 15. 10.6.2 - Multiple DIT Stages – contd. Two-Stage DIT Flowgraph
  • 16. 10.6.2 - Multi-stage DIT FFT – contd. • Can keep doing this until we get down to 2-pt DFTs: x(0) x(1)
  • 17. 10.7 - FFT Implementation Details • Basic Butterfly at any stage • Can be simplified to
  • 18. 10. 8 - 8-pt DIT FFT Flowgraph 000 001 0 0 010 2 011 W 8 100 101 110 111 2 W 8 • -1’s absorbed into summation nodes 0 • WN disappears • Twiddle factor step=N/2 j (stage order), j≠1
  • 19. 10.9 - FFT Complexity N • Total no. of butterflies =  Total no. of butterflies  log 2 N g 2 No of stages f t • As each butterfly gives one complex multiplication and 2 As each butterfly gives one complex multiplication and 2  complex addition • So, FFT has complex multiplications of So, FFT has complex multiplications of  N Ο( log 2 N) instead of Ο(N 2 ) in case of DFT 2 and complex additions  of Ο(Nl 2 N) i (Nlog instead of Ο(N(N - 1)) i case of DFT d f in f
  • 20. 10.10 - Inverse FFT • • Thus Steps f calculating IFFT: St for l l ti IFFT 1. Take the conjugate of the freq. •Hence, Use FFT to calculate IFFT Samples 2. Calculate FFT of these samples 3. Divide the output by N 4. 4 Take the conjugate of the output