SlideShare ist ein Scribd-Unternehmen logo
1 von 35
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 2
Session 7: Focus
 Introduction to Boolean Algebra
 Ordinary Algebra Vs Boolean Algebra
 Boolean Expressions
◦ Variables, literals and terms
◦ Complement and Dual
 Laws of Boolean Algebra
 Rules of Boolean Algebra
◦ Rules 1 to 6
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Introduction to Boolean Algebra
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 4
George Boole
 George Boole (2 November 1815 – 8 December 1864)
 He was an English mathematician, educator, philosopher and logician.
 He worked in the fields of differential equations and algebraic logic,
and is best known as the author of The Laws of Thought (1854)
which contains Boolean algebra.
 Boolean logic is credited with laying the foundations for the
information age.
4
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 5
Boolean Algebra
 Founded by George Boole, in 1854.
 Boolean algebra is mathematics of logic, a
systematic way of expressing and analyzing the
operations of logic circuits
 It is one of the most basic tools available to the logic
designer
◦ It can be effectively used for simplification of complex
logic expressions
 Now, let us have a closer look at the different
postulates and theorems of Boolean algebra
 Their applications in minimizing Boolean
expressions
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 6
Introduction to Boolean Algebra
 Boolean algebra, quite interestingly, is simpler than
ordinary algebra.
 It is also composed of a set of symbols and a set of
rules to manipulate these symbols
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Ordinary Algebra
Vs
Boolean Algebra
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 8
Ordinary Algebra Vs Boolean Algebra
Ordinary Algebra Boolean Algebra
Letter symbols can take on any
number of values including infinity
Letter symbols can take on either of
two values, that is, 0 and 1
Values assigned to a variable have a
numerical significance
Values assigned to a variable have a
logical significance
‘.’ and ‘+’ are respectively the signs
of multiplication and addition
‘.’ means an AND operation and ‘+’
means an OR operation
A+B is read as A plus B A+B is read as A OR B
Basic logic operations are AND, OR and
NOT
Captures both logic operations and
set operations such as intersection,
union and complement
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 9
Ordinary Algebra Vs Boolean Algebra
Ordinary Algebra Boolean Algebra
Letter symbols can take on any
number of values including infinity
Letter symbols can take on either of
two values, that is, 0 and 1
Values assigned to a variable have a
numerical significance
Values assigned to a variable have a
logical significance
‘.’ and ‘+’ are respectively the signs
of multiplication and addition
‘.’ means an AND operation and ‘+’
means an OR operation
A+B is read as A plus B A+B is read as A OR B
Basic logic operations are AND, OR and
NOT
Captures both logic operations and
set operations such as intersection,
union and complement
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Boolean Expressions
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 11
Variables, Literals and Terms
 Variables are different symbols in a Boolean
expression
 They may take on the values ‘0’ or ‘1’
 Complement of a variable is not considered as a
separate variable
 Each occurrence of a variable or its complement is
called a literal
Variables :
Literals :
Terms :
 A term is the expression formed by literals
and operations at one level.
 Each term requires a gate and each
variable within the term designates an
input to the gate
2
3
2
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 12
Quiz 1: Variables, Literals and Terms
 How many Variables, literals and Terms are there in these
two Boolean expressions?
 How many gates are needed to construct them?
Boolean Expressions Variables Literals Terms Gates
3 8
3 4 2
3 NOT : 2
AND : 3
OR : 1
NOT : 2
AND : 2
OR : 1
Note: Assume both 2-input and 3-input gates are available to construct these expressions,
without minimization.
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Equivalent and Complement
of
Boolean Expressions
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 14
Equivalent and Complement of
Boolean Expressions
 Two given Boolean expressions are said to be
equivalent
◦ If one of them equals ‘1’ only when the other equals ‘1’
and also one equals ‘0’ only when the other equals ‘0’
 They are said to be the complement of each other
◦ If one expression equals ‘1’ only when the other equals
‘0’, and vice versa
 The complement of a given Boolean expression is
obtained by
◦ Complementing each literal,
◦ Changing all ‘.’ to ‘+’ and all ‘+’ to ‘.’, all 0s to 1s and all
1s to 0s.
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 15
Quiz 2: Find Complements
 Find the complement of below Boolean expressions:
