Finite Precision Numerical Effects

Slides:



Advertisements
Similar presentations
FINITE WORD LENGTH EFFECTS
Advertisements

FILTERS Presented by: Mohammed Alani Supervised By: Dr. Nazila Safavi
Digital Signal Processing – Chapter 11 Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah
Discrete-Time Signals and Systems Quote of the Day Mathematics is the tool specially suited for dealing with abstract concepts of any kind and there is.
Implementation of Basic Digital Filter Structures R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2003.
IIR Filters and Equalizers R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
Science is organized knowledge. Wisdom is organized life.
Discrete-Time Fourier Transform Properties Quote of the Day The profound study of nature is the most fertile source of mathematical discoveries. Joseph.
Discrete-Time IIR Filter Design from Continuous-Time Filters Quote of the Day Experience is the name everyone gives to their mistakes. Oscar Wilde Content.
The Discrete Fourier Series
Fast Fourier Transforms
DSP-CIS Chapter-6: Filter Implementation Marc Moonen Dept. E.E./ESAT, KU Leuven
Unit III FIR Filter Design
Filter Design Techniques
FINITE word length effect in fixed point processing The Digital Signal Processors have finite width of the data bus. The word-length after mathematical.
Chapter 6 Digital Filter Structures
Zhongguo Liu_Biomedical Engineering_Shandong Univ. Biomedical Signal processing Chapter 6 structures for discrete- time system Zhongguo Liu.
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.
DISP 2003 Lecture 6 – Part 2 Digital Filters 4 Coefficient quantization Zero input limit cycle How about using float? Philippe Baudrenghien, AB-RF.
Copyright ©2010, ©1999, ©1989 by Pearson Education, Inc. All rights reserved. Discrete-Time Signal Processing, Third Edition Alan V. Oppenheim Ronald W.
The Inverse z-Transform In science one tries to tell people, in such a way as to be understood by everyone, something that no one ever knew before. But.
Ch.5 Fixed-Point vs. Floating Point. 5.1 Q-format Number Representation on Fixed-Point DSPs 2’s Complement Number –B = b N-1 …b 1 b 0 –Decimal Value D.
Infinite Impulse Response Filters
Linear Time-Invariant Systems Quote of the Day The longer mathematics lives the more abstract – and therefore, possibly also the more practical – it becomes.
Professor A G Constantinides 1 Finite Wordlength Effects Finite register lengths and A/D converters cause errors in:- (i) Input quantisation. (ii)Coefficient.
The Z-Transform Quote of the Day Such is the advantage of a well-constructed language that its simplified notation often becomes the source of profound.
Transform Analysis of LTI Systems Quote of the Day Any sufficiently advanced technology is indistinguishable from magic. Arthur C. Clarke Content and Figures.
Software Defined Radio PhD Program on Electrical Engineering Sampling Theory and Quantization José Vieira.
Overview of Adaptive Filters Quote of the Day When you look at yourself from a universal standpoint, something inside always reminds or informs you that.
Structures for Discrete-Time Systems
Fourier Analysis Using the DFT Quote of the Day On two occasions I have been asked, “Pray, Mr. Babbage, if you put into the machine wrong figures, will.
DEPARTMENTT OF ECE TECHNICAL QUIZ-1 AY Sub Code/Name: EC6502/Principles of digital Signal Processing Topic: Unit 1 & Unit 3 Sem/year: V/III.
Copyright ©2010, ©1999, ©1989 by Pearson Education, Inc. All rights reserved. Discrete-Time Signal Processing, Third Edition Alan V. Oppenheim Ronald W.
Fast Fourier Transforms. 2 Discrete Fourier Transform The DFT pair was given as Baseline for computational complexity: –Each DFT coefficient requires.
Frequency Response of Rational Systems Quote of the Day If knowledge can create problems, it is not through ignorance that we can solve them. Isaac Asimov.
Minimum-Phase Systems Quote of the Day Experience is the name everyone gives to their mistakes. Oscar Wilde Content and Figures are from Discrete-Time.
Optimum Approximation of FIR Filters Quote of the Day There are three kinds of lies: lies, damned lies, and statistics. Benjamin Disraeli Content and Figures.
Signals and Systems Lecture Filter Structure and Quantization Effects.
Chapter 6 Discrete-Time System. 2/90  Operation of discrete time system 1. Discrete time system where and are multiplier D is delay element Fig. 6-1.
Minimum-Phase Systems Quote of the Day Experience is the name everyone gives to their mistakes. Oscar Wilde Content and Figures are from Discrete-Time.
Discrete-Time Processing of Continuous-Time Signals Quote of the Day Do not worry about your difficulties in Mathematics. I can assure you mine are still.
Generalized Linear Phase Quote of the Day The mathematical sciences particularly exhibit order, symmetry, and limitation; and these are the greatest forms.
Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.
Real-time Digital Signal Processing Digital Filters.
Relationship between Magnitude and Phase Quote of the Day Experience is the name everyone gives to their mistakes. Oscar Wilde Content and Figures are.
Relationship between Magnitude and Phase Quote of the Day Experience is the name everyone gives to their mistakes. Oscar Wilde Content and Figures are.
1 BIEN425 – Lecture 9 By the end of the lecture, you should be able to: –Describe the properties of ideal filters –Describe the linear / logarithm design.
EE 445S Real-Time Digital Signal Processing Lab Fall 2013 Lab 3 IIR Filters Chao Jia Debarati Kundu Andrew Mark.
Application of digital filter in engineering
FINITE word length effect in fixed point processing
Unit IV Finite Word Length Effects
Lattice Struture.
EEE4176 Applications of Digital Signal Processing
FINITE word length effect in fixed point processing
Sampling rate conversion by a rational factor
The Discrete Fourier Transform
Quick Review of LTI Systems
لجنة الهندسة الكهربائية
Lect5 A framework for digital filter design
Quantization in Implementing Systems
Discrete-Time Fourier Transform
Chapter 6 Discrete-Time System
Finite Wordlength Effects
DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 4
Conceptual Representation of A/D Conversion
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Ideal Filters Zero Phase Transfer Functions Linear Phase Transfer.
DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 4
Chapter 9 Advanced Topics in DSP
Zhongguo Liu Biomedical Engineering
Fixed-point Analysis of Digital Filters
Presentation transcript:

