Docsity

Midterm 1 Solutions: Adder Table, Boolean Proofs, Karnaugh Maps, Universal Gates, Slides of Digital Systems Design

Partial preview of the text

Download Midterm 1 Solutions: Adder Table, Boolean Proofs, Karnaugh Maps, Universal Gates and more Slides Digital Systems Design in PDF only on Docsity!

Midterm 1 Solutions

I. Problem Formulation I. A full adder inputs three bits (

a, b, c

) and outputs the sum and the carry bits in

( s, cout

), Write the

truth table

of the full adder and the corresponding

sum-of-

products

canonical expressions of the two outputs. b a cin 000 001 010 011 100 101 110 111

csout 00 10 10 01 10 01 01 11

Truth table:

SoP expressions:^ s = a’b’c

+ a’bc’in

+ ab’c’in

+ abcin

in

c= abc’out^

+ ab’cin

+ a’bcin

+ abcin

in

= ab + ac

+ bcin

in

III. Laws and Theorems ofBoolean Algebra III. Prove using Boolean algebra that (

a’+ b)(a’+ c’)(b’+ c’) = (a’+ b)(b’+ c’). consensus

( a’+ b)(a’+ c’)(b’+ c’)= ( a’+ b)(b’+ c’)(a’+ c’)= (a’+ b)(b’+ c’)

commutativity

Solution 1: use consensusSolution 2: use combining & covering

combiningcommutativity & associativitycovering

( a’+ b)(a’+ c’)(b’+ c’)= ( a’+ b)(a’+ c’+ b)(a’+ c’+ b’)(b’+ c’)= ((a’+ b)(a’+ b + c’))((b’+ c’+ a’)(b’+c’))= (a’+b)(b’+c’)

IV. Karnaugh Map IV. Use Karnaugh map to simplify function

f(a,b,c) =

∑ m(1,4,7)+

∑^ d(3,6)

List all possible minimal two-level

sum-of-products

expressions. Show the

Boolean expressions. No need for the logic diagram.

All possible min SoP expressions:

f = a’c + ac’ + bc

0 1

01

11

10

bc^00 F a

x 1

0 x^

0 1

01

11

10

ab^00 F c

0 x

x 1

There are two forms of maps^ PIs:

a’c, bc, ac’, ab EPIs:^ a’c, ac’

and^

f = a’c + ac’ + ab

VI. Universal Gates VI. Check if the set is universal and explain. Assume constants 0 and 1are available as inputs.i. {OR, NOT}

OR, NOT already exist, only need to construct AND ii. {NOR}

(x’ + y’)’ = xy (x + x)’ = x’((x + y)’)’ = x + y(x’ + y’)’ = xy

VI. Universal Gates VI. Check if the set is universal and explain. Assume constants 0 and 1are available as inputs.iii. {f(x,y)} where f(x,y) = x' + y

x^ f(x,y)y 0

x^ f(x,y)y 0

xf(x,y)y x^ f(x,y)y 0

x^ f(x,y)y

x^ f(x,y)y 0

f(x, 0) = x’ + 0

= x’ f(f(x, 0),y) = f(x’,y)

= (x’)’ + y= x + y

f(f(x, f(y, 0)),0) = f(f(x,y’),0)

= f(x’ + y’,0) = f((xy)’,0)= xy + 0 = xy

VII. Shannon’s Expansion VII. Describe the following function in minimal

sum-of-products

form

f(x,y) = xy'

(x'+y)

x'y

y'

Expansion for variable x:f(x, y) = x

^ f(1, y) + x’

^ f(0, y)

f(1, y) = y’

y^

0 y’ = 1

y’ = 1 y’ = y

f(0, y) = 0

y^ y’ = 1

y^

y’ = y’

y’ = 0

f(x, y) = x

^ y + x’

^ 0 = xy

Expansion for variable y:f(x, y) = y

^ f(x, 1) + y’

^ f(x, 0)

f(x, 1) = 0

x’^ 0 = 1

x’^

0 = x^

0 = x

f(x, 0) = x

x’^

f(x, y) = x

^ y + 0

^ y’ = xy