Boolean Expression Complement
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Dual
of
Boolean Expressions
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 17
Dual of Boolean Expressions
The dual of a Boolean expression is obtained by
replacing
 All ‘.’ operations with ‘+’ operations
 All ‘+’ operations with ‘.’ operations,
 All 0s with 1s and all 1s with 0s and
 Leaving all literals unchanged
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 18
Quiz 2: Find Dual
 Find the dual of below Boolean expressions:
Boolean Expression Dual
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 19
Quiz 3: Find Dual and Complement
 Find the dual and Complement of below Boolean expression:
Boolean Expression
Dual
Complement
[(A+ ). + D]. + FB C E
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 20
What is Dual of a Boolean Expression?
The principle of duality pronounces that given
an expression which is always valid
in boolean algebra,
the dual expression is also always valid
 For example:
◦ A (B + C) = A . B + A . C
◦ It’s dual is also valid
◦ A + (B . C) = (A + B) . (A + C)
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Laws
of
Boolean Algebra
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 22
Laws of Boolean Algebra
 The basic laws of Boolean algebra are:
 Commutative laws for addition and multiplication
 Associative laws for addition and multiplication
 Distributive law
 Each law is illustrated with two or three variables,
but the number of variables is not limited to this
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 23
Commutative Laws
 Commutative law of addition (OR) for two
variables is written as:
 A + B = B + A
 Commutative law of multiplication (AND) for two
variables is written as:
 A . B = B . A : it can also be written as AB = BA
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 24
Associative Laws
 Associative law of addition (OR) for three
variables is written as:
 A + (B + C) = (A + B) + C
 Associative law of multiplication (AND) for three
variables is written as:
 A . (B . C) = (A . B) . C
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 25
Distributive Law
 Distributive law for three variables can be written
as:
 A . (B + C) = (A . B) + (A . C)
Note that only . over + is distributive.
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Rules
of
Boolean Algebra
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 27
Rules of Boolean Algebra
 A, B or C can represent a single variable or a combination of
variables
 These 12 rules are useful in simplifying Boolean expressions
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 28
Rule 1
 A + 0 = A
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 29
Rule 2
 A + 1 = 1
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 30
Rule 3
 A . 0 = 0
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 31
Rule 4
 A . 1 = A
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 32
Rule 5
 A + A = A (Idempotent or Identity Law)
 Valid for any number of the same input:
 A + A + A + + + + A = A
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 33
Rule 6
 A + = 1A
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 34
Session 7: Summary
 Introduction to Boolean Algebra
 Ordinary Algebra Vs Boolean Algebra
 Boolean Expressions
◦ Variables, literals and terms
◦ Complement and Dual
 Laws of Boolean Algebra
 Rules of Boolean Algebra
◦ Rules 1 to 6
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 35
References
Ref 1 Ref 2

Weitere ähnliche Inhalte

Was ist angesagt?

idea selection 3
idea selection 3idea selection 3
idea selection 3salmanxox
 

Was ist angesagt? (16)

Digital Design Course Summary
 Digital Design Course Summary Digital Design Course Summary
Digital Design Course Summary
 
Digital Design Session 3
Digital Design Session 3Digital Design Session 3
Digital Design Session 3
 
Digital Design Session 28
Digital Design Session 28Digital Design Session 28
Digital Design Session 28
 
Digital Design Session 14
Digital Design Session 14Digital Design Session 14
Digital Design Session 14
 
Digital Design Session 17
Digital Design Session 17Digital Design Session 17
Digital Design Session 17
 
Digital Design Session 25
Digital Design Session 25Digital Design Session 25
Digital Design Session 25
 
Digital Design Session 22
Digital Design Session 22Digital Design Session 22
Digital Design Session 22
 
Digital Design Session 27
Digital Design Session 27Digital Design Session 27
Digital Design Session 27
 
Digital Design Session 29
Digital Design Session 29Digital Design Session 29
Digital Design Session 29
 
Digital Design Session 21
Digital Design Session 21Digital Design Session 21
Digital Design Session 21
 
Digital Design Session 18
Digital Design Session 18Digital Design Session 18
Digital Design Session 18
 
Digital Design Session 20
Digital Design Session 20Digital Design Session 20
Digital Design Session 20
 
Digital Design Session 19
Digital Design Session 19Digital Design Session 19
Digital Design Session 19
 
Digital Design Session 15
Digital Design Session 15Digital Design Session 15
Digital Design Session 15
 
idea selection 3
idea selection 3idea selection 3
idea selection 3
 
Digital Design Session 24
Digital Design Session 24Digital Design Session 24
Digital Design Session 24
 

Mehr von International Institute of Information Technology - Bangalore (7)