Finite Precision Numerical Effects Quote of the Day When you look at yourself from a universal standpoint, something inside always reminds or informs you that there are bigger and better things to worry about. Albert Einstein Content and Figures are from Discrete-Time Signal Processing, 2e by Oppenheim, Shafer, and Buck, ©1999-2000 Prentice Hall Inc.

Quantization in Implementing Systems Consider the following system A more realistic model would be In order to analyze it we would prefer Copyright (C) 2005 Güner Arslan 351M Digital Signal Processing

Effects of Coefficient Quantization in IIR Systems When the parameters of a rational system are quantized The poles and zeros of the system function move If the system structure of the system is sensitive to perturbation of coefficients The resulting system may no longer be stable The resulting system may no longer meet the original specs We need to do a detailed sensitivity analysis Quantize the coefficients and analyze frequency response Compare frequency response to original response We would like to have a general sense of the effect of quantization Copyright (C) 2005 Güner Arslan 351M Digital Signal Processing

351M Digital Signal Processing Effects on Roots Each root is affected by quantization errors in ALL coefficient Tightly clustered roots can be significantly effected Narrow-bandwidth lowpass or bandpass filters can be very sensitive to quantization noise The larger the number of roots in a cluster the more sensitive it becomes This is the reason why second order cascade structures are less sensitive to quantization error than higher order system Each second order system is independent from each other Quantization Copyright (C) 2005 Güner Arslan 351M Digital Signal Processing

Poles of Quantized Second-Order Sections Consider a 2nd order system with complex-conjugate pole pair The pole locations after quantization will be on the grid point  3-bits 7-bits  Copyright (C) 2005 Güner Arslan 351M Digital Signal Processing

Coupled-Form Implementation of Complex-Conjugate Pair Equivalent implementation of the second order system But the quantization grid this time is Copyright (C) 2005 Güner Arslan 351M Digital Signal Processing

Effects of Coefficient Quantization in FIR Systems No poles to worry about only zeros Direct form is commonly used for FIR systems Suppose the coefficients are quantized Quantized system is linearly related to the quantization error Again quantization noise is higher for clustered zeros However, most FIR filters have spread zeros Copyright (C) 2005 Güner Arslan 351M Digital Signal Processing

Round-Off Noise in Digital Filters Difference equations implemented with finite-precision arithmetic are non-linear systems Second order direct form I system Model with quantization effect Density function error terms for rounding Copyright (C) 2005 Güner Arslan 351M Digital Signal Processing

Analysis of Quantization Error Combine all error terms to single location to get The variance of e[n] in the general case is The contribution of e[n] to the output is The variance of the output error term f[n] is Copyright (C) 2005 Güner Arslan 351M Digital Signal Processing

Round-Off Noise in a First-Order System Suppose we want to implement the following stable system The quantization error noise variance is Noise variance increases as |a| gets closer to the unit circle As |a| gets closer to 1 we have to use more bits to compensate for the increasing error Copyright (C) 2005 Güner Arslan 351M Digital Signal Processing

Zero-Input Limit Cycles in Fixed-Point Realization of IIR Filters For stable IIR systems the output will decay to zero when the input becomes zero A finite-precision implementation, however, may continue to oscillate indefinitely Nonlinear behaviour very difficult to analyze so we sill study by example Example: Limite Cycle Behavior in First-Order Systems Assume x[n] and y[n-1] are implemented by 4 bit registers Copyright (C) 2005 Güner Arslan 351M Digital Signal Processing

351M Digital Signal Processing Example Cont’d Assume that a=1/2=0.100b and the input is If we calculate the output for values of n A finite input caused an oscilation with period 1 n y[n] Q(y[n]) 7/8=0.111b 1 7/16=0.011100b 1/2=0.100b 2 1/4=0.010000b 1/4=0.010b 3 1/8=0.001000b 1/8=0.001b 4 1/16=0.00010b Copyright (C) 2005 Güner Arslan 351M Digital Signal Processing

Example: Limite Cycles due to Overflow Consider a second-order system realized by Where Q() represents two’s complement rounding Word length is chosen to be 4 bits Assume a1=3/4=0.110b and a2=-3/4=1.010b Also assume The output at sample n=0 is After rounding up we get Binary carry overflows into the sign bit changing the sign When repeated for n=1 Copyright (C) 2005 Güner Arslan 351M Digital Signal Processing

351M Digital Signal Processing Copyright (C) 2005 Güner Arslan 351M Digital Signal Processing

Avoiding Limite Cycles Desirable to get zero output for zero input: Avoid limit-cycles Generally adding more bits would avoid overflow Using double-length accumulators at addition points would decrease likelihood of limit cycles Trade-off between limit-cycle avoidance and complexity FIR systems cannot support zero-input limit cycles Copyright (C) 2005 Güner Arslan 351M Digital Signal Processing