02.10.2019 Views

UploadFile_6417

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Round-off Effects in FIR Digital Filters 581<br />

signals use<br />

1<br />

X max ≤<br />

max |H(e jω )|<br />

and wideband random signals use<br />

X max ≤<br />

1<br />

4σ x<br />

√∑ |h(n)|<br />

2 .<br />

Using (10.84) and assuming that x(n) isuniformly distributed over<br />

[−X max , +X max ], the input signal power is given by<br />

σ 2 x = X2 max<br />

3<br />

=<br />

1<br />

3( ∑ |h(n)|) 2 (10.85)<br />

Furthermore, assuming that x(n) isalso a white sequence, the output<br />

signal power is given by<br />

∑<br />

σy 2 = σx<br />

2 |h(n)| 2 = 1 ∑ |h(n)|<br />

2<br />

3 ( ∑ |h(n)|) 2 (10.86)<br />

Thus, the output SNR is<br />

SNR = σ2 y<br />

σ 2 q<br />

= 22(B+1)<br />

A<br />

[ ∑ ]<br />

|h(n)|<br />

2<br />

( ∑ |h(n)|) 2<br />

(10.87)<br />

where A = M for the model in Figure 10.26b or A =1for the model in<br />

Figure 10.26c. The corresponding SNR in dB is<br />

( ∑ )<br />

|h(n)|<br />

2<br />

SNR dB =6.02+6.02B +10log 10<br />

( ∑ |h(n)|) 2 − 10 log 10 A (10.88)<br />

10.3.2 ANALYSIS USING MATLAB<br />

This simulation in MATLAB can be done in parallel fashion since there<br />

is no feedback path for the multiplication quantization errors. Using the<br />

function Qfix function with ’round’ mode, we will compute the quantized<br />

multiplier output. In the case of M quantizers, assuming two’scomplement<br />

format, we will use the ’twosc’ mode for each quantizer.<br />

Only the final sum will be quantized and saturated. In the case of one<br />

quantizer, we need the ’satur’ mode. These simulation steps are detailed<br />

in the following example.<br />

□ EXAMPLE 10.13 Let a fourth-order (M =5)FIR filter be given by<br />

H(z) =0.1+0.2z −1 +0.4z −2 +0.2z −3 +0.1z −4 (10.89)<br />

which is implemented as a direct form with B = 12 fractional bit quantizers.<br />

Compute SNRs for models in Figure 10.26b and c and verify them using<br />

MATLAB simulations.<br />

Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).<br />

Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!