HW5-sol - CSE 341: Computer Organization Spring 2011...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 CSE 341: Computer Organization Spring 2011 Solution to HW #5 [Note: At the end, I have included the procedure to convert a decimal fraction to binary.]
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Notes: 1) In Problem a) above, you may have used the number as -1278 X 10^3. Always, convert the given number to binary, normalize and round it and test for overflows/underflows before going to the next step. 2) In Problem a) above, the sum is incorrect. When you add the two numbers, the G bit for the sum is 0 and R bit is 1. So, you round it down. The final answer is correct.
Background image of page 2
3 Help with converting fractional decimal number to binary representation. This material is taken from: http://cs.furman.edu/digitaldomain/more/ch6/dec_frac_to_bin.htm . The source is being acknowledged for making this available to all. Converting Decimal Fractions to Binary In the text proper, we saw how to convert the decimal number 14.75 to a binary representation. In this instance, we "eyeballed" the fractional part of the binary expansion; 3/4 is obviously 1/2 + 1/4. While this worked for this particular example, we'll need a more systematic approach for less obvious cases. In fact, there is a simple, step-by-step method for computing the binary expansion on the right-hand side of the point. We will illustrate the method by converting the decimal value .625 to a binary representation. . Step 1
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

HW5-sol - CSE 341: Computer Organization Spring 2011...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online