SlideShare a Scribd company logo
Slide 1
Boolean Algebra and Logic
Simplification
BY UNSA SHAKIR
Slide 2
Boolean Algebra
• Boolean algebra is a mathematical system for the
manipulation of variables that can have one of two values.
– In formal logic, these values are “true” and “false.”
– In digital systems, these values are “on” and “off,” 1 and
0, or “high” and “low.”
• When we learned numbers like 1, 2, 3, we also then learned
how to add, multiply, etc. with them. Boolean Algebra
covers operations that we can do with 0’s and 1’s.
Computers do these operations ALL THE TIME and they
are basic building blocks of computation inside your
computer program.
Slide 3
How does Boolean Algebra fit into
the big picture?
• It is part of the Combinational Logic topics (memoryless)
– Different from the Sequential logic topics (can store
information)
• Learning Axioms and theorems of Boolean algebra
• Allows you to design logic functions
• Allows you to know how to combine different logic
gates
• Allows you to simplify or optimize on the complex
operations
Slide 4
NOT Gate -- Inverter
X Y
0
1
1
0
X Y
Y
NOT
X Y
Y = ~X
NOT
• The NOT operation is most often designated by an
overbar. It is sometimes indicated by a prime mark ( ‘ ) or
an “elbow” ().
Basic Logic Gates
Slide 5
AND Gate
AND (Multiplication)
X
Y
Z
Z = X . Y
X Y Z
0 0 0
0 1 0
1 0 0
1 1 1
Slide 6
OR Gate
OR (Addition)
X
Y
Z
Z = X + Y
X Y Z
0 0 0
0 1 1
1 0 1
1 1 1
Slide 7
NAND Gate
NOT-AND
X
Y
Z
W = X . Y
Z = ~W = ~(X . Y)
X Y W Z
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
W
Slide 8
NAND Gate
X
Y
X
Y
Z
Z
Z = ~(X . Y) Z = ~X + ~Y
=
X Y W Z
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
X Y ~X ~Y Z
0 0 1 1 1
0 1 1 0 1
1 0 0 1 1
1 1 0 0 0
W
Slide 9
NOR Gate
NOT-OR
X
Y
W = X + Y
Z = ~W = ~(X + Y)
X Y W Z
0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0
ZW
Slide 10
NOR Gate
X
Y
Z
Z = ~(X + Y)
X Y Z
0 0 1
0 1 0
1 0 0
1 1 0
X
Y
Z
Z = ~X . ~Y
X Y ~X ~Y Z
0 0 1 1 1
0 1 1 0 0
1 0 0 1 0
1 1 0 0 0
Slide 11
Exclusive-OR Gate
X Y ZXOR
X
Y
Z 0 0 0
0 1 1
1 0 1
1 1 0
xor(Z,X,Y)
• The output of an XOR gate is true (1) only when exactly one of its inputs
is true (1). If both of an XOR gate's inputs are false (0), or if both of its
inputs are true (1), then the output of the XOR gate is false (0).
Slide 12
Exclusive-NOR Gate
X Y ZXNOR
X
Y
Z 0 0 1
0 1 0
1 0 0
1 1 1
xnor(Z,X,Y)
• The output of an XNOR gate is true (1) when all of its inputs are true (1)
or when all of its inputs are false (0). If some of its inputs are true (1) and
others are false (0), then the output of the XNOR gate is false(0).
Slide 13
Multiple-input AND Gate
Z 1
Output is HIGH only if all inputs are HIGHZ1
Slide 14
Multiple-input OR Gate
Output is LOW only if all inputs are LOWZ2
2Z
Slide 15
Multiple-input NAND Gate
Output is LOW only if all inputs are HIGHZ3
3Z
Slide 16
Multiple-input NOR Gate
Output is HIGH only if all inputs are LOWZ4
4Z
Slide 17
Some notation
• Priorities:
1.Parentheses
2.NOT > AND > XOR > OR
• Variables and their complements are
sometimes called literals
A B+C =((A) B)+C 
Slide 18
Laws of Boolean Algebra
• Commutative Law of Addition:
A + B = B + A
Slide 19
Laws of Boolean Algebra
• Commutative Law of Multiplication:
A * B = B * A
Slide 20
Laws of Boolean Algebra
• Associative Law of Addition:
A + (B + C) = (A + B) + C
Slide 21
Laws of Boolean Algebra
• Associative Law of Multiplication:
A * (B * C) = (A * B) * C
Slide 22
Laws of Boolean Algebra
• Distributive Law:
A(B + C) = AB + AC
Slide 23
Rules of Boolean Algebra
• Rule 1 IDENTITY w.r.t ADDITION
OR Truth Table
Slide 24
Rules of Boolean Algebra
• Rule 2 NULL w.r.t ADDITION
OR Truth Table
Slide 25
Rules of Boolean Algebra
• Rule 3 NULL w.r.t MULTIPLICATION
AND Truth Table
Slide 26
Rules of Boolean Algebra
• Rule 4 IDENTITY w.r.t MULTIPLICATION
AND Truth Table
Slide 27
Rules of Boolean Algebra
• Rule 5 IDEMPOTENT w.r.t ADDITION
OR Truth Table
Slide 28
Rules of Boolean Algebra
• Rule 6 COMPLEMENTARITY w.r.t
ADDITION
OR Truth Table
Slide 29
Rules of Boolean Algebra
• Rule 7 IDEMPOTENT w.r.t
MULTIPLICATION
AND Truth Table
Slide 30
Rules of Boolean Algebra
• Rule 8 COMPLEMENTARITY w.r.t
MULTIPLICATION
AND Truth Table
Slide 31
Rules of Boolean Algebra
• Rule 9 INVOLUTION
Slide 32
Rules of Boolean Algebra
• Rule 10: A + AB = A
AND Truth Table OR Truth Table
Slide 33
Rules of Boolean Algebra
• Rule 11: BABAA 
AND Truth Table OR Truth Table
Slide 34
Rules of Boolean Algebra
• Rule 12: (A + B)(A + C) = A + BC
AND Truth Table OR Truth Table
Slide 35
Slide 36
Slide 37
Slide 38
A logic circuit showing the development of the Boolean
expression for the output.
Slide 39
Example 1
Determine if the following equation is valid
Slide 40
Left-Hand Side (LHS)
Slide 41
Right-Hand Side (RHS)
Slide 42
?
LHS RHS
Slide 43
Canonical forms
• Canonical forms
– Standard forms for Boolean expressions
– Derived from truth table
– Generally not the simplest forms (can be
minimized)
• Two canonical forms
– Sum-of-products (minterms)
– Product-of-sums (maxterms)
Slide 44
Sum-of-products (SOP)
• Also called disjunctive normal form (DNF)
or minterm expansion
A B C F F'
0 0 0 0 1
0 0 1 1 0
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 0
001 011 101 110 111
F = A'B'C + A'BC + AB'C + ABC' + ABC
F' = A'B'C' + A'BC' + AB'C'
minterm
0= ‘
NOTICE 1 TO SOLVE
Slide 45
Minterms
• Variables appear exactly once in each
minterm in true or inverted form (but not
both)
short-hand notation
A B C minterms
0 0 0 A'B'C' m0
0 0 1 A'B'C m1
0 1 0 A'BC' m2
0 1 1 A'BC m3
1 0 0 AB'C' m4
1 0 1 AB'C m5
1 1 0 ABC' m6
1 1 1 ABC m7
F in canonical form:
F(A,B,C) = m(1,3,5,6,7)
= m1 + m3 + m5 + m6 + m7
= A'B'C+A'BC+AB'C+ABC'+ABC
Slide 46
Product-of-sums (POS)
• Also called conjunctive normal form (CNF)
or maxterm expansion
A B C F F'
0 0 0 0 1
0 0 1 1 0
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 0
000 010 100
F = (A + B + C) (A + B' + C) (A' + B + C)
F' = (A+B+C')(A+B'+C')(A'+B+C')(A'+B'+C)(A'+B'+C')
maxterm
1 = ‘
NOTICE 0 TO SOLVE
Slide 47
Maxterms
• Variables appear exactly once in each
maxterm in true or inverted form (but not
both)
A B C maxterms
0 0 0 A+B+C M0
0 0 1 A+B+C' M1
0 1 0 A+B'+C M2
0 1 1 A+B'+C' M3
1 0 0 A'+B+C M4
1 0 1 A'+B+C' M5
1 1 0 A'+B'+C M6
1 1 1 A'+B'+C' M7
short-hand notation
F in canonical form:
F(A,B,C) = M(0,2,4)
= M0 • M2 • M4
= (A+B+C)(A+B'+C)(A'+B+C)
Slide 48
Slide 49
Example
• Truth table for f1(a,b,c) at right
• The canonical sum-of-products form for
f1 is
f1(a,b,c) = m1 + m2 + m4 + m6
= a’b’c + a’bc’ + ab’c’ + abc’
• The canonical product-of-sums form for
f1 is
f1(a,b,c) = M0 • M3 • M5 • M7
= (a+b+c)•(a+b’+c’)•
(a’+b+c’)•(a’+b’+c’).
a b c f1
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 0
Slide 50
Example 2
Design the minimum-cost product-of-
sums and sum-of-product expression for
the function
f(x1, x2, x3) = Σ m(0, 2, 4, 5, 6, 7)
Slide 51
Minterms and Maxterms
(with three variables)
Slide 52
Minterms and Maxterms
(with three variables)
The function is
1 for these rows
Slide 53
Minterms and Maxterms
(with three variables)
The function is
1 for these rows
The function is
0 for these rows
Slide 54
From SOP to POS and back
• Minterm to maxterm
– Use maxterms that aren’t in minterm
expansion
– F(A,B,C) = m(1,3,5,6,7) = M(0,2,4)
• Maxterm to minterm
– Use minterms that aren’t in maxterm
expansion
– F(A,B,C) = M(0,2,4) = m(1,3,5,6,7)
Slide 55
From SOP to POS and back
• Minterm of F to minterm of F'
– Use minterms that don’t appear
– F(A,B,C) = m(1,3,5,6,7) F' = m(0,2,4)
• Maxterm of F to maxterm of F'
– Use maxterms that don’t appear
– F(A,B,C) = M(0,2,4)F' = M(1,3,5,6,7)
Slide 56
SOP, POS, and DeMorgan's
• Product-of-sums
– F' = (A+B+C')(A+B'+C')(A'+B+C')(A'+B'+C')
• Apply DeMorgan's to get SOP
– (F')' = ((A+B+C')(A+B'+C')(A'+B+C')(A'+B'+C'))'
– F = A'B'C + A'BC + AB'C + ABC
Slide 57
SOP, POS, and DeMorgan's
• Sum-of-products
– F' = A'B'C' + A'BC' + AB'C'
• Apply DeMorgan's to get POS
– (F')' = (A'B'C' + A'BC' + AB'C')'
– F = (A+B+C)(A+B'+C)(A'+B+C)
Slide 58
Conversion of SOP from standard to canonical form
• Expand non-canonical terms by inserting
equivalent of 1 in each missing variable x:
(x + x’) = 1
• Remove duplicate minterms
• f1(a,b,c) = a’b’c + bc’ + ac’
= a’b’c + (a+a’)bc’ + a(b+b’)c’
= a’b’c + abc’ + a’bc’ + abc’ + ab’c’
= a’b’c + abc’ + a’bc + ab’c’
Slide 59
Conversion of POS from standard to canonical form
• Expand noncanonical terms by adding 0 in terms
of missing variables (e.g., xx’ = 0) and using the
distributive law (e.g., A + (BC) = (A + B).(A + C))
• Remove duplicate maxterms
• f1(a,b,c) = (a+b+c)•(b’+c’)•(a’+c’)
= (a+b+c)•(aa’+b’+c’)•(a’+bb’+c’)
= (a+b+c)•(a+b’+c’)•(a’+b’+c’)•
(a’+b+c’)•(a’+b’+c’)
= (a+b+c)•(a+b’+c’)•(a’+b’+c’)•(a’+b+c’)
Slide 60
Exercise
Slide 61
Slide 62
Implementation of the SOP expression AB + BCD + AC.
Slide 63
Exercise: The logic implementation for segment X.
Slide 64
Exercise: The logic implementation for segment a.
Slide 65
Exercise: What is the Boolean expression for each of the
logic gates?
Slide 66
Exercise: What is the Boolean expression for each of the
logic gates?
Slide 67
• Example: Prove
x’y’z’ + x’yz’ + xyz’ = x’z’ + yz’
Slide 68
2-68
• Two-level implementation
Multi-level implementation
Slide 69
– Multiple NOR = a complement of OR gate
– Multiple NAND = a complement of AND
– The cascaded NAND operations = sum of products
– The cascaded NOR operations = product of sums
Slide 70
2-70
– The XOR and XNOR gates are commutative and
associative
– Multiple-input XOR gates are uncommon.
– XOR is an odd function: it is equal to 1 if the inputs
variables have an odd number of 1's
Slide 71
Two-Level NAND Gate Implementation - Example
F (X,Y,Z) = m(0,6)
1. Express F in SOP form:
F = X’Y’Z’ + XYZ’
2. Obtain the AND-OR implementation for F.
3. Add bubbles and inverters to transform
AND-OR to NAND-NAND gates.
Slide 72
Example (cont.)
Two-level implementation with NANDs
F = X’Y’Z’ + XYZ’
Slide 73
Slide 74
Slide 75
Slide 76
1. The associative law for addition is normally written as
a. A + B = B + A
b. (A + B) + C = A + (B + C)
c. AB = BA
d. A + AB = A
2. The Boolean equation AB + AC = A(B+ C) illustrates
a. the distribution law
b. the commutative law
c. the associative law
d. DeMorgan’s theorem
Slide 77
3. The Boolean expression A . 1 is equal to
a. A
b. B
c. 0
d. 1
4. The Boolean expression A + 1 is equal to
a. A
b. B
c. 0
d. 1
Slide 78
5. The Boolean equation AB + AC = A(B+ C) illustrates
a. the distribution law
b. the commutative law
c. the associative law
d. DeMorgan’s theorem
6. A Boolean expression that is in standard SOP form is
a. the minimum logic expression
b. contains only one product term
c. has every variable in the domain in every term
d. none of the above
Slide 79
Answers:
1. b
2. c
3. a
4. d
5. a
6. c
The end

More Related Content

What's hot

Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
DrSonali Vyas
 
Logic gate
Logic gateLogic gate
Logic gates ppt
Logic gates pptLogic gates ppt
Logic gates ppt
parassini
 
MULTIPLEXER
MULTIPLEXERMULTIPLEXER
MULTIPLEXER
Siddhi Shrivas
 
BOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATEBOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATE
Ideal Eyes Business College
 
Subtractor (1)
Subtractor (1)Subtractor (1)
Subtractor (1)
Self-employed
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
Janki Shah
 
carry look ahead adder
carry look ahead addercarry look ahead adder
carry look ahead adder
ASHISH MANI
 
Decoder Full Presentation
Decoder Full Presentation Decoder Full Presentation
Decoder Full Presentation
Adeel Rasheed
 
adder and subtractor
 adder and subtractor adder and subtractor
adder and subtractor
Unsa Shakir
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA
Shaik Aman
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Satya P. Joshi
 
Chapter 03 Boolean Algebra and Combinational Logic
Chapter 03 Boolean Algebra and Combinational LogicChapter 03 Boolean Algebra and Combinational Logic
Chapter 03 Boolean Algebra and Combinational Logic
SSE_AndyLi
 
Digital Logic Circuits
Digital Logic CircuitsDigital Logic Circuits
Digital Logic Circuits
sathish sak
 
K - Map
  K - Map    K - Map
K - Map
Abhishek Choksi
 
Multiplexers & Demultiplexers
Multiplexers & DemultiplexersMultiplexers & Demultiplexers
Multiplexers & Demultiplexers
Jayanshu Gundaniya
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic GatesKumar
 
Design half ,full Adder and Subtractor
Design half ,full Adder and SubtractorDesign half ,full Adder and Subtractor
Design half ,full Adder and Subtractor
Jaimin@prt.ltd.
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
blaircomp2003
 

What's hot (20)

Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
 
Logic gate
Logic gateLogic gate
Logic gate
 
Logic gates ppt
Logic gates pptLogic gates ppt
Logic gates ppt
 
MULTIPLEXER
MULTIPLEXERMULTIPLEXER
MULTIPLEXER
 
BOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATEBOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATE
 
Subtractor (1)
Subtractor (1)Subtractor (1)
Subtractor (1)
 
Logic gates presentation
Logic gates presentationLogic gates presentation
Logic gates presentation
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
carry look ahead adder
carry look ahead addercarry look ahead adder
carry look ahead adder
 
Decoder Full Presentation
Decoder Full Presentation Decoder Full Presentation
Decoder Full Presentation
 
adder and subtractor
 adder and subtractor adder and subtractor
adder and subtractor
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
 
Chapter 03 Boolean Algebra and Combinational Logic
Chapter 03 Boolean Algebra and Combinational LogicChapter 03 Boolean Algebra and Combinational Logic
Chapter 03 Boolean Algebra and Combinational Logic
 
Digital Logic Circuits
Digital Logic CircuitsDigital Logic Circuits
Digital Logic Circuits
 
K - Map
  K - Map    K - Map
K - Map
 
Multiplexers & Demultiplexers
Multiplexers & DemultiplexersMultiplexers & Demultiplexers
Multiplexers & Demultiplexers
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
 
Design half ,full Adder and Subtractor
Design half ,full Adder and SubtractorDesign half ,full Adder and Subtractor
Design half ,full Adder and Subtractor
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 

Similar to boolean algebra and logic simplification

digital logic design Chapter 2 boolean_algebra_&_logic_gates
digital logic design Chapter 2 boolean_algebra_&_logic_gatesdigital logic design Chapter 2 boolean_algebra_&_logic_gates
digital logic design Chapter 2 boolean_algebra_&_logic_gates
Imran Waris
 
Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)
MeghaSharma513
 
booleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).pptbooleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).ppt
michaelaaron25322
 
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesB sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gates
Rai University
 
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
siliconvalley6203
 
Principles of Combinational Logic-1
Principles of Combinational Logic-1Principles of Combinational Logic-1
Principles of Combinational Logic-1
Supanna Shirguppe
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
Manish Kumar
 
K-map Digital Logic Design DLD Theory l
K-map  Digital Logic Design DLD Theory lK-map  Digital Logic Design DLD Theory l
K-map Digital Logic Design DLD Theory l
khanyz4884
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
LingalaSowjanya
 
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
arunachalamr16
 
4 logic circuit optimisation
4 logic circuit optimisation4 logic circuit optimisation
4 logic circuit optimisation
chandkec
 
Bca 2nd sem-u-1.5 digital logic circuits, digital component
Bca 2nd sem-u-1.5 digital logic circuits, digital componentBca 2nd sem-u-1.5 digital logic circuits, digital component
Bca 2nd sem-u-1.5 digital logic circuits, digital component
Rai University
 
B.sc cs-ii-u-1.5 digital logic circuits, digital component
B.sc cs-ii-u-1.5 digital logic circuits, digital componentB.sc cs-ii-u-1.5 digital logic circuits, digital component
B.sc cs-ii-u-1.5 digital logic circuits, digital component
Rai University
 
Digital logic
Digital logicDigital logic
Digital logic
Md Shohel Rana
 
Chapter 2 Boolean Algebra (part 2)
Chapter 2 Boolean Algebra (part 2)Chapter 2 Boolean Algebra (part 2)
Chapter 2 Boolean Algebra (part 2)
Frankie Jones
 
9402730.ppt
9402730.ppt9402730.ppt
9402730.ppt
qquwandiq19
 
digital logic circuits, digital component
 digital logic circuits, digital component digital logic circuits, digital component
digital logic circuits, digital component
Rai University
 
Unit 2 Boolean Algebra and Logic Gates.pdf
Unit 2 Boolean Algebra and Logic Gates.pdfUnit 2 Boolean Algebra and Logic Gates.pdf
Unit 2 Boolean Algebra and Logic Gates.pdf
ShirazHusain4
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebra
Robert Geofroy
 

Similar to boolean algebra and logic simplification (20)

digital logic design Chapter 2 boolean_algebra_&_logic_gates
digital logic design Chapter 2 boolean_algebra_&_logic_gatesdigital logic design Chapter 2 boolean_algebra_&_logic_gates
digital logic design Chapter 2 boolean_algebra_&_logic_gates
 
Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)
 
booleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).pptbooleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).ppt
 
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesB sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gates
 
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
 
Principles of Combinational Logic-1
Principles of Combinational Logic-1Principles of Combinational Logic-1
Principles of Combinational Logic-1
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
K-map Digital Logic Design DLD Theory l
K-map  Digital Logic Design DLD Theory lK-map  Digital Logic Design DLD Theory l
K-map Digital Logic Design DLD Theory l
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
 
4 logic circuit optimisation
4 logic circuit optimisation4 logic circuit optimisation
4 logic circuit optimisation
 
Bca 2nd sem-u-1.5 digital logic circuits, digital component
Bca 2nd sem-u-1.5 digital logic circuits, digital componentBca 2nd sem-u-1.5 digital logic circuits, digital component
Bca 2nd sem-u-1.5 digital logic circuits, digital component
 
B.sc cs-ii-u-1.5 digital logic circuits, digital component
B.sc cs-ii-u-1.5 digital logic circuits, digital componentB.sc cs-ii-u-1.5 digital logic circuits, digital component
B.sc cs-ii-u-1.5 digital logic circuits, digital component
 
Digital logic
Digital logicDigital logic
Digital logic
 
Chapter 2 Boolean Algebra (part 2)
Chapter 2 Boolean Algebra (part 2)Chapter 2 Boolean Algebra (part 2)
Chapter 2 Boolean Algebra (part 2)
 
