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

Create successful ePaper yourself

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

66 <strong>Digital</strong> <strong>Electronics</strong>quotient is given by the division of the two mantissas (i.e. dividend mantissa divided by divisormantissa) <strong>and</strong> the exponent of the quotient is given by subtraction of the two exponents (i.e. dividendexponent minus divisor exponent).IfthenN 1 = m 1 × 2 e1 <strong>and</strong> N 2 = m 2 × 2 e2N 1 × N 2 = m 1 × m 2 × 2 e1+e2<strong>and</strong>N 1 /N 2 = m 1 /m 2 × 2 e1−e2Again, post-normalization may be required after multiplication or division, as in the case of addition<strong>and</strong> subtraction operations.Example 3.12Add (a) (39) 10 <strong>and</strong> (19) 10 <strong>and</strong> (b) (1E) 16 <strong>and</strong> (F3) 16 using floating-point numbers. Verify the answersby performing equivalent decimal addition.Solution(a) (39) 10 = 100111 = 0.100111 × 2 6 .(19) 10 = 10011 = 0.10011 × 2 5 = 0.010011 × 2 6 .Therefore, (39) 10 + (19) 10 = 0.100111 × 2 6 + 0.010011 × 2 6= (0.100111 + 0.010011) × 2 6 = 0.111010 × 2 6= 111010 = (58) 10<strong>and</strong> hence is verified.(b) (1E 16 = (00011110) 2 = 0.00011110 × 2 8 .(F3) 16 = (11110011) 2 = 0.11110011 × 2 8 .(1E 16 + F3) 16 = (0.00011110 + 0.11110011) × 2 8 = 100010001= 000100010001= (111) 16 .Also, (1E 16 + (F3) 16 = (111) 16 <strong>and</strong> hence is proved.Example 3.13Subtract (17) 8 from (21) 8 using floating-point numbers <strong>and</strong> verify the answer.Solution• (21) 8 = (010001) 2 = 0.010001 × 2 6 .• (17) 8 = (001111) 2 = 0.001111 × 2 6 .• Therefore, (21) 8 − (17) 8 = (0.010001 − 0.001111) × 2 6= 0.000010 × 2 6 = 000010 = (02) 8 .• Also, (21) 8 − (17) 8 = (02) 8 <strong>and</strong> hence is verified.

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

Saved successfully!

Ooh no, something went wrong!