Docsity

Finite Precision Numerical Effects-Digital Signal Processing-Lecture Slides, Slides of Digital Signal Processing

Partial preview of the text

Download Finite Precision Numerical Effects-Digital Signal Processing-Lecture Slides and more Slides Digital Signal Processing in PDF only on Docsity!

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,

Quantization in Implementing Systems

  • Consider the following system
  • A more realistic model would be
  • In order to analyze it we would prefer

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

 N

k 1

k k

M

k 0

k k

1 a z

b z

Hz  

 N

k 1

k k

M

k 0

k k

1 ˆa z

bˆ z

Hˆ z

Quantization

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 

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

  (^)    

M

n 0

Hz hn z n

Hˆ ^ z hˆ nz H z H z

M

n 0

 n^     

   (^)    

 ^ M  

n 0

Hz hn z n

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

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

  a 1

1 az

b

H z 1 

^ 

 



2 B

n 0

2 B 2 n

n

2 ef

2 B 2 f 1 a

a 2 12

h n 2 12

M 1 N

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

y  n  ayn  1   x n a  1

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 a 1 =3/4=0.110b and a 2 =-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=

ˆy  n  x n Qa 1 ˆy n  1  Qa 2 yˆn  2 

ˆy  1   3 / 4  0. 110 b and ˆy 2    3 / 4  1. 010 b

0.100100b 0.100100b

ˆy 0 0. 110 b 0.110b 1. 010 b 1.010b  

yˆ ^0  0.101b0.101b1.010b-3/

ˆy  0 1.010b1.010b 0. 110  3 / 4