9402730.ppt
9402730.ppt9402730.ppt
9402730.ppt
 
digital logic circuits, digital component
 digital logic circuits, digital component digital logic circuits, digital component
digital logic circuits, digital component
 
UNIT-1_CSA.pdf
UNIT-1_CSA.pdfUNIT-1_CSA.pdf
UNIT-1_CSA.pdf
 
Unit 2 Boolean Algebra and Logic Gates.pdf
Unit 2 Boolean Algebra and Logic Gates.pdfUnit 2 Boolean Algebra and Logic Gates.pdf
Unit 2 Boolean Algebra and Logic Gates.pdf
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebra
 

More from Unsa Shakir

Types of diode
Types of diodeTypes of diode
Types of diode
Unsa Shakir
 
Transistor
TransistorTransistor
Transistor
Unsa Shakir
 
Single diode circuits
Single diode circuitsSingle diode circuits
Single diode circuits
Unsa Shakir
 
Silicon control rectifier
Silicon control rectifierSilicon control rectifier
Silicon control rectifier
Unsa Shakir
 
Rectifiers
RectifiersRectifiers
Rectifiers
Unsa Shakir
 
Operational amplifier
Operational amplifierOperational amplifier
Operational amplifier
Unsa Shakir
 
Diode voltage multiplier
Diode voltage multiplierDiode voltage multiplier
Diode voltage multiplier
Unsa Shakir
 
