Access over 20 million homework & study documents
search

5 Given a (very) tiny computer that has a word size of 6 bits, what

Content type

User Generated

Rating

Showing Page:
1/3
5. Given a (very) tiny computer that has a word size of 6
bits, what are the smallest negative numbers and the
largest positive numbers that this computer can represent
in each of the following representations?
a. One\'s complement
b. Two\'s complement
6. Perform the following binary multiplications, assuming
unsigned integers:
a. 1100 × 101 b. 10101 × 111 c. 11010 × 1100
Ans. a. 111100 b. 10010011 c. 100111000
7. If the floating-point number representation on a certain
system has a sign bit, a 3-bit exponent and a 4-bit
significand:
a. What is the largest positive and the smallest positive
number that can be stored on this system if the storage is
normalized? (Assume no bits are implied, there is no
biasing, exponents use two\'s complement notation, and
exponents of all zeros and all ones are allowed.)
b. What bias should be used in the exponent if we prefer
all exponents to be non-negative? Why would you choose
this bias?
8. Let a = 1.0 × 29, b = 1.0 × 29 and c = 1.0 × 21. Using
the floating-point model described in the text (the
representation uses a 14-bit format, 5 bits for the exponent
with a bias of 16, a normalized mantissa of 8 bits, and a
single sign bit for the number), perform the following
calculations, paying close attention to the order of
operations. What can you say about the algebraic
properties of floating-point arithmetic in our finite model?
Do you think this algebraic anomaly holds under
multiplication as well as addition?
b + (a + c) =
(b + a) + c =

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/3
Solution
here (x) y = x subscript y
5)
a. Largest Positive: (011111) 2 (31) Smallest Negative:
(100000) 2 (-31)
b. Largest Positive: (011111) 2 (31) Smallest Negative:
(100000) 2 (-32)
6)
a. 111100
b. 10010011
c. 100111000
7)
a. Largest Positive: 0.1111 2 x 2^3 = (111.1) 2 = 7.5
Smallest Positive: (0.1) 2 x 2^-4 = (.00001) 2 = 1/32 =
0.03125
8)
b + (a + c) = b + [1.0 x 2^9 + 1.0 x 2^1 ]
= b + [1.0 x 2^9 + .000000001 x 2^9 )
=b + 1.000000001 x 2^9
=b+ 0.1000000001 x 2^10 (but we can only have 8 bits
in the mantissa)

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/3

Sign up to view the full document!

lock_open Sign Up

Unformatted Attachment Preview

5. Given a (very) tiny computer that has a word size of 6 bits, what are the smallest negative numbers and the largest positive numbers that this computer can represent in each of the following representations? a. One\'s complement b. Two\'s complement 6. Perform the following binary multiplications, assuming unsigned integers: a. 1100 × 101 b. 10101 × 111 c. 11010 × 1100 Ans. a. 111100 b. 10010011 c. 100111000 7. If the floating-point number representation on a certain system has a sign bit, a 3-bit exponent and a 4-bit significand: a. What is the largest positive and the smallest positive number that can be stored on this system if the storage is normalized? (Assume no bits are implied, there is no biasing, exponents use two\'s complement notation, and exponents of all zeros and all ones are allowed.) b. What bias should be used in the exponent if we prefer all exponents to be non-n ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous
Great! 10/10 would recommend using Studypool to help you study.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4