Assignment No. 6 Arithmetic Functions & Circuits

 

1.    Obtain the 1s and 2s complements of the following unsigned binary numbers:

a.    10011100

b.    10011101

c.    10101000

d.    00000000

e.    10000000

 

2.    Perform the indicated subtraction with the following unsigned binary numbers by taking the 2s complement of the subtrahend:

a.    11010 10001

b.    11110 1110

c.    1111110 1111110

d.    101001 101

 

3.    Perform the arithmetic operations (+36) + (-24) and (-35) (-24) in binary using signed 2s complement representation for negative numbers.

4.    The following binary numbers have a sign in the leftmost position and, if negative, are in 2s complement form. Perform the indicated arithmetic operations.

a.    100111 + 111001

b.    001011 + 100110

c.    110001 010010

d.    101110 110111



5.    The adder-subtractor circuit of Figure 4-7 (4e) or Figure 3-45 (5e) has the following values for input select S and data inputs A and B:


 

S

A

B

(a)

0

0111

0111

(b)

1

0100

0111

(c)

1

1101

1010

(d)

0

0111

1010

(e)

1

0001

1000


Determine, in each case, the values of the outputs S3, S2, S1, S0, and C4.