DISP 2003 Lecture 6 – Part 2 Digital Filters 4 Coefficient quantization Zero input limit cycle How about using float? Philippe Baudrenghien, AB-RF.

Slides:



Advertisements
Similar presentations
FINITE WORD LENGTH EFFECTS
Advertisements

ELEN 5346/4304 DSP and Filter Design Fall Lecture 8: LTI filter types Instructor: Dr. Gleb V. Tcheslavski Contact:
So far We have introduced the Z transform
Digital Signal Processing – Chapter 11 Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah
Unit 9 IIR Filter Design 1. Introduction The ideal filter Constant gain of at least unity in the pass band Constant gain of zero in the stop band The.
Real-time Digital Signal Processing with the TMS320C6x
AMI 4622 Digital Signal Processing
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.
AGC DSP AGC DSP Professor A G Constantinides 1 Digital Filter Specifications Only the magnitude approximation problem Four basic types of ideal filters.
DSP-CIS Chapter-6: Filter Implementation Marc Moonen Dept. E.E./ESAT, KU Leuven
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Simple Data Type Representation and conversion of numbers
1 Diagramas de bloco e grafos de fluxo de sinal Estruturas de filtros IIR Projeto de filtro FIR Filtros Digitais.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Fall.
UNIT-5 Filter Designing. INTRODUCTION The Digital filters are discrete time systems used mainly for filtering of arrays. The array or sequence are obtained.
IIR Filter design (cf. Shenoi, 2006) The transfer function of the IIR filter is given by Its frequency responses are (where w is the normalized frequency.
DISP 2003 Lecture 5 – Part 2 Digital Filters 2 Implementation of FIR Filters IIR Filters Properties, Design and Implementation Philippe Baudrenghien, AB-RF.
Infinite Impulse Response Filters
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.
EE513 Audio Signals and Systems Complex Oscillator Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
BIEN425 – Lecture 14 By the end of the lecture, you should be able to:
Z TRANSFORM AND DFT Z Transform
Fundamentals of Digital Signal Processing. Fourier Transform of continuous time signals with t in sec and F in Hz (1/sec). Examples:
Chapter 7 Finite Impulse Response(FIR) Filter Design
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 20:Spectral Filtering Ken Greenebaum.
Copyright © 2003 Texas Instruments. All rights reserved. DSP C5000 Chapter 15 Infinite Impulse Response (IIR) Filter Implementation.
Chapter 7. Filter Design Techniques
1 Digital Signal Processing Digital Signal Processing  IIR digital filter structures  Filter design.
Digital Signal Processing
Finite Precision Numerical Effects
Software Defined Radio PhD Program on Electrical Engineering Sampling Theory and Quantization José Vieira.
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.
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.
DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien,
Chapter 6. Digital Filter Structures and Designs Section
Real-time Digital Signal Processing Digital Filters.
بسم الله الرحمن الرحيم Digital Signal Processing Lecture 2 Analog to Digital Conversion University of Khartoum Department of Electrical and Electronic.
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.
Professor A G Constantinides 1 Digital Filter Specifications We discuss in this course only the magnitude approximation problem There are four basic types.
FINITE word length effect in fixed point processing
Unit IV Finite Word Length Effects
IIR Filter design (cf. Shenoi, 2006)
Lecture: IIR Filter Design
Amplitude Modulation X1(w) Y1(w) y1(t) = x1(t) cos(wc t) cos(wc t)
EEE4176 Applications of Digital Signal Processing
IIR Filters FIR vs. IIR IIR filter design procedure
FINITE word length effect in fixed point processing
J McClellan School of Electrical and Computer Engineering
Infinite Impulse Response Filters
Quick Review of LTI Systems
لجنة الهندسة الكهربائية
Lect5 A framework for digital filter design
UNIT V Linear Time Invariant Discrete-Time Systems
Quantization in Implementing Systems
Z TRANSFORM AND DFT Z Transform
Chapter 6 Discrete-Time System
Finite Wordlength Effects
Everything You Ever Wanted to Know About Filters*
DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 4
Chapter 7 Finite Impulse Response(FIR) Filter Design
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
DSP-CIS Chapter 5: Filter Implementation
ELEN E4810: Digital Signal Processing Topic 11: Continuous Signals
Presentation transcript:

DISP 2003 Lecture 6 – Part 2 Digital Filters 4 Coefficient quantization Zero input limit cycle How about using float? Philippe Baudrenghien, AB-RF

27 March 2003P Baudrenghien AB/RF2 Quantization of coefficients The coefficients a k and b r must be quantized into our two’s complement fractional This creates a distortion in the achieved frequency response We measure the sensitivity to coefficient quantization by comparing the poles/zeros of the infinite precision and finite precision realizations

27 March 2003P Baudrenghien AB/RF3 Displacement of the poles (1) Our transfer function has N poles p 0, p 1, …, p N-1 defined by the zeros of the denominator (Nth order polynomial with coefficients a 0, a 1, …, a N ) Let us introduce an error  a m on the coefficient a m This displaces all poles: p 0 -> p 0 +  p 0, p 1 -> p 1 +  p 1, … The displacement  p n of the n th pole due to the error  a m is given by

27 March 2003P Baudrenghien AB/RF4 Displacement of the poles (2) High sensitivity if the filter has many poles. High order some poles are close together Potentially unstable if one pole is displaced outside the unit circle Conclusions use cascade of biquads (only 2 poles per transfer function) beware of poles close to the unit circle

27 March 2003P Baudrenghien AB/RF5 Elliptic IIR. Direct Form (1) Consider the fourth order Elliptic IIR LPF (Example 4, slide 11 in lecture 5, Part II) Direct Form II implementation (slide 15 in lecture 5, Part II) Quantize its coefficients with 8 bits … … and the filter becomes unstable. Two poles are moved outside the unit circle Pole/zero plot of the infinite precision (blue) and finite precision (red) Elliptic IIR. Direct Form II, 8 bits coefficients.

27 March 2003P Baudrenghien AB/RF6 Elliptic IIR. Direct Form (2) … so we increase the number of bits: 9 bits coefficients … … and it is stable but the frequency response shows severe distortion Pole/zero plot of the infinite precision (blue) and finite precision (red) Elliptic IIR. Comparison of the achieved frequency response (green) with the reference (blue). Direct Form II, 9 bits coefficients.

27 March 2003P Baudrenghien AB/RF7 Elliptic IIR. Direct Form (3) …we have to use 12 bits coefficients to obtain a reasonable result … but there still is a big ripple at the end of the Pass-band Comparison of the achieved frequency response (green) with the reference (blue). Direct Form II, 12 bits coefficients

27 March 2003P Baudrenghien AB/RF8 Elliptic IIR. Cascade of biquads We now implement the IIR with a cascade of 2 biquads (slide 16, lecture 5, Part II) The realization is now stable with only 8 bits coefficients The frequency response is a reasonable match to the reference Comparison of the achieved frequency response (green) with the reference (blue). Cascade of two biquads, 8 bits coefficients Lesson: Always use a cascade of biquads!

27 March 2003P Baudrenghien AB/RF9 Equiripple FIR (1) Coefficient quantization displaces the zeros as well and the FIR response will also suffer distortion Consider the 31 coefficients Equiripple FIR (slide 17, lecture 5, Part I) First use 8 bits coefficients. The result is quite good Pole/zero plot of the infinite precision (blue) and finite precision (red) Equiripple FIR. Comparison of the achieved frequency response (green) with the reference (blue). 8 bits coefficients.

27 March 2003P Baudrenghien AB/RF10 Equiripple FIR (2) So we decrease the resolution further: 5 bits coefficients… … the impulse response is much distorted … … the zeros are not displaced much … Impulse response of infinite precision (blue dots) and finite precision (green squares). Pole/zero plot of the infinite precision (blue) and finite precision (red). Equiripple FIR. 5 bits coefficients

27 March 2003P Baudrenghien AB/RF11 Equiripple FIR (3) … and the frequency response is still acceptable. It is actually almost within specs … Comparison of the achieved frequency response (green) with the reference (blue). Equiripple FIR. 5 bits coefficients. Lesson: FIR are much less sensitive to coefficient quantization

27 March 2003P Baudrenghien AB/RF12 Zero Input Limit Cycle Back to the quantization of data So far (Part I) we have considered that the quantization noise sources (e 1 (n),e 2 (n),…) were white and independent of the input data x(n). This does not hold if the data covers a very small portion of the dynamic range

27 March 2003P Baudrenghien AB/RF13 Zero Input Limit Cycle. Rounding First order system We have IC: y(0)=1 switch input off: x(n) = 0 precision = 1 decimal digit a = -0.9 Rounding (downwards) to the first fractional digit Limit cycle of frequency ½ and amplitude 0.4

27 March 2003P Baudrenghien AB/RF14 Zero Input Limit Cycle. Truncation Truncation With zero input, an oscillation can be present at the output of a first order filter if rounding is used. For second and higher order filters a zero input limit cycle can appear with both rounding and truncation. The frequency of the limit cycle is close to the frequency where the filter has maximum response No limit cycle

27 March 2003P Baudrenghien AB/RF15 Bound on Zero Input Limit Cycle Let h(n) be the impulse response from the quantization noise e(n) to the filter output f(n), we have: This bound is often largely over-estimated.

27 March 2003P Baudrenghien AB/RF16 Floating Point Format IEEE 32 bits standard No need for scaling … Dynamic range covers 77 decades!

27 March 2003P Baudrenghien AB/RF17 Quantization error with float Quantization error introduced by both additions and multiplications By rounding (or truncating) the mantissa of x(n) to the b+1 bits format, we get Q[x(n)] where The quantization noise is an additive error term The noise is proportional to the signal (constant SNR) and the overall performance is much better