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.

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

However, the most widely used format for the mantissa is the signmagnitude<br />

one.<br />

□ EXAMPLE 6.17 Consider a 32-bit floating-point word with the following arrangement:<br />

ˆx = ± xx ···x<br />

} {{ }<br />

8-bit E<br />

Determine the decimal equivalent of<br />

<br />

1x ···x<br />

} {{ }<br />

23-bit M<br />

01000001111000000000000000000000<br />

Solution<br />

Since the exponent is 8-bit, it is expressed in excess-2 7 or in excess-128 format.<br />

Then the bit pattern can be partitioned into<br />

ˆx =<br />

Sign<br />

↓<br />

0 10000011<br />

} {{ }<br />

E=131<br />

11000000000000000000000<br />

} {{ }<br />

M=2 −1 +2 −2<br />

The sign bit is 0, which means that the number is positive. The exponent code is<br />

131, which means that its decimal value is 131 − 128 = 3. Thus, the bit pattern<br />

represents the decimal number ˆx =+ ( 2 −1 +2 −2) (2 3 )=2 2 +2 1 =6. □<br />

□ EXAMPLE 6.18 Let ˆx = −0.1875. Represent ˆx using the format given in (6.42), in which B = 11,<br />

L =4(for a total of 16 bits), and sign-magnitude format is used for the mantissa.<br />

Solution<br />

We can write<br />

ˆx = −0.1875 = −0.75 × 2 −2<br />

Hence the exponent is −2, the mantissa is 0.75, and the sign is negative. The<br />

4-bit exponent, in excess-8 format, is expressed as 8 − 2=6orwith bit pattern<br />

0110. The mantissa is expressed as 11000000000. Since ˆx is negative, the bit<br />

pattern is<br />

ˆx ≡ 1011011000000000<br />

The advantages of the floating-point representation are that it has<br />

a large dynamic range and that its resolution, defined as the interval<br />

between two consecutive representable levels, is proportional to the magnitude.<br />

The disadvantages include no representation for the number 0 and<br />

the fact that the arithmetic operations are more complicated than their<br />

fixed-point representations.<br />

□<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!