Types of transistors
Types of transistorsTypes of transistors
Types of transistors
Unsa Shakir
 
Clipper and clamper circuits
Clipper and clamper circuitsClipper and clamper circuits
Clipper and clamper circuits
Unsa Shakir
 
kinds of distribution
 kinds of distribution kinds of distribution
kinds of distribution
Unsa Shakir
 
Probability of card
Probability of  cardProbability of  card
Probability of card
Unsa Shakir
 
hypothesis test
 hypothesis test hypothesis test
hypothesis test
Unsa Shakir
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
Unsa Shakir
 
probability
probabilityprobability
probability
Unsa Shakir
 
tree diagrams
 tree diagrams tree diagrams
tree diagrams
Unsa Shakir
 
counting techniques
counting techniquescounting techniques
counting techniques
Unsa Shakir
 
analytical representation of data
 analytical representation of data analytical representation of data
analytical representation of data
Unsa Shakir
 
frequency distribution
 frequency distribution frequency distribution
frequency distribution
Unsa Shakir
 
graphic representations in statistics
 graphic representations in statistics graphic representations in statistics
graphic representations in statistics
Unsa Shakir
 
introduction to statistical theory
introduction to statistical theoryintroduction to statistical theory
introduction to statistical theory
Unsa Shakir
 

