02.10.2019 Views

UploadFile_6417

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

298 Chapter 6 IMPLEMENTATION OF DISCRETE-TIME FILTERS<br />

your function on the following numbers. In each case the numbers to be considered are<br />

both positive and negative. Also, in each case select the appropriate number of bits B.<br />

(a) x = ±0.5625 (b) x = ±0.40625 (c) x = ±0.953125<br />

(d) x = ±0.1328125 (f) x = ±0.7314453125<br />

Compare your representations with those in Problem P6.26, part 1.<br />

2. Develop a MATLAB function x = tc2sm(y, B) that converts the B-bit two’s-complement<br />

format decimal equivalent number y into the sign-magnitude format fraction x. Verify<br />

your function on the following fractional binary representations:<br />

(a) y = 110110 (b) y = 0.011001 (c) y = 100110011<br />

(d) y = 111101110<br />

(e) y = 000010001<br />

Compare your representations with those in Problem P6.26, part 2.<br />

P6.28 Determine the 10-bit sign-magnitude, one’s-complement, and two’s-complement<br />

representation of the following decimal numbers:<br />

(a) 0.12345 (b) −0.56789 (c) 0.38452386 (d) −0.762349 (e) −0.90625<br />

P6.29 Consider a 32-bit floating-point number representation with a 6-bit exponent and a 25-bit<br />

mantissa.<br />

1. Determine the value of the smallest number that can be represented.<br />

2. Determine the value of the largest number that can be represented.<br />

3. Determine the dynamic range of this floating-point representation and compare it with<br />

the dynamic range of a 32-bit fixed-point signed integer representation.<br />

P6.30 Show that the magnitudes of floating-point numbers in a 32-bit IEEE standard range from<br />

1.18 × 10 −38 to 3.4 × 10 38 .<br />

P6.31 Compute and plot the truncation error characteristics when B =4for the sign-magnitude,<br />

one’s-complement, and two’s-complement formats.<br />

P6.32 Consider the 3rd-order elliptic lowpass filter:<br />

H(z) = 0.1214 ( 1 − 1.4211z −1 + z −2)( 1+z −1)<br />

(1 − 1.4928z −1 +0.8612z −2 )(1− 0.6183z −1 )<br />

1. If the filter is realized using a direct-form structure, determine its pole sensitivity.<br />

2. If the filter is realized using a cascade-form structure, determine its pole sensitivity.<br />

P6.33 Consider the filter described by the difference equation<br />

y(n) = 1 √<br />

2<br />

y(n − 1) − x(n)+ √ 2x(n − 1) (6.84)<br />

1. Show that this filter is an all-pass filter (i.e., |H(e jω )|) isaconstant over the entire<br />

frequency range −π ≤ ω ≤ π. Verify your answer by plotting the magnitude response<br />

|H(e jω )| over the normalized frequency range 0 ≤ ω/π ≤ 1. Use subplot(3,1,1).<br />

2. Round the coefficients of the difference equation in (6.84) to 3 decimals. Is the filter still<br />

all-pass? Verify your answer by plotting the resulting magnitude response, |Ĥ1(e jω )|,<br />

over the normalized frequency range 0 ≤ ω/π ≤ 1. Use subplot(3,1,2).<br />

3. Round the coefficients of the difference equation in (6.84) to 2 decimals. Is the filter still<br />

all-pass? Verify your answer by plotting the resulting magnitude response, |Ĥ2(e jω )|,<br />

over the normalized frequency range 0 ≤ ω/π ≤ 1. Use subplot(3,1,3).<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!