FINITE WORD LENGTH EFFECTS

Slides:



Advertisements
Similar presentations
Lecture 2 Operational Amplifiers
Advertisements

| Page Angelo Farina UNIPR | All Rights Reserved | Confidential Digital sound processing Convolution Digital Filters FFT.
0 - 0.
It is very difficult to measure the small change in volume of the mercury. If the mercury had the shape of a sphere, the change in diameter would be very.
Chapter 3: PCM Noise and Companding
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.
© 2003 Xilinx, Inc. All Rights Reserved Course Wrap Up DSP Design Flow.
Generating Random Numbers
Fixed-point design SYSC5603 (ELG6163) Digital Signal Processing Microprocessors, Software and Applications Miodrag Bolic.
FILTERS Presented by: Mohammed Alani Supervised By: Dr. Nazila Safavi
Analog to Digital Converters (ADC) 2 ©Paul Godin Created April 2008.
Digital Signal Processing – Chapter 11 Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah
CENG536 Computer Engineering Department Çankaya University.
ECIV 201 Computational Methods for Civil Engineers Richard P. Ray, Ph.D., P.E. Error Analysis.
Lecture 4 Measurement Accuracy and Statistical Variation.
6.1 signal flow graph representation of linear constant- coefficient difference equations 6.2 basic structures for IIR system direct forms
PH4705/ET4305: A/D: Analogue to Digital Conversion
Kathy Grimes. Signals Electrical Mechanical Acoustic Most real-world signals are Analog – they vary continuously over time Many Limitations with Analog.
Normalised Least Mean-Square Adaptive Filtering
DSP-CIS Chapter-6: Filter Implementation Marc Moonen Dept. E.E./ESAT, KU Leuven
Mark Allie comp.dsp Signal to Noise and Numeric Range issues for Direct Form I & II IIR Filters on Modern Analog Devices and TI Digital Signal Processors.
Computer Arithmetic Nizamettin AYDIN
Fixed-Point Arithmetics: Part II
FINITE word length effect in fixed point processing The Digital Signal Processors have finite width of the data bus. The word-length after mathematical.
ECE 4710: Lecture #9 1 PCM Noise  Decoded PCM signal at Rx output is analog signal corrupted by “noise”  Many sources of noise:  Quantizing noise »Four.
Random-Number Generation Andy Wang CIS Computer Systems Performance Analysis.
DISP 2003 Lecture 6 – Part 2 Digital Filters 4 Coefficient quantization Zero input limit cycle How about using float? Philippe Baudrenghien, AB-RF.
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.
ESPL 1 Wordlength Optimization with Complexity-and-Distortion Measure and Its Application to Broadband Wireless Demodulator Design Kyungtae Han and Brian.
§ 4.1 Instrumentation and Measurement Systems § 4.2 Dynamic Measurement and Calibration § 4.3 Data Preparation and Analysis § 4.4 Practical Considerations.
P. 1 DSP-II Digital Signal Processing II Lecture 4: Filter Implementation Marc Moonen Dept. E.E./ESAT, K.U.Leuven homes.kuleuven.be/sista/~moonen/
Fixed & Floating Number Format Dr. Hugh Blanton ENTC 4337/5337.
1 11. Finite-Precision Effects and Pipeline Adaptive Filters  In practice, an adaptive filter is usually implemented digitally. Thus, finite-precision.
Professor A G Constantinides 1 Finite Wordlength Effects Finite register lengths and A/D converters cause errors in:- (i) Input quantisation. (ii)Coefficient.
Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria
P. 1 DSP-II Digital Signal Processing II Lecture 4: Filter Implementation Marc Moonen Dept. E.E./ESAT, K.U.Leuven homes.kuleuven.be/sista/~moonen/
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.
DSP-CIS Chapter-6: Filter Implementation Marc Moonen Dept. E.E./ESAT, KU Leuven
DSP-CIS Part-II / Chapter-6 : Filter Implementation Marc Moonen Dept. E.E./ESAT-STADIUS, KU Leuven
بسم الله الرحمن الرحيم Digital Signal Processing Lecture 2 Analog to Digital Conversion University of Khartoum Department of Electrical and Electronic.
Digital Signal Processor HANYANG UNIVERSITY 학기 Digital Signal Processor 조 성 호 교수님 담당조교 : 임대현
Application of digital filter in engineering
Cosc 2150: Computer Organization Chapter 9, Part 3 Floating point numbers.
FINITE word length effect in fixed point processing
Unit IV Finite Word Length Effects
MECH 373 Instrumentation and Measurements
Fundamentals of Electric Circuits Chapter 5
The Johns Hopkins University
Real time DSP Professors: Eng. Diego Barral Mr. Jerónimo Acencio
Lattice Struture.
EEE4176 Applications of Digital Signal Processing
FINITE word length effect in fixed point processing
Embedded Systems Design
Sampling rate conversion by a rational factor
Quick Review of LTI Systems
لجنة الهندسة الكهربائية
Quantization in Implementing Systems
Chapter 6 Discrete-Time System
Finite Wordlength Effects
DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 4
Conceptual Representation of A/D Conversion
Data Wordlength Reduction for Low-Power Signal Processing Software
DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 4
Fixed-point Analysis of Digital Filters
DSP-CIS Chapter 5: Filter Implementation
Presentation transcript:

