Docsity

Binary Numbers - Computer Organization - Homework, Exercises of Computer Architecture and Organization

Toggle sidebar
bg1
1. Sum the following binary (base 2) numbers
101101
2
+110111
2
10011
2
+10110
2
2. Complete the Half-Adder truth table and circuit diagram.
11
01
10
00
carry-out
c
1
sum
s
0
y
0
x
0
3. Complete the Full-Adder truth table for the sum (s
i
) and carry-out (c
i+1
) functions.
111
011
101
001
110
010
100
000
carry-out
c
i+1
sum
s
i
carry-in
c
i
y
i
x
i
4. Use k-maps to minimize the sum (s
i
) and carry-out (c
i+1
) functions of the Full-Adder:
5. For the one-bit Full-Adder, how many gate delays are needed before the carry-out (c
i+1
) wire is correct?
6. A 32-bit, ripple-adder is made up of a collection of single-bit Full-Adders connected together as shown below
:
x
0
1 31
0
1 31 0
1 31
Sum
SumSum
0
C
C
C
C
C
0
1
2
31
32
...
y x y x y
How many gate delays are needed before c
32
is correct?
Computer Org. Lecture 6 Name:________________
Lecture 6 Page 1
s ,sum
x
y
c
0
0 0
1
Docsity.com
pf3
pf4

Partial preview of the text

Download Binary Numbers - Computer Organization - Homework and more Exercises Computer Architecture and Organization in PDF only on Docsity!

  1. Sum the following binary (base 2) numbers
  1. Complete the Half-Adder truth table and circuit diagram.

carry-out c 1

sum x 0 y 0 s 0

  1. Complete the Full-Adder truth table for the sum (si) and carry-out (ci+1) functions.

carry-out ci+

sum si

carry-in xi yi ci

  1. Use k-maps to minimize the sum (si) and carry-out (ci+1) functions of the Full-Adder:
  2. For the one-bit Full-Adder, how many gate delays are needed before the carry-out (ci+1) wire is correct?
  3. A 32-bit, ripple-adder is made up of a collection of single-bit Full-Adders connected together as shown below

x

(^3110)

(^3131 )

Sum Sum Sum

C 32 C 31 C 2 C 1 C 0

y x y x y

How many gate delays are needed before c 32 is correct?

Lecture 6 Page 1

s ,sum

x y

c

0

0 0

1

  1. To speed up the calculation of the carry-out (Ci+1) signals, consider constructing a 32-bit adder using two-bit adders as shown in:

Sum 31 Sum 30 Sumi Sumi-1 Sum 1 Sum 0

C 32 C 30 ...^ Ci+1 Ci-1 ... C 2 C 0 0

x 31 y 31 x 30 y 30 xi yi x i-1yi-1 x 1 y 1 x 0 y 0

If ci+1 is calculated directly from the inputs as c (^) i+1 = xi yi + xi xi-1 yi-1 + xi xi-1 ci-1 + xi yi-1 ci-

  • yi xi-1 yi-1 + yi xi-1 ci-1 + yi yi-1 ci-1, then how many gate delays would be needed to calculate the ci+1 signal in a two-bit adder?
  1. What would be the total number of gate delays in a 32-bit adder before the c 32 signal is generated correctly if two-bit adders were used?
  2. What would be the total number of gate delays in a 32-bit adder before the c 32 signal is generated correctly if three-bit adders were used (10 three-bit adders and a 2-bit adder)?
  3. What would be the total number of gate delays in a 32-bit adder before the c 32 signal is generated correctly if four-bit adders were used?

Lecture 6 Page 2

  1. A multiplexer (MUX) allows one of 2n^ inputs to be switched to a single output based on an n-bit binary number (range of values 0 10 to 2n-1) on the control lines.

Consider a 4-to-1 multiplexer:

c 1 c

c (^1)

0

c (^0)

I 0 I

I 0

1 I 2 I^1 I (^2)

2

I 3

I 3

Output Output

a) Connect input of AND-gates and decide on how to merge AND-gate outputs into a single Output.

b) Draw a 8-to-1multiplexer circuit below:

Lecture 6 Page 4