Professional Documents
Culture Documents
Comp Assignment 1
Comp Assignment 1
Comp Assignment 1
00pm
Question 1
Consider the truth table below and
w x y z F
0 0 0 0 1
0 0 0 1 0
0 0 1 0 1
0 0 1 1 0
0 1 0 0 0
0 1 0 1 1
0 1 1 0 1
0 1 1 1 1
1 0 0 0 1
1 0 0 1 0
1 0 1 0 1
1 0 1 1 0
1 1 0 0 0
1 1 0 1 0
1 1 1 0 0
1 1 1 1 0
Question 2
(a) The following circuit implements two three-input Boolean functions A and B:
Question 3
(a) Assume a 13-bit floating point format in which the most significant bit is the sign bit, the
next 5 bits represent the 5-bit biased exponent field, and the last 7 bits represent the
normalized significand with implied bit.
(i) Show how the computer would represent the numbers 110 and 0.125 using this
floating-point format.
(ii) Show how the computer would add the two floating-point numbers in part 3a(i).
What decimal value for the sum is the computer actually storing? Explain.
(iii) State the effect of changing the size of the exponent and significand fields in the
13-bit floating point format?
(b) Show each stage of Booth’s algorithm when used to multiply the 5-bit multiplicand,
10111 by the 5-bit multiplier, 11010.