CS251 : CS251-PPT#5-W13.pdf

50 views63 pages
21 Dec 2014
Course
Professor

Document Summary

[with material from computer organization and design by patterson and hennessy, and digital design and. Computer architecture by harris and harris, both published by morgan kaufmann] Floating-point: binary point floats to the right of the most significant 1. 6. 75 using 4 integer bits and 4 fraction bits: The number of integer and fraction bits must be agreed upon beforehand. Represent 7. 510 using 4 integer bits and 4 fraction bits: 0. 84332 2-1 so place 1 for 2-1 bit. Update 0 84332 0 5 = 0 34332. 0. 34332 2-2 so place 1 for 2-2 bit. 0 09332 < 2-3 so place 0 for 2-3 bit. 0. 09332 < 2 3 so place 0 for 2 3 bit. 0. 09332 2-4 so place 1 for 2-4 bit. The result is 0 1101 (0 8125 ) Represent -7. 510 using 4 integer and 4 fraction bits. Signed / magnitude: 1111. 1000 ( 22 21 20 2-1) Binary point floats to the right of the most significant 1.