Digital Design Session 26
Digital Design Session 26Digital Design Session 26
Digital Design Session 26
 
Digital Design Session 23
Digital Design Session 23Digital Design Session 23
Digital Design Session 23
 
Digital Design Session 16
Digital Design Session 16Digital Design Session 16
Digital Design Session 16
 
Digital Design Session 13
Digital Design Session 13Digital Design Session 13
Digital Design Session 13
 
Digital Design Session 11
Digital Design Session 11Digital Design Session 11
Digital Design Session 11
 
Digital Design Session 6
Digital Design Session 6Digital Design Session 6
Digital Design Session 6
 
Basic Electric Circuits Tutorial 7
Basic Electric Circuits Tutorial 7Basic Electric Circuits Tutorial 7
Basic Electric Circuits Tutorial 7
 

Kürzlich hochgeladen

Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewsandhya757531
 
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHSneha Padhiar
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfDrew Moseley
 
Cost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionCost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionSneha Padhiar
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork
 
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsResearcher Researcher
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTSneha Padhiar
 
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书rnrncn29
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONjhunlian
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating SystemRashmi Bhat
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Coursebim.edu.pl
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosVictor Morales
 
OOP concepts -in-Python programming language
OOP concepts -in-Python programming languageOOP concepts -in-Python programming language
OOP concepts -in-Python programming languageSmritiSharma901052
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdfAkritiPradhan2
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Erbil Polytechnic University
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communicationpanditadesh123
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 

Kürzlich hochgeladen (20)

Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overview
 
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdf
 
Cost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionCost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based question
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
 
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending Actuators
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
 
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating System
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Course
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitos
 
OOP concepts -in-Python programming language
OOP concepts -in-Python programming languageOOP concepts -in-Python programming language
OOP concepts -in-Python programming language
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communication
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 