More from Unsa Shakir (20)

Types of diode
Types of diodeTypes of diode
Types of diode
 
Transistor
TransistorTransistor
Transistor
 
Single diode circuits
Single diode circuitsSingle diode circuits
Single diode circuits
 
Silicon control rectifier
Silicon control rectifierSilicon control rectifier
Silicon control rectifier
 
Rectifiers
RectifiersRectifiers
Rectifiers
 
Operational amplifier
Operational amplifierOperational amplifier
Operational amplifier
 
Diode voltage multiplier
Diode voltage multiplierDiode voltage multiplier
Diode voltage multiplier
 
Types of transistors
Types of transistorsTypes of transistors
Types of transistors
 
Clipper and clamper circuits
Clipper and clamper circuitsClipper and clamper circuits
Clipper and clamper circuits
 
kinds of distribution
 kinds of distribution kinds of distribution
kinds of distribution
 
Probability of card
Probability of  cardProbability of  card
Probability of card
 
hypothesis test
 hypothesis test hypothesis test
hypothesis test
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
 
probability
probabilityprobability
probability
 
tree diagrams
 tree diagrams tree diagrams
tree diagrams
 
counting techniques
counting techniquescounting techniques
counting techniques
 
analytical representation of data
 analytical representation of data analytical representation of data
