SlideShare a Scribd company logo
Er. Nawaraj Bhandari
Digital Logic
Chapter 2:
Boolean algebra and Logic Gates
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.”
 Boolean expressions are created by performing operations on
Boolean variables.
 Common Boolean operators include AND, OR, and NOT.
3
 A Boolean operator can be
completely described using a truth
table.
 The truth table for the Boolean
operators AND and OR are shown
at the right.
 The AND operator is also known as
a Boolean product. The OR
operator is the Boolean sum.
Boolean algebra & Truth Table
4
Boolean Algebra
 The truth table for the
Boolean NOT operator is
shown at the right.
 The NOT operation is most
often designated by an
overbar. It is sometimes
indicated by a prime mark ( ‘
) or an “elbow” ().
Boolean algebra
5
Boolean Algebra
 A Boolean function has:
• At least one Boolean variable,
• At least one Boolean operator, and
• At least one input from the set {0,1}.
 It produces an output that is also a member of
the set {0,1}.
Basic Theory of Boolean Algebra
 Some basic laws for Boolean Algebra
A . 0 = 0 where A can be either 0 or 1.
A . 1 = A where A can be either 0 or 1.
A . A = A where A can be either 0 or 1.
A . Ā = 0 where A can be either 0 or 1.
A + 0 = A where A can be either 0 or 1.
A + 1 = 1 where A can be either 0 or 1.
A + Ā = 1
A + A = A
A + B = B + A where A and B can be either 0 or 1.
A . B = B . A where A and B can be either 0 or 1.
Duality theorem
Dual of the Boolean expression is derived by:
 Replacing AND operation by OR
 Replacing OR operation by AND
 All 1's are changed to 0
 All 0's are changed to 1
 Variables and complements are left unchanged.
 Example: X+Y'Z+0 = (0+X).(Y'+Z).1 XY'+XYZ+YZ' = (X+Y').(X+Y+Z).(Y+Z')
Postulates
(1) A + 0 = A A · 1 = A identity
(2) A + NOT[A] = 1 A · NOT[A] = 0 complement
(3) A + B = B + A A · B = B · A commutative law
(4)
A + (B + C) = (A + B) +
C
A · (B · C) = (A · B) · C associative law
(5)
A + (B · C) = (A + B) · (A
+ C)
A · (B + C) = (A · B) + (A
· C)
distributive law
De Morgan's theorem
 First Theorem:
 The De-Morgan's first theorem states that, "The complement of a sum
equals to the product of the complements".
 i.e. (A+B)'=A'.B’