Digital Design Session 7

  • 1. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
  • 2. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 2 Session 7: Focus  Introduction to Boolean Algebra  Ordinary Algebra Vs Boolean Algebra  Boolean Expressions ◦ Variables, literals and terms ◦ Complement and Dual  Laws of Boolean Algebra  Rules of Boolean Algebra ◦ Rules 1 to 6
  • 3. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Introduction to Boolean Algebra
  • 4. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 4 George Boole  George Boole (2 November 1815 – 8 December 1864)  He was an English mathematician, educator, philosopher and logician.  He worked in the fields of differential equations and algebraic logic, and is best known as the author of The Laws of Thought (1854) which contains Boolean algebra.  Boolean logic is credited with laying the foundations for the information age. 4
  • 5. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 5 Boolean Algebra  Founded by George Boole, in 1854.  Boolean algebra is mathematics of logic, a systematic way of expressing and analyzing the operations of logic circuits  It is one of the most basic tools available to the logic designer ◦ It can be effectively used for simplification of complex logic expressions  Now, let us have a closer look at the different postulates and theorems of Boolean algebra  Their applications in minimizing Boolean expressions
  • 6. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 6 Introduction to Boolean Algebra  Boolean algebra, quite interestingly, is simpler than ordinary algebra.  It is also composed of a set of symbols and a set of rules to manipulate these symbols
  • 7. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Ordinary Algebra Vs Boolean Algebra
  • 8. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 8 Ordinary Algebra Vs Boolean Algebra Ordinary Algebra Boolean Algebra Letter symbols can take on any number of values including infinity Letter symbols can take on either of two values, that is, 0 and 1 Values assigned to a variable have a numerical significance Values assigned to a variable have a logical significance ‘.’ and ‘+’ are respectively the signs of multiplication and addition ‘.’ means an AND operation and ‘+’ means an OR operation A+B is read as A plus B A+B is read as A OR B Basic logic operations are AND, OR and NOT Captures both logic operations and set operations such as intersection, union and complement
  • 9. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 9 Ordinary Algebra Vs Boolean Algebra Ordinary Algebra Boolean Algebra Letter symbols can take on any number of values including infinity Letter symbols can take on either of two values, that is, 0 and 1 Values assigned to a variable have a numerical significance Values assigned to a variable have a logical significance ‘.’ and ‘+’ are respectively the signs of multiplication and addition ‘.’ means an AND operation and ‘+’ means an OR operation A+B is read as A plus B A+B is read as A OR B Basic logic operations are AND, OR and NOT Captures both logic operations and set operations such as intersection, union and complement
  • 10. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Boolean Expressions
  • 11. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 11 Variables, Literals and Terms  Variables are different symbols in a Boolean expression  They may take on the values ‘0’ or ‘1’  Complement of a variable is not considered as a separate variable  Each occurrence of a variable or its complement is called a literal Variables : Literals : Terms :  A term is the expression formed by literals and operations at one level.  Each term requires a gate and each variable within the term designates an input to the gate 2 3 2
  • 12. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 12 Quiz 1: Variables, Literals and Terms  How many Variables, literals and Terms are there in these two Boolean expressions?  How many gates are needed to construct them? Boolean Expressions Variables Literals Terms Gates 3 8 3 4 2 3 NOT : 2 AND : 3 OR : 1 NOT : 2 AND : 2 OR : 1 Note: Assume both 2-input and 3-input gates are available to construct these expressions, without minimization.
  • 13. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Equivalent and Complement of Boolean Expressions
  • 14. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 14 Equivalent and Complement of Boolean Expressions  Two given Boolean expressions are said to be equivalent ◦ If one of them equals ‘1’ only when the other equals ‘1’ and also one equals ‘0’ only when the other equals ‘0’  They are said to be the complement of each other ◦ If one expression equals ‘1’ only when the other equals ‘0’, and vice versa  The complement of a given Boolean expression is obtained by ◦ Complementing each literal, ◦ Changing all ‘.’ to ‘+’ and all ‘+’ to ‘.’, all 0s to 1s and all 1s to 0s.
  • 15. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 15 Quiz 2: Find Complements  Find the complement of below Boolean expressions: Boolean Expression Complement
  • 16. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Dual of Boolean Expressions
  • 17. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 17 Dual of Boolean Expressions The dual of a Boolean expression is obtained by replacing  All ‘.’ operations with ‘+’ operations  All ‘+’ operations with ‘.’ operations,  All 0s with 1s and all 1s with 0s and  Leaving all literals unchanged
  • 18. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 18 Quiz 2: Find Dual  Find the dual of below Boolean expressions: Boolean Expression Dual
  • 19. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 19 Quiz 3: Find Dual and Complement  Find the dual and Complement of below Boolean expression: Boolean Expression Dual Complement [(A+ ). + D]. + FB C E
  • 20. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 20 What is Dual of a Boolean Expression? The principle of duality pronounces that given an expression which is always valid in boolean algebra, the dual expression is also always valid  For example: ◦ A (B + C) = A . B + A . C ◦ It’s dual is also valid ◦ A + (B . C) = (A + B) . (A + C)
  • 21. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Laws of Boolean Algebra
  • 22. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 22 Laws of Boolean Algebra  The basic laws of Boolean algebra are:  Commutative laws for addition and multiplication  Associative laws for addition and multiplication  Distributive law  Each law is illustrated with two or three variables, but the number of variables is not limited to this
  • 23. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 23 Commutative Laws  Commutative law of addition (OR) for two variables is written as:  A + B = B + A  Commutative law of multiplication (AND) for two variables is written as:  A . B = B . A : it can also be written as AB = BA
  • 24. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 24 Associative Laws  Associative law of addition (OR) for three variables is written as:  A + (B + C) = (A + B) + C  Associative law of multiplication (AND) for three variables is written as:  A . (B . C) = (A . B) . C
  • 25. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 25 Distributive Law  Distributive law for three variables can be written as:  A . (B + C) = (A . B) + (A . C) Note that only . over + is distributive.
  • 26. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Rules of Boolean Algebra
  • 27. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 27 Rules of Boolean Algebra  A, B or C can represent a single variable or a combination of variables  These 12 rules are useful in simplifying Boolean expressions
  • 28. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 28 Rule 1  A + 0 = A
  • 29. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 29 Rule 2  A + 1 = 1
  • 30. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 30 Rule 3  A . 0 = 0
  • 31. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 31 Rule 4  A . 1 = A
  • 32. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 32 Rule 5  A + A = A (Idempotent or Identity Law)  Valid for any number of the same input:  A + A + A + + + + A = A
  • 33. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 33 Rule 6  A + = 1A
  • 34. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 34 Session 7: Summary  Introduction to Boolean Algebra  Ordinary Algebra Vs Boolean Algebra  Boolean Expressions ◦ Variables, literals and terms ◦ Complement and Dual  Laws of Boolean Algebra  Rules of Boolean Algebra ◦ Rules 1 to 6
  • 35. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 35 References Ref 1 Ref 2