analytical representation of data
 
frequency distribution
 frequency distribution frequency distribution
frequency distribution
 
graphic representations in statistics
 graphic representations in statistics graphic representations in statistics
graphic representations in statistics
 
introduction to statistical theory
introduction to statistical theoryintroduction to statistical theory
introduction to statistical theory
 

Recently uploaded

Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 

Recently uploaded (20)

Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 

boolean algebra and logic simplification

  • 1. Slide 1 Boolean Algebra and Logic Simplification BY UNSA SHAKIR
  • 2. Slide 2 Boolean Algebra • Boolean algebra is a mathematical system for the manipulation of variables that can have one of two values. – In formal logic, these values are “true” and “false.” – In digital systems, these values are “on” and “off,” 1 and 0, or “high” and “low.” • When we learned numbers like 1, 2, 3, we also then learned how to add, multiply, etc. with them. Boolean Algebra covers operations that we can do with 0’s and 1’s. Computers do these operations ALL THE TIME and they are basic building blocks of computation inside your computer program.
  • 3. Slide 3 How does Boolean Algebra fit into the big picture? • It is part of the Combinational Logic topics (memoryless) – Different from the Sequential logic topics (can store information) • Learning Axioms and theorems of Boolean algebra • Allows you to design logic functions • Allows you to know how to combine different logic gates • Allows you to simplify or optimize on the complex operations
  • 4. Slide 4 NOT Gate -- Inverter X Y 0 1 1 0 X Y Y NOT X Y Y = ~X NOT • The NOT operation is most often designated by an overbar. It is sometimes indicated by a prime mark ( ‘ ) or an “elbow” (). Basic Logic Gates
  • 5. Slide 5 AND Gate AND (Multiplication) X Y Z Z = X . Y X Y Z 0 0 0 0 1 0 1 0 0 1 1 1
  • 6. Slide 6 OR Gate OR (Addition) X Y Z Z = X + Y X Y Z 0 0 0 0 1 1 1 0 1 1 1 1
  • 7. Slide 7 NAND Gate NOT-AND X Y Z W = X . Y Z = ~W = ~(X . Y) X Y W Z 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 W
  • 8. Slide 8 NAND Gate X Y X Y Z Z Z = ~(X . Y) Z = ~X + ~Y = X Y W Z 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 X Y ~X ~Y Z 0 0 1 1 1 0 1 1 0 1 1 0 0 1 1 1 1 0 0 0 W
  • 9. Slide 9 NOR Gate NOT-OR X Y W = X + Y Z = ~W = ~(X + Y) X Y W Z 0 0 0 1 0 1 1 0 1 0 1 0 1 1 1 0 ZW
  • 10. Slide 10 NOR Gate X Y Z Z = ~(X + Y) X Y Z 0 0 1 0 1 0 1 0 0 1 1 0 X Y Z Z = ~X . ~Y X Y ~X ~Y Z 0 0 1 1 1 0 1 1 0 0 1 0 0 1 0 1 1 0 0 0
  • 11. Slide 11 Exclusive-OR Gate X Y ZXOR X Y Z 0 0 0 0 1 1 1 0 1 1 1 0 xor(Z,X,Y) • The output of an XOR gate is true (1) only when exactly one of its inputs is true (1). If both of an XOR gate's inputs are false (0), or if both of its inputs are true (1), then the output of the XOR gate is false (0).
  • 12. Slide 12 Exclusive-NOR Gate X Y ZXNOR X Y Z 0 0 1 0 1 0 1 0 0 1 1 1 xnor(Z,X,Y) • The output of an XNOR gate is true (1) when all of its inputs are true (1) or when all of its inputs are false (0). If some of its inputs are true (1) and others are false (0), then the output of the XNOR gate is false(0).
  • 13. Slide 13 Multiple-input AND Gate Z 1 Output is HIGH only if all inputs are HIGHZ1
  • 14. Slide 14 Multiple-input OR Gate Output is LOW only if all inputs are LOWZ2 2Z
  • 15. Slide 15 Multiple-input NAND Gate Output is LOW only if all inputs are HIGHZ3 3Z
  • 16. Slide 16 Multiple-input NOR Gate Output is HIGH only if all inputs are LOWZ4 4Z
  • 17. Slide 17 Some notation • Priorities: 1.Parentheses 2.NOT > AND > XOR > OR • Variables and their complements are sometimes called literals A B+C =((A) B)+C 
  • 18. Slide 18 Laws of Boolean Algebra • Commutative Law of Addition: A + B = B + A
  • 19. Slide 19 Laws of Boolean Algebra • Commutative Law of Multiplication: A * B = B * A
  • 20. Slide 20 Laws of Boolean Algebra • Associative Law of Addition: A + (B + C) = (A + B) + C
  • 21. Slide 21 Laws of Boolean Algebra • Associative Law of Multiplication: A * (B * C) = (A * B) * C
  • 22. Slide 22 Laws of Boolean Algebra • Distributive Law: A(B + C) = AB + AC
  • 23. Slide 23 Rules of Boolean Algebra • Rule 1 IDENTITY w.r.t ADDITION OR Truth Table
  • 24. Slide 24 Rules of Boolean Algebra • Rule 2 NULL w.r.t ADDITION OR Truth Table
  • 25. Slide 25 Rules of Boolean Algebra • Rule 3 NULL w.r.t MULTIPLICATION AND Truth Table
  • 26. Slide 26 Rules of Boolean Algebra • Rule 4 IDENTITY w.r.t MULTIPLICATION AND Truth Table
  • 27. Slide 27 Rules of Boolean Algebra • Rule 5 IDEMPOTENT w.r.t ADDITION OR Truth Table
  • 28. Slide 28 Rules of Boolean Algebra • Rule 6 COMPLEMENTARITY w.r.t ADDITION OR Truth Table
  • 29. Slide 29 Rules of Boolean Algebra • Rule 7 IDEMPOTENT w.r.t MULTIPLICATION AND Truth Table
  • 30. Slide 30 Rules of Boolean Algebra • Rule 8 COMPLEMENTARITY w.r.t MULTIPLICATION AND Truth Table
  • 31. Slide 31 Rules of Boolean Algebra • Rule 9 INVOLUTION
  • 32. Slide 32 Rules of Boolean Algebra • Rule 10: A + AB = A AND Truth Table OR Truth Table
  • 33. Slide 33 Rules of Boolean Algebra • Rule 11: BABAA  AND Truth Table OR Truth Table
  • 34. Slide 34 Rules of Boolean Algebra • Rule 12: (A + B)(A + C) = A + BC AND Truth Table OR Truth Table
  • 38. Slide 38 A logic circuit showing the development of the Boolean expression for the output.
  • 39. Slide 39 Example 1 Determine if the following equation is valid
  • 43. Slide 43 Canonical forms • Canonical forms – Standard forms for Boolean expressions – Derived from truth table – Generally not the simplest forms (can be minimized) • Two canonical forms – Sum-of-products (minterms) – Product-of-sums (maxterms)
  • 44. Slide 44 Sum-of-products (SOP) • Also called disjunctive normal form (DNF) or minterm expansion A B C F F' 0 0 0 0 1 0 0 1 1 0 0 1 0 0 1 0 1 1 1 0 1 0 0 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 1 0 001 011 101 110 111 F = A'B'C + A'BC + AB'C + ABC' + ABC F' = A'B'C' + A'BC' + AB'C' minterm 0= ‘ NOTICE 1 TO SOLVE
  • 45. Slide 45 Minterms • Variables appear exactly once in each minterm in true or inverted form (but not both) short-hand notation A B C minterms 0 0 0 A'B'C' m0 0 0 1 A'B'C m1 0 1 0 A'BC' m2 0 1 1 A'BC m3 1 0 0 AB'C' m4 1 0 1 AB'C m5 1 1 0 ABC' m6 1 1 1 ABC m7 F in canonical form: F(A,B,C) = m(1,3,5,6,7) = m1 + m3 + m5 + m6 + m7 = A'B'C+A'BC+AB'C+ABC'+ABC
  • 46. Slide 46 Product-of-sums (POS) • Also called conjunctive normal form (CNF) or maxterm expansion A B C F F' 0 0 0 0 1 0 0 1 1 0 0 1 0 0 1 0 1 1 1 0 1 0 0 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 1 0 000 010 100 F = (A + B + C) (A + B' + C) (A' + B + C) F' = (A+B+C')(A+B'+C')(A'+B+C')(A'+B'+C)(A'+B'+C') maxterm 1 = ‘ NOTICE 0 TO SOLVE
  • 47. Slide 47 Maxterms • Variables appear exactly once in each maxterm in true or inverted form (but not both) A B C maxterms 0 0 0 A+B+C M0 0 0 1 A+B+C' M1 0 1 0 A+B'+C M2 0 1 1 A+B'+C' M3 1 0 0 A'+B+C M4 1 0 1 A'+B+C' M5 1 1 0 A'+B'+C M6 1 1 1 A'+B'+C' M7 short-hand notation F in canonical form: F(A,B,C) = M(0,2,4) = M0 • M2 • M4 = (A+B+C)(A+B'+C)(A'+B+C)
  • 49. Slide 49 Example • Truth table for f1(a,b,c) at right • The canonical sum-of-products form for f1 is f1(a,b,c) = m1 + m2 + m4 + m6 = a’b’c + a’bc’ + ab’c’ + abc’ • The canonical product-of-sums form for f1 is f1(a,b,c) = M0 • M3 • M5 • M7 = (a+b+c)•(a+b’+c’)• (a’+b+c’)•(a’+b’+c’). a b c f1 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 0
  • 50. Slide 50 Example 2 Design the minimum-cost product-of- sums and sum-of-product expression for the function f(x1, x2, x3) = Σ m(0, 2, 4, 5, 6, 7)
  • 51. Slide 51 Minterms and Maxterms (with three variables)
  • 52. Slide 52 Minterms and Maxterms (with three variables) The function is 1 for these rows
  • 53. Slide 53 Minterms and Maxterms (with three variables) The function is 1 for these rows The function is 0 for these rows
  • 54. Slide 54 From SOP to POS and back • Minterm to maxterm – Use maxterms that aren’t in minterm expansion – F(A,B,C) = m(1,3,5,6,7) = M(0,2,4) • Maxterm to minterm – Use minterms that aren’t in maxterm expansion – F(A,B,C) = M(0,2,4) = m(1,3,5,6,7)
  • 55. Slide 55 From SOP to POS and back • Minterm of F to minterm of F' – Use minterms that don’t appear – F(A,B,C) = m(1,3,5,6,7) F' = m(0,2,4) • Maxterm of F to maxterm of F' – Use maxterms that don’t appear – F(A,B,C) = M(0,2,4)F' = M(1,3,5,6,7)
  • 56. Slide 56 SOP, POS, and DeMorgan's • Product-of-sums – F' = (A+B+C')(A+B'+C')(A'+B+C')(A'+B'+C') • Apply DeMorgan's to get SOP – (F')' = ((A+B+C')(A+B'+C')(A'+B+C')(A'+B'+C'))' – F = A'B'C + A'BC + AB'C + ABC
  • 57. Slide 57 SOP, POS, and DeMorgan's • Sum-of-products – F' = A'B'C' + A'BC' + AB'C' • Apply DeMorgan's to get POS – (F')' = (A'B'C' + A'BC' + AB'C')' – F = (A+B+C)(A+B'+C)(A'+B+C)
  • 58. Slide 58 Conversion of SOP from standard to canonical form • Expand non-canonical terms by inserting equivalent of 1 in each missing variable x: (x + x’) = 1 • Remove duplicate minterms • f1(a,b,c) = a’b’c + bc’ + ac’ = a’b’c + (a+a’)bc’ + a(b+b’)c’ = a’b’c + abc’ + a’bc’ + abc’ + ab’c’ = a’b’c + abc’ + a’bc + ab’c’
  • 59. Slide 59 Conversion of POS from standard to canonical form • Expand noncanonical terms by adding 0 in terms of missing variables (e.g., xx’ = 0) and using the distributive law (e.g., A + (BC) = (A + B).(A + C)) • Remove duplicate maxterms • f1(a,b,c) = (a+b+c)•(b’+c’)•(a’+c’) = (a+b+c)•(aa’+b’+c’)•(a’+bb’+c’) = (a+b+c)•(a+b’+c’)•(a’+b’+c’)• (a’+b+c’)•(a’+b’+c’) = (a+b+c)•(a+b’+c’)•(a’+b’+c’)•(a’+b+c’)
  • 62. Slide 62 Implementation of the SOP expression AB + BCD + AC.
  • 63. Slide 63 Exercise: The logic implementation for segment X.
  • 64. Slide 64 Exercise: The logic implementation for segment a.
  • 65. Slide 65 Exercise: What is the Boolean expression for each of the logic gates?
  • 66. Slide 66 Exercise: What is the Boolean expression for each of the logic gates?
  • 67. Slide 67 • Example: Prove x’y’z’ + x’yz’ + xyz’ = x’z’ + yz’
  • 68. Slide 68 2-68 • Two-level implementation Multi-level implementation
  • 69. Slide 69 – Multiple NOR = a complement of OR gate – Multiple NAND = a complement of AND – The cascaded NAND operations = sum of products – The cascaded NOR operations = product of sums
  • 70. Slide 70 2-70 – The XOR and XNOR gates are commutative and associative – Multiple-input XOR gates are uncommon. – XOR is an odd function: it is equal to 1 if the inputs variables have an odd number of 1's
  • 71. Slide 71 Two-Level NAND Gate Implementation - Example F (X,Y,Z) = m(0,6) 1. Express F in SOP form: F = X’Y’Z’ + XYZ’ 2. Obtain the AND-OR implementation for F. 3. Add bubbles and inverters to transform AND-OR to NAND-NAND gates.
  • 72. Slide 72 Example (cont.) Two-level implementation with NANDs F = X’Y’Z’ + XYZ’
  • 76. Slide 76 1. The associative law for addition is normally written as a. A + B = B + A b. (A + B) + C = A + (B + C) c. AB = BA d. A + AB = A 2. The Boolean equation AB + AC = A(B+ C) illustrates a. the distribution law b. the commutative law c. the associative law d. DeMorgan’s theorem
  • 77. Slide 77 3. The Boolean expression A . 1 is equal to a. A b. B c. 0 d. 1 4. The Boolean expression A + 1 is equal to a. A b. B c. 0 d. 1
  • 78. Slide 78 5. The Boolean equation AB + AC = A(B+ C) illustrates a. the distribution law b. the commutative law c. the associative law d. DeMorgan’s theorem 6. A Boolean expression that is in standard SOP form is a. the minimum logic expression b. contains only one product term c. has every variable in the domain in every term d. none of the above
  • 79. Slide 79 Answers: 1. b 2. c 3. a 4. d 5. a 6. c The end