DLD Lecture 6
DLD Lecture 6
1. Parentheses
2. NOT
3. AND
4. OR
F1 = xy z x y z F1 F2 F3 F4
F2 = x + yz 0 0 0 0 0
F3 = x y z + x y z + x y 0 0 1 0 1
F4 = x y + x z 0 1 0 0 0
0 1 1 0 0
1 0 0 0 1
1 0 1 0 1
1 1 0 1 1
1 1 1 0 1
Simplify Boolean Expressions
Simplify Boolean Expressions
Simplify Boolean Expressions
Complementing Functions
▪ Use DeMorgan's Theorem to complement a
function:
1. Interchange AND and OR operators
2. Complement each constant value and literal
Standard Forms
▪ A Boolean function expressed algebraically can be written
in a variety of ways.
▪ There are, however, specific ways of writing algebraic
equations that are considered to be standard forms.
▪ It is useful to specify Boolean functions in a form that:
• Allows comparison for equality.
• Has a correspondence to the truth tables
Standard Forms
▪ The standard forms contain product terms and sum
terms.
▪ An example of a product term is XYZ. This is a
logical product consisting of an AND operation
among three literals.
▪ An example of a sum term is X + Y + Z. This is a
logical sum consisting of an OR operation among
the literals.
▪ In Boolean algebra, the words “product” and “sum”
specify the logical operations AND and OR,
respectively.
Minterms
▪ A truth table defines a Boolean function.
▪ Minterms of Maxterms of
2 variables 2 variables
xy m0 m1 m2 m3 x y M0 M1 M2 M3
00 1 0 0 0 00 0 1 1 1
01 0 1 0 0 01 1 0 1 1
10 0 0 1 0 10 1 1 0 1
11 0 0 0 1 11 1 1 1 0
▪ F1 = x y z + x y z + x y z (Canonical Form)
x y z index m1 + m4 + m7 = F1
000 0 0 + 0 + 0 =0
001 1 1 + 0 + 0 =1
010 2 0 + 0 + 0 =0
011 3 0 + 0 + 0 =0
100 4 0 + 1 + 0 =1
101 5 0 + 0 + 0 =0
110 6 0 + 0 + 0 =0
111 7 0 + 0 + 1 =1
Sum of Products (SOP)
F1 = (x + y + z) ·(x + y + z)·(x + y + z )
·(x + y + z )·(x + y + z) (Canonical Form)
xyz i M0 M2 M3 M5 M6 = F1
000 0 0 1 1 1 1 =0
001 1 1 1 1 1 1 =1
010 2 1 0 1 1 1 =0
011 3 1 1 0 1 1 =0
100 4 1 1 1 1 1 =1
101 5 1 1 1 0 1 =0
110 6 1 1 1 1 0 =0
111 7 1 1 1 1 1 =1
Product of Sum (POS)