13.07.2015 Views

Digital Electronics: Principles, Devices and Applications

Digital Electronics: Principles, Devices and Applications

Digital Electronics: Principles, Devices and Applications

SHOW MORE
SHOW LESS

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

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

16 <strong>Digital</strong> <strong>Electronics</strong>have been described. These include decimal formats with a seven-, 16- <strong>and</strong> 34-digit mantissa, whichmay be normalized or denormalized. In order to achieve maximum range (decided by the number ofexponent bits) <strong>and</strong> precision (decided by the number of mantissa bits), the formats merge part of theexponent <strong>and</strong> mantissa into a combination field <strong>and</strong> compress the remainder of the mantissa usingdensely packed decimal encoding. Detailed description of the revision, however, is beyond the scopeof this book.IEEE-854 St<strong>and</strong>ardThe main objective of the IEEE-854 st<strong>and</strong>ard was to define a st<strong>and</strong>ard for floating-point arithmeticwithout the radix <strong>and</strong> word length dependencies of the better-known IEEE-754 st<strong>and</strong>ard. That is whyIEEE-854 is called the IEEE st<strong>and</strong>ard for radix-independent floating-point arithmetic. Although thest<strong>and</strong>ard specifies only the binary <strong>and</strong> decimal floating-point arithmetic, it provides sufficient guidelinesfor those contemplating the implementation of the floating point using any other radix value suchas 16 of the hexadecimal number system. This st<strong>and</strong>ard, too, specifies four formats including single,single-extended, double <strong>and</strong> double-extended precision formats.Example 1.11Determine the floating-point representation of −142 10 using the IEEE single-precision format.Solution• As a first step, we will determine the binary equivalent of (142) 10 . Following the procedure outlinedin an earlier part of the chapter, the binary equivalent can be written as (142) 10 = (10001110) 2 .• (10001110) 2 = 1.000 1110 × 2 7 = 1.0001110e + 0111.• The mantissa = 0001110 00000000 00000000.• The exponent = 00000111.• The biased exponent = 00000111 + 01111111 = 10000110.• The sign of the mantissa = 1.• Therefore, −142 10 = 11000011 00001110 00000000 00000000.Example 1.12Determine the equivalent decimal numbers for the following floating-point numbers:(a) 00111111 01000000 00000000 00000000 (IEEE-754 single-precision format);(b) 11000000 00101001 01100 45 0s (IEEE-754 double-precision format).Solution(a) From an examination of the given number:The sign of the mantissa is positive, as indicated by the ‘0’ bit in the designated position.The biased exponent = 01111110.The unbiased exponent = 01111110 − 01111111 = 11111111.It is clear from the eight bits of unbiased exponent that the exponent is negative, as the 2’scomplement representation of a number gives ‘1’ in place of MSB.The magnitude of the exponent is given by the 2’s complement of (11111111) 2 , which is(00000001) 2 = 1.

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

Saved successfully!

Ooh no, something went wrong!