+ All Categories
Home > Documents > Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the...

Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the...

Date post: 25-Mar-2018
Category:
Upload: dohanh
View: 248 times
Download: 2 times
Share this document with a friend
19
COE 211 LAB 2 By: Eng. Ohoud Nafea
Transcript
Page 1: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

COE 211

LAB 2 By:Eng. Ohoud Nafea

Page 2: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

Postulate & Theorems of Boolean Algebra

Page 3: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

Exercises❖ Try out the following exercises:

❖ Simplify the following Boolean expressions to a minimum number of literals:

Page 4: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

Exercise (2.2) ❖ Simplify the following Boolean expressions to a minimum

number of literals:

❖ (a) xy + xy’

❖ xy + xy' = x(y + y') = x ❖

(f) (x+y+z’)(x'+y'+z)=

❖ xx'+xy'+xz+x'y+yy'+yz+x'z'+y'z'+zz'=

= xy' + xz + x'y + yz + x'z' + y'z' = x+y + (x+z)' + (y+z)'

x xor y= x'y+xy' (x xor y)'= xy+x'y'

Page 5: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

Exercise (2.4)

❖ Reduce the following Boolean expressions to the indicated number of literals:

❖ (a) A'C' + ABC + AC' = (to three literals)

❖ C' + ABC = (C + C')(C' + AB) = AB + C’

Page 6: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

Exercise (2.5)❖ Draw logic diagrams of the circuits that implement the

original and simplified expressions in Problem 2.2.

❖ (a)

Page 7: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

Exercise (2.5)

❖ (f)

Page 8: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

Exercise (2.8)❖ Find the complement of F = wx + yz; then show that FF' = 0 and F + F'= 1.

❖ F' = (wx + yz)'

= (wx)'(yz)'

= (w' + x')(y' + z')

FF' = wx(w' + x')(y' + z') + yz(w' + x')(y' + z') = 0

F + F' = wx + yz + (wx + yz)' = A + A' = 1 with A = wx + yz

Page 9: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

Minterms and maxterms❖ A minterm is a Boolean expression resulting in 1 for the

output of a single cell, and 0s for all other cells in a Karnaugh map, or truth table.

❖ Each row of a truth table can be associated with a minterm, which is a product (AND) of all variables in the function, in direct or complemented form. A minterm has the property that it is equal to 1 on exactly one row of the truth table.

❖ Here is the three-variable truth table and the corresponding minterms:

Page 10: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

Minterms and Maxterms

Page 11: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

Minterms and Maxterms❖ Minterms provide a way to represent any boolean function algebraically, once its truth

table is specified.

❖ Example: suppose a function is defined by the following truth table:

❖ Since on rows 1, 2, 4, and 7, we obtain

❖ A compact notation is to write only the numbers of the

minterms included in , using the Greek letter capital

sigma to indicate a sum:

Page 12: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

Exercise (2.10)❖ Given the Boolean functions F1 and F2 , show that

❖ (a)  The Boolean function E = F1 + F2 contains the sum of the minterms of F1 and F2.

❖ (b)  The Boolean function G = F1F2 contains only the minterms that are common to F1 and F2.

Hint: start by identifying a general expression for minterm i (mi) of F1, F2, E, and G.

Page 13: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

Exercise (2.12)

❖ We can perform logical operations on strings of bits by considering each pair of correspond- ing bits separately (called bitwise operation). Given two eight-bit strings A = 10110001 and B = 10101100, evaluate the eight-bit result after the following logical operations:

❖ (a)* AND (b) OR (c)* XOR (d)* NOT A (e) NOT B

Page 14: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

Exercise (2.13)❖ Draw logic diagrams to implement the following

Boolean expressions:

❖ (a)  y = [(u + x') (y''+ z)]

Page 15: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

Exercise (2.15)❖ Simplify the following Boolean functions T1 and T2 to a

minimum number of literals:

Page 16: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

T1 = A’B’C’ + A’B’C + A’BC’ = A’B’(C’ +C)1 + A’BC’ = A’B’ + A’BC’ = (A’B’ + A’B) (A’B’ + C’) = A’(B’+B)1(A’B’ + C’) = A’(A’B’ + C’) = (A’A’B’ + A’C’) = (A’B’ + A’C’) = A’(B’ + C’)

Page 17: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

T2 =(A+B+C)(A+B+C’)(A+B’+C)

= (A + AB + AC’ + AB + B + BC’ + AC + BC + CC’)(A + B’ + C)

= (A(1+B+C’+C)1 + B(1+C’+C)1 + CC’0)(A + B’ + C)

= (A + B)(A + B’ + C) = A + AB’ + AC + AB + BB’0 + BC = A(1+B’+C+B) + BC = A + BC

Page 18: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

Exercise 2.19❖ Express the following function as a sum of minterms

and as a product of maxterms: F(A,B,C,D) = B'D + A'D + BD

Page 19: Lab 2cdn-cms.f-static.com/uploads/93138/normal_57fa7268c… ·  · 2016-10-09Simplify the following Boolean expressions to a minimum number of literals: Exercise (2.2) Simplify the

❖ � First look at the number of literals... we have four different literals A,B,C,D

❖ � In the first term B’D, we have A,C are missing

❖ � We get them back as (A+A’)B’(C+C’)D, that B’D is equivalent to AB’CD + A’B’CD + AB’C’D + A’B’C’D and so on...

❖ F = (A+A’)B’(C+C’)D + A’(B+B’)(C+C’)D + (A+A’)B(C+C’)D

•= AB’CD + A’B’CD + AB’C’D + A’B’C’D + A’BCD + A’B’CD + A’BC’D + A’B’C’D + ABCD + A’BCD + ABC’D + A’BC’D (omit repeated terms)

= AB’CD + A’B’CD + AB’C’D + A’B’C’D + A’BCD + A’BC’D + ABCD + ABC’D = ∑(11, 3, 9, 1, 7, 5, 15, 13) = ∑(1, 3, 5, 7, 9, 11,13, 15)

= П (0, 2, 4, 6, 8, 10, 12, 14)


Recommended