De Morgan's theorem
De Morgan's theorem
Second Theorem:
De Morgan's second theorem states that, "The complement of a product is
equal to the sum of the complements."
i.e. (A.B)'=A'+B'
De Morgan's theorem
Introduction to Logic Gates
AND Gate
It is an electronic circuit, which generates an output signal of 1 if and only
if all input signals are also 1
An AND gate is the physical realization of the logical multiplication ( AND
operation
AND Gate
AND Gate
AND Gate
AND Gate
OR Gate
 It is an electronic circuit, which generates an output signal of 1, if any
of the output signals is 1
 It is the physical realization of logical OR
OR Gate
OR Gate
OR Gate
OR Gate
NOT Gate
 It is an electronic circuit that generates an output signal, which is
reverse of input signal
 It is the physical realization of complementation operation
 Not Gate is also called inverter because it inverts the input
NOT Gate
NOT Gate
NAND Gate
 Not AND Gate - NOT + AND gate It is a combination of NOT and AND
gates It is Complemented AND Gate
 Symbol of NAND gate
NAND Gate
NAND Gate
NOR Gate
NOR Gate
Chapter 2: Boolean Algebra and Logic Gates
Universal gates
 A universal gate is a gate which can implement any Boolean function without
need to use any other gate type.
 The NAND and NOR gates are universal gates. In practice, this is
advantageous since NAND and NOR gates are economical and easier to
fabricate and are the basic gates used in all.
 NAND Gate is a Universal Gate :-To prove that any Boolean function can be
implemented using only NAND gates, we will show that the AND, OR, and
NOT operations can be performed using only these gates.
 Implementing an Inverter Using only NAND Gate: All NAND input pins
connected to the input signal A gives an output A’.
Implementing AND Using only NAND Gates: The AND is replaced by a NAND
gate with its output complemented by a NAND gate inverter.
Implementing OR Using only NAND Gates: The OR gate is replaced by a NAND gate
with all its inputs complemented by NAND gate inverters.
NOR Gate is a Universal Gate:
 To prove that any Boolean function cannot be
implemented using only NOR gates, we will show that the
AND, OR, and NOT operations can be performed using
only these gates.
NOT gate A+B
Complement of a function
 The complement of a function F is F' and is obtained from an interchange of 0's for 1's and
1's for 0's in the value of F.
 Two ways of getting complement of a Boolean function:
 1. Applying De-Morgan’s theorem as many times as necessary
 For example: -
 Find the complement of the function F1 and F2.
 The complement of F1 is F1’ where F1=(x'yz' + x'y'z) so
 F1 ‘=(x'yz' + x'y'z)’
 = (x'yz')'(x'y'z)'
 = (x + y' + z)(x + y + z')
 F2' = [x(y'z' + yz)]'
 = x' + (y'z' + yz)'
 = x' + (y'z')'· (yz)'
 = x' + (y + z)(y' + z')
ANY QUESTIONS?

More Related Content

PPTX
Database Design
PPTX
BOOLEAN ALGEBRA AND LOGIC GATE
PPTX
Combinational circuit
PPTX
K - Map
PPT
13 Boolean Algebra
PPTX
Combinational circuits
PPTX
C++ Overview PPT
PPTX
Computer arithmetic
Database Design
BOOLEAN ALGEBRA AND LOGIC GATE
Combinational circuit
K - Map
13 Boolean Algebra
Combinational circuits
C++ Overview PPT
Computer arithmetic

What's hot (20)

PPTX
Nand and nor as a universal gates
PPTX
Logic Gates
PPT
Logic gates presentation
PPTX
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
PPTX
Logic gates and NAND and NOR univarsal gates
PPT
multiplexers and demultiplexers
PPT
Half adder & full adder
PPTX
sequential circuits
PPTX
SHIFT REGISTERS
PPT
Combinational circuits
PPT
Karnaugh map
PPTX
Introduction to digital logic
PPTX
Latches and flip flops
PPTX
PPTX
What is Gray Code?
PPTX
Basic theorems and properties of boolean algebra
PPTX
Number system in Digital Electronics
PDF
BASIC LOGIC GATES.pdf
PPT
Digital Logic & Design (DLD) presentation
PPT
STLD-Combinational logic design
Nand and nor as a universal gates
Logic Gates
Logic gates presentation
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates and NAND and NOR univarsal gates
multiplexers and demultiplexers
Half adder & full adder
sequential circuits
SHIFT REGISTERS
Combinational circuits
Karnaugh map
Introduction to digital logic
Latches and flip flops
What is Gray Code?
Basic theorems and properties of boolean algebra
Number system in Digital Electronics
BASIC LOGIC GATES.pdf
Digital Logic & Design (DLD) presentation
STLD-Combinational logic design
Ad

Similar to Chapter 2: Boolean Algebra and Logic Gates (20)

PPTX
Logic gates ,flip flop ,registers and
PPTX
Boolean Aljabra.pptx of dld and computer
PPTX
Boolean Logic.pptx
PPT
boolean algrebra and logic gates in short
PDF
1,basic and derived logic gates.pdf
PDF
Chapter 2.pdf
PPTX
Boolean algebra
PPTX
Digital electronics
PPTX
Chapter 3 computer Boolean Algebra 2[1].pptx
PDF
boolean-algebra.pdf
PPTX
chapter 3 Boolean algebra (2).pptx
PDF
Boolean Algebra
PDF
Boolen Algebra Lecture Notes.pdf
PDF
Boolean Algebra.pdf
PPTX
FALLSEM2022-23_BECE102L_TH_VL2022230104428_Reference_Material_I_25-07-2022_Mo...
PDF
Lecture 03 Logic gate and boolean algebra.pdf
PPTX
"The Building Blocks of Digital Systems". This title highlights their fundame...
PPT
BOOLEAN ALGEBRA & LOGIC GATES.ppt
PPT
Digital logic gates and Boolean algebra
PPTX
Chapter 4. logic function and boolean algebra
Logic gates ,flip flop ,registers and
Boolean Aljabra.pptx of dld and computer
Boolean Logic.pptx
boolean algrebra and logic gates in short
1,basic and derived logic gates.pdf
Chapter 2.pdf
Boolean algebra
Digital electronics
Chapter 3 computer Boolean Algebra 2[1].pptx
boolean-algebra.pdf
chapter 3 Boolean algebra (2).pptx
Boolean Algebra
Boolen Algebra Lecture Notes.pdf
Boolean Algebra.pdf
FALLSEM2022-23_BECE102L_TH_VL2022230104428_Reference_Material_I_25-07-2022_Mo...
Lecture 03 Logic gate and boolean algebra.pdf
"The Building Blocks of Digital Systems". This title highlights their fundame...
BOOLEAN ALGEBRA & LOGIC GATES.ppt
Digital logic gates and Boolean algebra
Chapter 4. logic function and boolean algebra
Ad

More from Er. Nawaraj Bhandari (20)

PPTX
Data mining approaches and methods
PPTX
Research trends in data warehousing and data mining
PPTX
Mining Association Rules in Large Database
PPTX
Introduction to data mining and data warehousing
PPTX
Data warehouse testing
PPTX
Data warehouse physical design
PPTX
Data warehouse logical design
PPTX
Classification and prediction in data mining
PPTX
Chapter 3: Simplification of Boolean Function
PPTX
Chapter 6: Sequential Logic
PPTX
Chapter 5: Cominational Logic with MSI and LSI
PPTX
Chapter 4: Combinational Logic
PPTX
Chapter 1: Binary System
PPTX
Introduction to Electronic Commerce
PPT
Evaluating software development
PPT
Using macros in microsoft excel part 2
PPT
Using macros in microsoft excel part 1
PPTX
Using macros in microsoft access
PPTX
Testing software development
PPTX
Application software and business processes
Data mining approaches and methods
Research trends in data warehousing and data mining
Mining Association Rules in Large Database
Introduction to data mining and data warehousing
Data warehouse testing
Data warehouse physical design
Data warehouse logical design
Classification and prediction in data mining
Chapter 3: Simplification of Boolean Function
Chapter 6: Sequential Logic
Chapter 5: Cominational Logic with MSI and LSI
Chapter 4: Combinational Logic
Chapter 1: Binary System
Introduction to Electronic Commerce
Evaluating software development
Using macros in microsoft excel part 2
Using macros in microsoft excel part 1
Using macros in microsoft access
Testing software development
Application software and business processes

Recently uploaded (20)

PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Artificial Intelligence
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Current and future trends in Computer Vision.pptx
PPTX
Construction Project Organization Group 2.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PPTX
Sustainable Sites - Green Building Construction
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPT
Mechanical Engineering MATERIALS Selection
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Foundation to blockchain - A guide to Blockchain Tech
additive manufacturing of ss316l using mig welding
Artificial Intelligence
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
UNIT 4 Total Quality Management .pptx
Current and future trends in Computer Vision.pptx
Construction Project Organization Group 2.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
III.4.1.2_The_Space_Environment.p pdffdf
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Fundamentals of safety and accident prevention -final (1).pptx
Sustainable Sites - Green Building Construction
Safety Seminar civil to be ensured for safe working.
R24 SURVEYING LAB MANUAL for civil enggi
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Mechanical Engineering MATERIALS Selection
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT

Chapter 2: Boolean Algebra and Logic Gates

  • 1. Er. Nawaraj Bhandari Digital Logic Chapter 2: Boolean algebra and Logic Gates
  • 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.”  Boolean expressions are created by performing operations on Boolean variables.  Common Boolean operators include AND, OR, and NOT.
  • 3. 3  A Boolean operator can be completely described using a truth table.  The truth table for the Boolean operators AND and OR are shown at the right.  The AND operator is also known as a Boolean product. The OR operator is the Boolean sum. Boolean algebra & Truth Table
  • 4. 4 Boolean Algebra  The truth table for the Boolean NOT operator is shown at the right.  The NOT operation is most often designated by an overbar. It is sometimes indicated by a prime mark ( ‘ ) or an “elbow” (). Boolean algebra
  • 5. 5 Boolean Algebra  A Boolean function has: • At least one Boolean variable, • At least one Boolean operator, and • At least one input from the set {0,1}.  It produces an output that is also a member of the set {0,1}.
  • 6. Basic Theory of Boolean Algebra  Some basic laws for Boolean Algebra A . 0 = 0 where A can be either 0 or 1. A . 1 = A where A can be either 0 or 1. A . A = A where A can be either 0 or 1. A . Ā = 0 where A can be either 0 or 1. A + 0 = A where A can be either 0 or 1. A + 1 = 1 where A can be either 0 or 1. A + Ā = 1 A + A = A A + B = B + A where A and B can be either 0 or 1. A . B = B . A where A and B can be either 0 or 1.
  • 7. Duality theorem Dual of the Boolean expression is derived by:  Replacing AND operation by OR  Replacing OR operation by AND  All 1's are changed to 0  All 0's are changed to 1  Variables and complements are left unchanged.  Example: X+Y'Z+0 = (0+X).(Y'+Z).1 XY'+XYZ+YZ' = (X+Y').(X+Y+Z).(Y+Z')
  • 8. Postulates (1) A + 0 = A A · 1 = A identity (2) A + NOT[A] = 1 A · NOT[A] = 0 complement (3) A + B = B + A A · B = B · A commutative law (4) A + (B + C) = (A + B) + C A · (B · C) = (A · B) · C associative law (5) A + (B · C) = (A + B) · (A + C) A · (B + C) = (A · B) + (A · C) distributive law
  • 9. De Morgan's theorem  First Theorem:  The De-Morgan's first theorem states that, "The complement of a sum equals to the product of the complements".  i.e. (A+B)'=A'.B’
  • 11. De Morgan's theorem Second Theorem: De Morgan's second theorem states that, "The complement of a product is equal to the sum of the complements." i.e. (A.B)'=A'+B'
  • 13. Introduction to Logic Gates AND Gate It is an electronic circuit, which generates an output signal of 1 if and only if all input signals are also 1 An AND gate is the physical realization of the logical multiplication ( AND operation
  • 18. OR Gate  It is an electronic circuit, which generates an output signal of 1, if any of the output signals is 1  It is the physical realization of logical OR
  • 23. NOT Gate  It is an electronic circuit that generates an output signal, which is reverse of input signal  It is the physical realization of complementation operation  Not Gate is also called inverter because it inverts the input
  • 26. NAND Gate  Not AND Gate - NOT + AND gate It is a combination of NOT and AND gates It is Complemented AND Gate  Symbol of NAND gate
  • 32. Universal gates  A universal gate is a gate which can implement any Boolean function without need to use any other gate type.  The NAND and NOR gates are universal gates. In practice, this is advantageous since NAND and NOR gates are economical and easier to fabricate and are the basic gates used in all.  NAND Gate is a Universal Gate :-To prove that any Boolean function can be implemented using only NAND gates, we will show that the AND, OR, and NOT operations can be performed using only these gates.  Implementing an Inverter Using only NAND Gate: All NAND input pins connected to the input signal A gives an output A’.
  • 33. Implementing AND Using only NAND Gates: The AND is replaced by a NAND gate with its output complemented by a NAND gate inverter. Implementing OR Using only NAND Gates: The OR gate is replaced by a NAND gate with all its inputs complemented by NAND gate inverters.
  • 34. NOR Gate is a Universal Gate:  To prove that any Boolean function cannot be implemented using only NOR gates, we will show that the AND, OR, and NOT operations can be performed using only these gates. NOT gate A+B
  • 35. Complement of a function  The complement of a function F is F' and is obtained from an interchange of 0's for 1's and 1's for 0's in the value of F.  Two ways of getting complement of a Boolean function:  1. Applying De-Morgan’s theorem as many times as necessary  For example: -  Find the complement of the function F1 and F2.  The complement of F1 is F1’ where F1=(x'yz' + x'y'z) so  F1 ‘=(x'yz' + x'y'z)’  = (x'yz')'(x'y'z)'  = (x + y' + z)(x + y + z')  F2' = [x(y'z' + yz)]'  = x' + (y'z' + yz)'  = x' + (y'z')'· (yz)'  = x' + (y + z)(y' + z')