FINITE WORD LENGTH EFFECTS

Fixed-Point Design Digital signal processing Algorithms Often developed in floating point Later mapped into fixed point for digital hardware realization Fixed-point digital hardware Lower area Lower power Lower per unit production cost Design of most digital systems follows this process. When you have an idea, you simulate this idea in algorithm level and then with floating-point algorithm and quantize the wordlenths. In a complex system, 50% of the design time is typically spent on the When the overflow occurs and increases integer bit some time decrease fractional bits. For the goal of this research is deducing the design time and find optimum wordlength automatically.

Fixed-Point Design Float-to-fixed point conversion required to target ASIC and fixed-point digital signal processor core FPGA and fixed-point microprocessor core Optimum Word length have to be chosen to Minimize quantization effects Avoid overflow

Optimum Wordlength Longer wordlength Shorter wordlength May improve application performance Increases hardware cost Shorter wordlength May increase quantization errors and overflows Reduces hardware cost Optimum wordlength Maximize application performance or minimize quantization error Minimize hardware cost Optimum wordlength Distortion d(w) [1/performance] Cost c(w) Optimum wordlength can be select from the graph. Large wordlength reduces error. However, it increase costs. On the other hand, short wordlength decreases costs but it increase error. Wordlength (w)

Quantization modes Rounding Truncation

Quantization Noise Quantization mechanisms: Rounding Truncation Magnitude Truncation input probability error output

Quantization Noise Statistical analysis based on the following assumptions : - each quantization error is random, with uniform probability distribution function - quantization errors at the output of a given multiplier are uncorrelated/independent (=white noise assumption) - quantization errors at the outputs of different multipliers are uncorrelated/independent (=independent sources assumption) One noise source is inserted for each multiplier. Since the filter is linear filter the output noise generated by each noise source is added to the output signal.

Arithmetic Operations Addition: if, two B-bit numbers are added, the result has (B+1) bits. Multiplication: if a B1-bit number is multiplied by a B2-bit number, the result has (B1+B2-1) bits. For instance, two B-bit numbers yield a (2B-1)-bit product Typically (especially so in an IIR (feedback) filter), the result of an addition/multiplication has to be represented again as a B’-bit number (e.g. B’=B). Hence have to get rid of either most significant bits or least significant bits…

Arithmetic Operations Option-1: Most significant bits If the result is known to be upper bounded so that the most significant bit(s) is(are) always redundant, it(they) can be dropped, without loss of accuracy. This implies we have to monitor potential overflow, and introduce scaling strategy to avoid overflow. Option-2 : Least significant bits Rounding/truncation/… to B’ bits introduces quantization noise. The effect of quantization noise is usually analyzed in a statistical manner. Quantization, however, is a deterministic non-linear effect, which may give rise to limit cycle oscillations.

Finite Wordlength Effects Input quantization error Output quantization error Coefficient quantization error Product quantization error Limit cycle Oscillation Zero input Overflow

Finite Wordlength Effects   Quantization Q Output Input

Finite Wordlength Effects The pdf for e using rounding Noise power or

Coefficient Quantization Coefficient quantization effect on pole locations Tightly spaced poles (e.g. for narrow band filters) imply high sensitivity of pole locations to coefficient quantization Preference for low-order systems (parallel/cascade)

Limit Cycles Statistical analysis is simple/convenient, but quantization is truly a non-linear effect, and should be analyzed as a deterministic process. Oscillations in the absence of input (u[k]=0) are called `zero-input limit cycle oscillations’.

Limit Cycles Example: y[k] = -0.625.y[k-1]+u[k] 4-bit rounding arithmetic input u[k]=0, y[0]=3/8 output y[k] = 3/8, -1/4, 1/8, -1/8, 1/8, -1/8, 1/8, -1/8, 1/8,.. 4-bit truncation (instead of rounding) output y[k] = 3/8, -1/4, 1/8, 0, 0, 0,.. (no limit cycle!) Example: y[k] = 0.625.y[k-1]+u[k] 4-bit rounding output y[k] = 3/8, 1/4, 1/8, 1/8, 1/8, 1/8,.. 4-bit truncation input u[k]=0, y[0]=-3/8 output y[k] = -3/8, -1/4, -1/8, -1/8, -1/8, -1/8,..

Limit Cycles Limit cycle oscillations are clearly unwanted (e.g. may be audible in speech/audio applications) Limit cycle oscillations can only appear if the filter has feedback. Hence FIR filters cannot have limit cycle oscillations. Mathematical analysis is very difficult. Truncation often helps to avoid limit cycles (e.g. magnitude truncation, where absolute value of quantizer output is never larger than absolute value of quantizer input (`passive quantizer’)).

Scaling Whenever a signal (output or internal) exceeds the maximum value, overflow occurs. Digital overflow may lead (e.g. in 2’s-complement arithmetic) to polarity reversal (instead of saturation such as in analog circuits), hence may be very harmful. Avoid overflow through proper signal scaling Scaled transfer function may be c*H(z) instead of H(z)