SlideShare uma empresa Scribd logo
1 de 79
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

Mais conteúdo relacionado

Mais procurados

Combinational Circuits & Sequential Circuits
Combinational Circuits & Sequential CircuitsCombinational Circuits & Sequential Circuits
Combinational Circuits & Sequential Circuitsgourav kottawar
 
Logic simplification sop and pos forms
Logic simplification sop and pos formsLogic simplification sop and pos forms
Logic simplification sop and pos formsManesh T
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic GatesKumar
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decodersGaditek
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits DrSonali Vyas
 
Laws of boolean algebra
Laws of boolean algebraLaws of boolean algebra
Laws of boolean algebraArunaDevi63
 
KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)mihir jain
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital ElectronicsJanki Shah
 
NAND and NOR implementation and Other two level implementation
NAND and NOR implementation and  Other two level implementationNAND and NOR implementation and  Other two level implementation
NAND and NOR implementation and Other two level implementationMuhammad Akhtar
 
carry look ahead adder
carry look ahead addercarry look ahead adder
carry look ahead adderASHISH MANI
 
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic Gates
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic GatesFYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic Gates
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic GatesArti Parab Academics
 
Half adder & full adder
Half adder & full adderHalf adder & full adder
Half adder & full adderGaditek
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA Shaik Aman
 

Mais procurados (20)

Combinational Circuits & Sequential Circuits
Combinational Circuits & Sequential CircuitsCombinational Circuits & Sequential Circuits
Combinational Circuits & Sequential Circuits
 
Logic simplification sop and pos forms
Logic simplification sop and pos formsLogic simplification sop and pos forms
Logic simplification sop and pos forms
 
K - Map
  K - Map    K - Map
K - Map
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
 
Bcd
BcdBcd
Bcd
 
Logic gates presentation
Logic gates presentationLogic gates presentation
Logic gates presentation
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
 
Laws of boolean algebra
Laws of boolean algebraLaws of boolean algebra
Laws of boolean algebra
 
Karnaugh map
Karnaugh mapKarnaugh map
Karnaugh map
 
KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoder
 
Digital Logic circuit
Digital Logic circuitDigital Logic circuit
Digital Logic circuit
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
NAND and NOR implementation and Other two level implementation
NAND and NOR implementation and  Other two level implementationNAND and NOR implementation and  Other two level implementation
NAND and NOR implementation and Other two level implementation
 
carry look ahead adder
carry look ahead addercarry look ahead adder
carry look ahead adder
 
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic Gates
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic GatesFYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic Gates
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic Gates
 
Basics of digital electronics
Basics of digital electronicsBasics of digital electronics
Basics of digital electronics
 
Half adder & full adder
Half adder & full adderHalf adder & full adder
Half adder & full adder
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA
 

Semelhante a 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_gatesImran 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).pptmichaelaaron25322
 
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 gatesRai University
 
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdfsiliconvalley6203
 
Principles of Combinational Logic-1
Principles of Combinational Logic-1Principles of Combinational Logic-1
Principles of Combinational Logic-1Supanna Shirguppe
 
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 theoremsarunachalamr16
 
4 logic circuit optimisation
4 logic circuit optimisation4 logic circuit optimisation
4 logic circuit optimisationchandkec
 
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 componentRai 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 componentRai University
 
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
 
digital logic circuits, digital component
 digital logic circuits, digital component digital logic circuits, digital component
digital logic circuits, digital componentRai 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.pdfShirazHusain4
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebraRobert Geofroy
 

Semelhante a 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
 
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
 
Minimizing boolean
Minimizing booleanMinimizing boolean
Minimizing boolean
 

Mais de Unsa Shakir

Single diode circuits
Single diode circuitsSingle diode circuits
Single diode circuitsUnsa Shakir
 
Silicon control rectifier
Silicon control rectifierSilicon control rectifier
Silicon control rectifierUnsa Shakir
 
Operational amplifier
Operational amplifierOperational amplifier
Operational amplifierUnsa Shakir
 
Diode voltage multiplier
Diode voltage multiplierDiode voltage multiplier
Diode voltage multiplierUnsa Shakir
 
Types of transistors
Types of transistorsTypes of transistors
Types of transistorsUnsa Shakir
 
Clipper and clamper circuits
Clipper and clamper circuitsClipper and clamper circuits
Clipper and clamper circuitsUnsa Shakir
 
kinds of distribution
 kinds of distribution kinds of distribution
kinds of distributionUnsa Shakir
 
Probability of card
Probability of  cardProbability of  card
Probability of cardUnsa Shakir
 
hypothesis test
 hypothesis test hypothesis test
hypothesis testUnsa Shakir
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regressionUnsa Shakir
 
counting techniques
counting techniquescounting techniques
counting techniquesUnsa Shakir
 
analytical representation of data
 analytical representation of data analytical representation of data
analytical representation of dataUnsa Shakir
 
frequency distribution
 frequency distribution frequency distribution
frequency distributionUnsa Shakir
 
graphic representations in statistics
 graphic representations in statistics graphic representations in statistics
graphic representations in statisticsUnsa Shakir
 
introduction to statistical theory
introduction to statistical theoryintroduction to statistical theory
introduction to statistical theoryUnsa Shakir
 

Mais de 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
 

Último

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfrs7054576148
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 

Último (20)

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 

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