Module 4b Boolean Simplify
Module 4b Boolean Simplify
FACULTY OF COMPUTING
Simplify using Rules of Boolean
Algebra
(Page: 104)
1 A+0=A
2 A+1=1
3 A 0=0
4 A 1=A
5 A+A=A
6 A+A=1
7 A A=A
8 A A=0
9 A=A
10 A + AB = A
11 A + AB = A + B
12 (A + B)(A + C) = A + BC
2
(Page: 104)
1 A+0=A
2 A+1=1
3 A 0=0
4 A 1=A
5 A+A=A
6 A+A=1
7 A A=A
8 A A=0
9 A=A
10 A + AB = A
11 A + AB = A + B
12 (A + B)(A + C) = A + BC
B(A+AC)
B(A + C)
3
Ex
tr
a
Original expression:
Simplified expression: BC + AB + BC
4
Forms of Boolean expressions
• Boolean expression can be converted into one of 2 forms.
A
Forms of Boolean
expressions
SOP POS
(Sum-of-Products) (Product-of-Sum)
5
• Standard form
– SOP ABC + ABC + ABC
– POS ( A + B + C )( A + B + C )( A + B + C )
– A standard SOP / POS form is when ALL the variables
appear in each product term / sum term
• Non standard
– SOP AB + C + ABC
– POS ( B + C )( A + C )( A + B)
6
Sum-of-Product (SOP)
A
B
B
C X = AB + BCD + AC
D
A
C
8
Exercise
(ii) (A + B)(B + C + D)
(iii) (A + B) + C
9
Exercise Solution
(i) AB + B(CD + EF) = AB + BCD + BEF
(ii) (A + B)(B + C + D)
= (A + B)B + (A + B)C + (A + B)D
= AB + BB + AC + BC + AD + BD
(iii) (A + B) + C
= AC + BC
10
Product-of-Sum (SOP)
11
• Implementation of the POS expression
(A + B)(B + C + D)(A + C)
A
B
B
C X = (A + B)(B + C + D)(A + C)
D
A
C
12
Standard for Boolean
Expressions (BE)
13
(a) Sum-of-Product (SOP)
Method 1
Rule 6: (A + Ā)=1
14
(a) Sum-of-Product (SOP)
Method 1
15
(a) Sum-of-Product (SOP)
Method 1
Rule 6: (A + Ā)=1
16
Exercise
Solution:
AC + BC = AC(B + B) + BC(A + A) (Apply rule 6)
17
(a) Sum-of-Product (SOP)
Method 2 – Binary Representation
18
From the standard SOP
it is easy to generate
the truth table.
1111
1001
0000
19
(b) Product-of-Sum (POS)
Method 1
– Apply rule
Rule1212:
: A(A
+ BC = (A=+(A
+ BC) B)(A + C) + C)
+ B)(A
20
(b) Product-of-Sum (POS)
Method 1
( A + B + C )( B + C + D)( A + B + C + D)
Term 1 Term 2 Term 3
Solution:
• Variables = A, B, C, D.
• What is missing?
– Term 1: missing D
– Term 2: missing A
21
• Apply rules 8 and 12
Rule 8: (A . Ā) = 0 Rule 12: (A + BC) = (A + B)(A + C)
Term 1 : A + B + C = A + B + C + D D = ( A + B + C + D)( A + B + C + D)
Term 2 : B + C + D = B + C + D + A A
= ( A + B + C + D)( A + B + C + D)
• Now we have the standard of POS expression:
= (A + B + C + D)(A + B + C + D)(A + B + C + D)(A + B + C + D)(A + B + C + D)
22
Exercise
Solution
(A + B)(B + C)
= (A + B + C ⋅ C)(A ⋅ A + B + C)
= (A + B + C)(A + B + C)(A + B + C)(A + B + C)
23
(b) Product-of-Sum (POS)
Method 2 – Binary Representation
(A + B)(B + C)
Term 1 Term 2
• The bit 1 is A and 0 is A
• Identify a variable that is missing in each term using binary
24
Exercise
Example: Determine the binary value for which following
standard POS expression is equal to 0
( A + B + C + D)( A + B + C + D )( A + B + C + D )
Solution:
(A + B + C + D) = (0 + 0 + 0 + 0) = 0; A=0, B=0, C=0, D=0
25
From the standard POS, ( A + B + C + D)( A + B + C + D)( A + B + C + D )
it is easy to generate the truth table.
(A + B + C + D)
0 0 0 0
(A + B + C + D)
0 1 1 0
(A + B + C + D)
1 1 1 1
26
Exercise 4b.6: Represent the following Boolean expression:
(i) ABC + ABC + ABC as a sigma notation
(ii) (A + B + C)(A + B + C)(A + B + C)(A + B + C)
as a PI notation.
Solution 4b.6(i):
Expression: ABC + ABC + ABC 110 100 010
Solution 4b.6(ii):
Expression: (A + B + C)(A + B + C)(A + B + C)(A + B + C)
000 001 010 100
PI notation: ∏ ABC
(0,1, 2, 4)
27
Exercise 4b.7:
A Boolean expression is written in sigma notation as
X= ∑ (7, 4, 3) . Determine the logic level (binary value) for
ABC
each product term and write whole expression.
Solution 4b.7:
∑ ABC
(7, 4, 3) Logic level: 111 100 011
28
Exercise 4b.8:
A Boolean expression is written in PI notation as
X= ∏ (7, 4, 3). Determine the logic level (binary value) for
ABC
each sum term and write whole expression.
Solution 4b.8:
∏ ABC
(7, 4, 3) Logic level: 111 100 011
29
Converting Standard
(SOP à POS)
30
Example: Convert the following SOP expression to an equivalent
POS expression.
A B C + A B C + A BC + AB C + A B C
A B C Output
Solution: 0 0 0 1
• Variables = (A, B, C) = 3. So, 23 = 8 0 0 1 0
possible combinations. 0 1 0 1
0 1 1 1
A B C + A B C + A BC + A B C + A B C 1 0 0 0
000 010 011 101 111 1 0 1 1
1 1 0 0
• The SOP have 5 of 8, so POS have
1 1 1 1
the other 3 (001, 100, 110)
è These 3 make
sum term = 0 (A + B + C)(A + B + C)(A + B +C)
0 0 1 1 0 0 1 1 0
31
Exercise 4b.9: Convert the following SOP expressions
to an equivalent POS expression: AC + BC
Solution 4b.9:
32
Boolean Expressions and Truth
Tables
33
Standard SOP à truth tables
Develop a truth table for the standard SOP expression
34
Standard
Standard POS àPOS à truth
truth tables
tables
Develop a truth table for the standard POS expression
• Domain = A, B, C. combinations = 23 = 8
• What binary value makes the sum term = 0?
Solution
INPUTS OUTPUT PRODUCT
(A + B + C)(A + B + C)(A + B +C)(A + B + C)(A + B +C) TERM
A B C X
0 0 0 0 1 0 0 1 1 1 0 1 1 1 0 (A + B + C)
0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1
0 0 0 0 0 0 1 0 0 (A + B + C)
0 1 1 0 (A + B + C)
1 0 0 1
• Fill the truth table 1 0 1 0 (A + B + C)
1 1 0 0 (A + B + C)
1 1 1 1
35
Exercise
36