SlideShare uma empresa Scribd logo
1 de 51
2.4.1 Boolean
  Expression

Learning Outcome:
  • Calculate the value of Boolean
  Expression
Boolean Expression
 Introduction
 Axioms of Boolean Algebra
 Basic Theorems
 Logical Addition (OR Operation)
 Logical Multiplication (AND Operation)
 Complementation
Introduction

 The basic rules for simplifying and combining logic
  gates are called Boolean algebra in honour of
  George Boole (1815-1864).
 There are two types of operator:
  Unary – NOT
  Binary – AND, OR
Axioms of Boolean Algebra
 For any elements a, b and c of the set B on which two binary
  operations (+ , .) and a unary operation denoted (-) or (~) or (ù)
  are defined (OR, AND, NOT respectively), and 0 and 1 denote
  two distinct elements of B. Then
   Commutative Laws
    a+b=b+a
    a.b=b.a
   Distributive Laws
     a + (b . c) = (a + b) . (a + c)
     a . (b + c) = (a . b) + (a . c)
   Identity Laws
    a+0=a
    a.1=a
   Complement Laws
    a+~a=1
    a.~a=0
Basic Theorems
 Let a, b, c be any three elements in a Boolean algebra B. Then
 Idempotent Laws
     a+a=a
     a.a=a
   Boundedness Laws
     a+1=1
     a.0=0
   Absorption Laws
     a + (a . b) = a
     a . (a + b) = a
   Associative Laws
     (a + b ) + c = a + (b + c)
     (a . b) . c = a . (b . c)
   (Uniqueness of Complement)
     If a + x = 1 and a . x = 0, then x = ~ a
 ~0=1~1=0
 De Morgan’s Laws:
Logical Addition (OR
Operation)
 Each variable in Boolean algebra has either of two values:
  true or false (l or 0).
 For instance, in logic equation, A + B = C, each of the
  variables A, B and C may have only the values 0 or 1.
 We can define the “+” symbol by listing all possible
  combinations for A and B and the resulting values of A + B.
Cont...
          Input             Output

    A                 B     C = A+B
    0                 0        0
    1                 0        1
    0                 1        1
    1                 1        1

                  Table 2
Cont...
 Above table is a truth table of logical addition and could
  represent binary addition table except for the last entry.
 The + symbol, therefore, does not have the normal meaning
  of arithmetic addition but is a logical addition and is referred
  as OR operation.
 The equation A + B = C can be read as A OR B equals C.
  This concept can be extended to any number of variables.
 To avoid ambiguity, a number of other symbols have been
  recommended as replacements for the + sign, for example,
  U and therefore A + B = C can be written as A ∪ B = C.
Logical Multiplication (AND
Operation)
  A second important operation in Boolean algebra is logical
   multiplication and is referred to as AND operation.
  The logical multiplication of two variables A and B is expressed as
   A.B and is read as A AND B. The Boolean equation for an AND
   gate can be written in as Y = A • B, Y = AB, or Y = A ∩ B.
  The truth table for logical multiplication of two variables is,

                   Input                         Output
            A                B                  C=A*B
            0                0                      0
            1                0                      0
            0                1                      0
            1                1                      1

                             Table 3
Complementation
 Boolean algebra uses an operation called complementation
  and this can be defined as ~0 = 1 and ~1 = 0.
 ~A means the complement of A and read as NOT A. The
  process of complementing is called negation,

                 Input                Output

                  A                   B=~A

                   0                    1

                   1                    0

                         Table 4
Exercise 1
Evaluate the following Boolean expressions:
l    1+1+1
l    1+1+0
l    1.1.1
l    1.1.0


Answer.
i) 1 + 1 + 1 = (1 + 1) + 1 = 1 + 1 = 1
j) 1 + 1 + 0 = (1 + 1) + 0 = 1 + 0 = 1
k) 1.1.1 = (1.1). 1 = 1.1 = 1
l) 1.1.0 = (1.1). 0 = 1.0 = 0
Exercise 2
Evaluate the following.
l 1. (1 + 0)
l (1 + 1). (1 + 0)
l (1.1) + (0.1)



Answer.
 As in ordinary arithmetic, Operations in parenthesis are done
   first.
i) 1. (1 + 0) = 1.1 = 1
j) (1+1). (1+0) = 1.1 = 1
k) (1.1) + (0.1) = 1 + 0 = 1
Exercise 3
Evaluate 1.1 + 0.1

Answer.
 In ordinary arithmetic, multiplication takes precedence over
  addition. The Boolean AND takes precedence over the
  Boolean OR.
   1.1 + 0.1 = 1 + 0 = 1


 This example illustrates that (1.1) + (0.1) is the same as 1.1
  + 0.1. The brackets are not needed. This is similar to (5 * 2)
  + (3 * 4) = 5 * 2 + 3 * 4. The brackets are not needed.
Exercise 4
  In ordinary mathematics we say that multiplication distributes over
  addition. For (4) 2(a + b) = 2a + 2b
  Does the AND operation distribute over the OR operation? For
  example, is 1. (1 + 0) = 1.1 + 1.0?

Answer.
 Left Side: 1. (1 + 0) = 1.1 = 1
 Right Side: 1.1 + 1.0 = 1 + 0 = 1
 Left side = Right side
 Hence, AND does distribute over OR
 It should be noted that distributive Law of AND over OR does
  hold in general in Boolean arithmetic.
2.4.2     Logic Gates

Learning Outcome:
  Identify symbol for logic gate
2.4.2      Logic Gates
 An electronic circuit operates on one or more
  input signals to produce an output signal.
 Gates are digital (two-state) circuits and can be
  analyzed with Boolean algebra.
 The circuit which performs OR operation is called
  OR gate
 The circuit which performs AND operation is
  called AND gate.
ELECTRICAL
SWITCHES
  Electrical switches are good examples to illustrate OR, AND
   and many Boolean theorems.
Cont....
 A switch has only two states: either closed or open. When the
  two switches are connected in parallel, the current will flow in
  the circuit when either switch is in closed position.
 The current will not flow at all when both switches are in open
  position.
 If the flowing current is taken as ON and not flowing as OFF,
  and assumed that closed = 1, open = 0, ON = 1 and OFF = 0,
  then behaviour of two switches can be tabulated as shown
  below.
 This is precisely the property described by the truth table for
  logical addition (OR operation).
Behaviour of two switches in
parallel
       Switch A              Switch B               Bulb C
  Open            (0)   Open            (0)   OFF            (0)

  Closed          (1)   Open            (0)   ON             (1)

  Open            (0)   Closed          (1)   ON             (1)

  Closed          (1)   Closed          (1)   ON             (1)

                           Table 5
Cont....
 When two switches connected in series as shown below, the
  lamp will light up when both A and B are closed. Table 6
  shows the behaviour of two switches in series circuit.
Behaviour of Two Switches in
Series
        Switch A              Switch B               Bulb C
 Open              (0)   Open            (0)   OFF            (0)

 Closed            (1)   Open            (0)   OFF            (0)

 Open              (0)   Closed          (1)   OFF            (0)

 Closed            (1)   Closed          (1)   ON             (1)

                          Table 6
Logic Gates
 These gates are AND gate, OR gate and NOT
 gate.
Cont...
 A gate will have one or more binary
 inputs of 0 or 1 but just one binary
 output.
 a) The AND and OR gates each have two binary
    inputs and one binary output.
 b) The NOT gate has one binary input and one
    binary output.
Truth Table
 A truth table is a good way to show the function
  of a logic gate.
 It shows the output states for every possible
  combination of input states.
 The symbols 0 (false) and 1 (true) are used in
  truth tables
 For a logic gate with n inputs, there are 2n entries
  in the truth table.
 Example: A logic gate with three inputs, A, B and
  C will contain 23 = 8 entries.
AND Truth Table



   Input A   Input B   Output A.B=Y

      1         1           1

      1         0           0

      0         1           0

      0         0           0
OR Truth Table



   Input A   Input B   Output A+B=Y

      1         1           1

      1         0           1

      0         1           1

      0         0           0
NOT Truth Table



       Input A   Output A’=Y

          0           1

          1           0
THE AND OPERATOR (.)
 The AND gates have two binary inputs and one binary
  output.




 The AND operator is written as (.).
 The symbol of AND is written as (∩).
AND Truth Table
AND Gate



 The AND gate produces a TRUE output, Y, if and only if
  both A and B are TRUE.
 Otherwise, the output is FALSE.
 The Boolean equation for an AND gate can be written in
  several ways: Y = A • B, Y = AB, or Y = A ∩ B.
 The ∩ symbol is pronounced "intersection”.
Cont...
 TRUE when all inputs are TRUE
OR OPERATOR(+)
 The OR gates have two binary inputs and one binary output.




 The OR operator is written as (+).
 The symbol of OR is write as (∪).
OR Truth Table
OR Gate



 The OR gate produces a TRUE output, Y if either A or B (or
  both) are TRUE.
 The Boolean equation for an OR gate is written as Y = A +
  B or Y = A ∪ B.
 The ∪ symbol is pronounced “union”.
 TRUE when any inputs are TRUE
Cont...
 TRUE when any inputs are TRUE
NOT OPERATOR (~)
 The NOT gate has one binary input and one binary
 output.




 The NOT A can be written as below:
  (~A), ( ), (¬A), (A’), (!A ).
NOT Gate
 The NOT gate's output is the inverse of its input. If A is
  FALSE, then Y is TRUE. If A is TRUE, then Y is FALSE.
 This relationship is summarized by the truth table and
  Boolean equation.
 The line over A in the Boolean equation is pronounced
  NOT, so Y is read as “Y equals NOT A”.
 The NOT gate is also called an inverter.
NOT Truth Table
 ~0 = 1 is read as NOT 0 equals to 1. It is important to
  remember that the NOT function inverts input.
 The NOT function takes an input of 0 and inverts it to
  provide an output of 1 and it takes an input of 1 and inverts it
  to provide an output of 0.
Cont...
Review Question
 Explain the following logic gates:

  Operator      Symbol       Gate      Input Gate, n   Input Truth
                                                        Table (2n)
    AND

     OR

    NOT

    NAND

    NOR
 Explain the following logic gates:

  Operator      Symbol           Gate   Input Gate, n   Input Truth
                                                         Table (2n)

    AND         ., ∩                         2              4

     OR         +, ∪                         2              4

             (~), ( ), (¬),
    NOT                                      1              2
                (’), (! ).

    NAND                                     2              4

    NOR                                      2              4

                              Table 7
Exercise
Write a boolean expression and draw the truth table to represent this
logic circuit diagram.


                   A

                   B
                                C
Answer
           A   B    C        Output (Y)
Y= A.B.C
           0   0     0           0

           0   0     1           0

           0   1     0           0

           0   1     1           0

           1   0     0           0
           1   0     1           0

           1   1     0           0

           1   1     1           1

                   Table 8
Exercise
Write a boolean expression and draw the truth table to represent this
logic circuit diagram.
Answer
               A   B    C        Output
Y= (A.B) + C
               0   0     0         0

               0   0     1         1

               0   1     0         0

               0   1     1         1

               1   0     0         0
               1   0     1         1

               1   1     0         1

               1   1     1         1

                       Table 9
Exercise
Write a boolean expression and draw the truth table to represent this
logic circuit diagram.



             A
             B                                Y
                             C
Answer
            A   B    C    Output (Y)
Y= (A+B)C
            0   0    0        0

            0   0    1        0

            0   1    0        0

            0   1    1        1

            1   0    0        0
            1   0    1        1

            1   1    0        0

            1   1    1        1

                    Table 9
2.4.3 Simple Logic
Circuit

Learning Outcome:
  Draw simple logic circuit from a
  given boolean expression
Simple Logic Circuit
 Draw a logic circuit for (A + B)C.
Simple Logic Circuit
 Draw a logic circuit for A + BC + D.
Simple Logic Circuit
 Draw a logic circuit for (A + B)C.

Mais conteúdo relacionado

Mais procurados

Physics project on logic gate
Physics project on logic gatePhysics project on logic gate
Physics project on logic gateVirat Prasad
 
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed KhanDigital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed KhanYasir Khan
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsVanitha Chandru
 
Logic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gatesLogic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gatesDhwanil Champaneria
 
Presentation On Logic Gate
Presentation On Logic Gate Presentation On Logic Gate
Presentation On Logic Gate Nazrul Islam
 
Logic gates and logic circuits
Logic gates and logic circuitsLogic gates and logic circuits
Logic gates and logic circuitsjyoti_lakhani
 
investagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATESinvestagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATESLakhvinder Singh
 
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
 
Logic gates 12th standard ivestigatory project
Logic gates 12th standard ivestigatory projectLogic gates 12th standard ivestigatory project
Logic gates 12th standard ivestigatory projectJaipuriar School
 

Mais procurados (20)

Physics project on logic gate
Physics project on logic gatePhysics project on logic gate
Physics project on logic gate
 
logic gates
logic gateslogic gates
logic gates
 
LOGIC GATES
LOGIC GATESLOGIC GATES
LOGIC GATES
 
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed KhanDigital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
 
Chap 3
Chap 3Chap 3
Chap 3
 
9. logic gates._rr
9. logic gates._rr9. logic gates._rr
9. logic gates._rr
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
 
Logic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gatesLogic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gates
 
Presentation On Logic Gate
Presentation On Logic Gate Presentation On Logic Gate
Presentation On Logic Gate
 
Digital Basics
Digital BasicsDigital Basics
Digital Basics
 
Digital 1
Digital 1Digital 1
Digital 1
 
Logic gates and logic circuits
Logic gates and logic circuitsLogic gates and logic circuits
Logic gates and logic circuits
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 
Basic Logic gates
Basic Logic gatesBasic Logic gates
Basic Logic gates
 
Logic gates (1)
Logic gates (1)Logic gates (1)
Logic gates (1)
 
Logic gates i & ii
Logic gates i & iiLogic gates i & ii
Logic gates i & ii
 
Logic gate
Logic gateLogic gate
Logic gate
 
investagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATESinvestagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC 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.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
 
Logic gates 12th standard ivestigatory project
Logic gates 12th standard ivestigatory projectLogic gates 12th standard ivestigatory project
Logic gates 12th standard ivestigatory project
 

Destaque

Basic logic gates
Basic logic gatesBasic logic gates
Basic logic gatesKumar
 
Intro to searching1
Intro to searching1Intro to searching1
Intro to searching1Michael Saar
 
IS 151 Lecture 5
IS 151 Lecture 5IS 151 Lecture 5
IS 151 Lecture 5wajanga
 
Microsoft power point 2.2number system&representation
Microsoft power point   2.2number system&representationMicrosoft power point   2.2number system&representation
Microsoft power point 2.2number system&representationKMJ Science Computer
 
1.1 introduction to it and development of it
1.1 introduction to it and development of it1.1 introduction to it and development of it
1.1 introduction to it and development of itKMJ Science Computer
 
Constant Current Switching Regulator for LEDs with ON/OFF Function: NCP3066
Constant Current Switching Regulator for LEDs with ON/OFF Function: NCP3066Constant Current Switching Regulator for LEDs with ON/OFF Function: NCP3066
Constant Current Switching Regulator for LEDs with ON/OFF Function: NCP3066Premier Farnell
 
Power electronics switching circuit
Power electronics switching circuitPower electronics switching circuit
Power electronics switching circuitNitesh Jha
 
physics investigatory project class 12 on logic gates ,boolean algebra
physics investigatory project class 12 on logic gates ,boolean algebraphysics investigatory project class 12 on logic gates ,boolean algebra
physics investigatory project class 12 on logic gates ,boolean algebrasukhtej
 
Report on-the-logic-gates
Report on-the-logic-gatesReport on-the-logic-gates
Report on-the-logic-gatesbhardubhai
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic GatesKumar
 

Destaque (20)

Logic Gates
Logic GatesLogic Gates
Logic Gates
 
Basic logic gates
Basic logic gatesBasic logic gates
Basic logic gates
 
Intro to searching1
Intro to searching1Intro to searching1
Intro to searching1
 
IS 151 Lecture 5
IS 151 Lecture 5IS 151 Lecture 5
IS 151 Lecture 5
 
2.1 system concept
2.1 system concept2.1 system concept
2.1 system concept
 
Lecture 2.6 software
Lecture 2.6 softwareLecture 2.6 software
Lecture 2.6 software
 
2.3 information coding_scheme
2.3 information coding_scheme2.3 information coding_scheme
2.3 information coding_scheme
 
Microsoft power point 2.2number system&representation
Microsoft power point   2.2number system&representationMicrosoft power point   2.2number system&representation
Microsoft power point 2.2number system&representation
 
1.1 introduction to it and development of it
1.1 introduction to it and development of it1.1 introduction to it and development of it
1.1 introduction to it and development of it
 
Constant Current Switching Regulator for LEDs with ON/OFF Function: NCP3066
Constant Current Switching Regulator for LEDs with ON/OFF Function: NCP3066Constant Current Switching Regulator for LEDs with ON/OFF Function: NCP3066
Constant Current Switching Regulator for LEDs with ON/OFF Function: NCP3066
 
Lecture 2.5 hardware
Lecture 2.5 hardwareLecture 2.5 hardware
Lecture 2.5 hardware
 
3.1.1 network topology complete
3.1.1 network topology complete3.1.1 network topology complete
3.1.1 network topology complete
 
1.2 the application of it
1.2 the application of it1.2 the application of it
1.2 the application of it
 
Power electronics switching circuit
Power electronics switching circuitPower electronics switching circuit
Power electronics switching circuit
 
Logic families
Logic  familiesLogic  families
Logic families
 
physics investigatory project class 12 on logic gates ,boolean algebra
physics investigatory project class 12 on logic gates ,boolean algebraphysics investigatory project class 12 on logic gates ,boolean algebra
physics investigatory project class 12 on logic gates ,boolean algebra
 
3.1.2 classification of network
3.1.2 classification of network3.1.2 classification of network
3.1.2 classification of network
 
Report on-the-logic-gates
Report on-the-logic-gatesReport on-the-logic-gates
Report on-the-logic-gates
 
Circuit Switching
Circuit SwitchingCircuit Switching
Circuit Switching
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
 

Semelhante a Lecture 2.4 logic_gate_&_simple_logic_circuit

1,basic and derived logic gates.pdf
1,basic and derived logic gates.pdf1,basic and derived logic gates.pdf
1,basic and derived logic gates.pdfDamotTesfaye
 
De Mornan Theory, Boolean Algebra, 7 logical get, truth table,
De Mornan Theory, Boolean Algebra, 7 logical get, truth table,  De Mornan Theory, Boolean Algebra, 7 logical get, truth table,
De Mornan Theory, Boolean Algebra, 7 logical get, truth table, DharmaKumariBhandari
 
2nd PUC computer science chapter 2 boolean algebra 1
2nd PUC computer science chapter 2  boolean algebra 12nd PUC computer science chapter 2  boolean algebra 1
2nd PUC computer science chapter 2 boolean algebra 1Aahwini Esware gowda
 
boolean algrebra and logic gates in short
boolean algrebra and logic gates in shortboolean algrebra and logic gates in short
boolean algrebra and logic gates in shortRojin Khadka
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebraSARITHA REDDY
 
Logic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers andLogic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers andMuruganandhanD
 
Chapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebraChapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebraAshish KC
 
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdfsiliconvalley6203
 
BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE Tamim Tanvir
 
Boolean Algebra.pdf
Boolean Algebra.pdfBoolean Algebra.pdf
Boolean Algebra.pdfssusere02873
 
Physics investigatgory project on logic gates class 12
Physics  investigatgory project on logic gates class 12Physics  investigatgory project on logic gates class 12
Physics investigatgory project on logic gates class 12appietech
 
Boolean Logic.pptx
Boolean Logic.pptxBoolean Logic.pptx
Boolean Logic.pptxakshat205573
 
Week4_BooleanAlgebra.pptx
Week4_BooleanAlgebra.pptxWeek4_BooleanAlgebra.pptx
Week4_BooleanAlgebra.pptxAbubakrZahid1
 

Semelhante a Lecture 2.4 logic_gate_&_simple_logic_circuit (20)

1,basic and derived logic gates.pdf
1,basic and derived logic gates.pdf1,basic and derived logic gates.pdf
1,basic and derived logic gates.pdf
 
De Mornan Theory, Boolean Algebra, 7 logical get, truth table,
De Mornan Theory, Boolean Algebra, 7 logical get, truth table,  De Mornan Theory, Boolean Algebra, 7 logical get, truth table,
De Mornan Theory, Boolean Algebra, 7 logical get, truth table,
 
Chapter_11.pdf
Chapter_11.pdfChapter_11.pdf
Chapter_11.pdf
 
2nd PUC computer science chapter 2 boolean algebra 1
2nd PUC computer science chapter 2  boolean algebra 12nd PUC computer science chapter 2  boolean algebra 1
2nd PUC computer science chapter 2 boolean algebra 1
 
boolean-algebra.pdf
boolean-algebra.pdfboolean-algebra.pdf
boolean-algebra.pdf
 
Lec1 n
Lec1 nLec1 n
Lec1 n
 
boolean algrebra and logic gates in short
boolean algrebra and logic gates in shortboolean algrebra and logic gates in short
boolean algrebra and logic gates in short
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebra
 
Logic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers andLogic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers and
 
Chapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebraChapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebra
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Digital 1 8
Digital 1 8Digital 1 8
Digital 1 8
 
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
 
BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE
 
Boolean Algebra.pdf
Boolean Algebra.pdfBoolean Algebra.pdf
Boolean Algebra.pdf
 
Physics investigatgory project on logic gates class 12
Physics  investigatgory project on logic gates class 12Physics  investigatgory project on logic gates class 12
Physics investigatgory project on logic gates class 12
 
Boolean Logic.pptx
Boolean Logic.pptxBoolean Logic.pptx
Boolean Logic.pptx
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Week4_BooleanAlgebra.pptx
Week4_BooleanAlgebra.pptxWeek4_BooleanAlgebra.pptx
Week4_BooleanAlgebra.pptx
 
Boolean Algebra.pptx
 Boolean Algebra.pptx Boolean Algebra.pptx
Boolean Algebra.pptx
 

Último

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 

Último (20)

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 

Lecture 2.4 logic_gate_&_simple_logic_circuit

  • 1. 2.4.1 Boolean Expression Learning Outcome: • Calculate the value of Boolean Expression
  • 2. Boolean Expression  Introduction  Axioms of Boolean Algebra  Basic Theorems  Logical Addition (OR Operation)  Logical Multiplication (AND Operation)  Complementation
  • 3. Introduction  The basic rules for simplifying and combining logic gates are called Boolean algebra in honour of George Boole (1815-1864).  There are two types of operator: Unary – NOT Binary – AND, OR
  • 4. Axioms of Boolean Algebra  For any elements a, b and c of the set B on which two binary operations (+ , .) and a unary operation denoted (-) or (~) or (ù) are defined (OR, AND, NOT respectively), and 0 and 1 denote two distinct elements of B. Then  Commutative Laws a+b=b+a a.b=b.a  Distributive Laws  a + (b . c) = (a + b) . (a + c)  a . (b + c) = (a . b) + (a . c)  Identity Laws a+0=a a.1=a  Complement Laws a+~a=1 a.~a=0
  • 5. Basic Theorems  Let a, b, c be any three elements in a Boolean algebra B. Then  Idempotent Laws  a+a=a  a.a=a  Boundedness Laws  a+1=1  a.0=0  Absorption Laws  a + (a . b) = a  a . (a + b) = a  Associative Laws  (a + b ) + c = a + (b + c)  (a . b) . c = a . (b . c)  (Uniqueness of Complement)  If a + x = 1 and a . x = 0, then x = ~ a  ~0=1~1=0  De Morgan’s Laws:
  • 6. Logical Addition (OR Operation)  Each variable in Boolean algebra has either of two values: true or false (l or 0).  For instance, in logic equation, A + B = C, each of the variables A, B and C may have only the values 0 or 1.  We can define the “+” symbol by listing all possible combinations for A and B and the resulting values of A + B.
  • 7. Cont... Input Output A B C = A+B 0 0 0 1 0 1 0 1 1 1 1 1 Table 2
  • 8. Cont...  Above table is a truth table of logical addition and could represent binary addition table except for the last entry.  The + symbol, therefore, does not have the normal meaning of arithmetic addition but is a logical addition and is referred as OR operation.  The equation A + B = C can be read as A OR B equals C. This concept can be extended to any number of variables.  To avoid ambiguity, a number of other symbols have been recommended as replacements for the + sign, for example, U and therefore A + B = C can be written as A ∪ B = C.
  • 9. Logical Multiplication (AND Operation)  A second important operation in Boolean algebra is logical multiplication and is referred to as AND operation.  The logical multiplication of two variables A and B is expressed as A.B and is read as A AND B. The Boolean equation for an AND gate can be written in as Y = A • B, Y = AB, or Y = A ∩ B.  The truth table for logical multiplication of two variables is, Input Output A B C=A*B 0 0 0 1 0 0 0 1 0 1 1 1 Table 3
  • 10. Complementation  Boolean algebra uses an operation called complementation and this can be defined as ~0 = 1 and ~1 = 0.  ~A means the complement of A and read as NOT A. The process of complementing is called negation, Input Output A B=~A 0 1 1 0 Table 4
  • 11. Exercise 1 Evaluate the following Boolean expressions: l 1+1+1 l 1+1+0 l 1.1.1 l 1.1.0 Answer. i) 1 + 1 + 1 = (1 + 1) + 1 = 1 + 1 = 1 j) 1 + 1 + 0 = (1 + 1) + 0 = 1 + 0 = 1 k) 1.1.1 = (1.1). 1 = 1.1 = 1 l) 1.1.0 = (1.1). 0 = 1.0 = 0
  • 12. Exercise 2 Evaluate the following. l 1. (1 + 0) l (1 + 1). (1 + 0) l (1.1) + (0.1) Answer.  As in ordinary arithmetic, Operations in parenthesis are done first. i) 1. (1 + 0) = 1.1 = 1 j) (1+1). (1+0) = 1.1 = 1 k) (1.1) + (0.1) = 1 + 0 = 1
  • 13. Exercise 3 Evaluate 1.1 + 0.1 Answer.  In ordinary arithmetic, multiplication takes precedence over addition. The Boolean AND takes precedence over the Boolean OR.  1.1 + 0.1 = 1 + 0 = 1  This example illustrates that (1.1) + (0.1) is the same as 1.1 + 0.1. The brackets are not needed. This is similar to (5 * 2) + (3 * 4) = 5 * 2 + 3 * 4. The brackets are not needed.
  • 14. Exercise 4 In ordinary mathematics we say that multiplication distributes over addition. For (4) 2(a + b) = 2a + 2b Does the AND operation distribute over the OR operation? For example, is 1. (1 + 0) = 1.1 + 1.0? Answer.  Left Side: 1. (1 + 0) = 1.1 = 1  Right Side: 1.1 + 1.0 = 1 + 0 = 1  Left side = Right side  Hence, AND does distribute over OR  It should be noted that distributive Law of AND over OR does hold in general in Boolean arithmetic.
  • 15. 2.4.2 Logic Gates Learning Outcome:  Identify symbol for logic gate
  • 16. 2.4.2 Logic Gates  An electronic circuit operates on one or more input signals to produce an output signal.  Gates are digital (two-state) circuits and can be analyzed with Boolean algebra.  The circuit which performs OR operation is called OR gate  The circuit which performs AND operation is called AND gate.
  • 17. ELECTRICAL SWITCHES  Electrical switches are good examples to illustrate OR, AND and many Boolean theorems.
  • 18. Cont....  A switch has only two states: either closed or open. When the two switches are connected in parallel, the current will flow in the circuit when either switch is in closed position.  The current will not flow at all when both switches are in open position.  If the flowing current is taken as ON and not flowing as OFF, and assumed that closed = 1, open = 0, ON = 1 and OFF = 0, then behaviour of two switches can be tabulated as shown below.  This is precisely the property described by the truth table for logical addition (OR operation).
  • 19. Behaviour of two switches in parallel Switch A Switch B Bulb C Open (0) Open (0) OFF (0) Closed (1) Open (0) ON (1) Open (0) Closed (1) ON (1) Closed (1) Closed (1) ON (1) Table 5
  • 20. Cont....  When two switches connected in series as shown below, the lamp will light up when both A and B are closed. Table 6 shows the behaviour of two switches in series circuit.
  • 21. Behaviour of Two Switches in Series Switch A Switch B Bulb C Open (0) Open (0) OFF (0) Closed (1) Open (0) OFF (0) Open (0) Closed (1) OFF (0) Closed (1) Closed (1) ON (1) Table 6
  • 22. Logic Gates  These gates are AND gate, OR gate and NOT gate.
  • 23. Cont...  A gate will have one or more binary inputs of 0 or 1 but just one binary output. a) The AND and OR gates each have two binary inputs and one binary output. b) The NOT gate has one binary input and one binary output.
  • 24. Truth Table  A truth table is a good way to show the function of a logic gate.  It shows the output states for every possible combination of input states.  The symbols 0 (false) and 1 (true) are used in truth tables  For a logic gate with n inputs, there are 2n entries in the truth table.  Example: A logic gate with three inputs, A, B and C will contain 23 = 8 entries.
  • 25. AND Truth Table Input A Input B Output A.B=Y 1 1 1 1 0 0 0 1 0 0 0 0
  • 26. OR Truth Table Input A Input B Output A+B=Y 1 1 1 1 0 1 0 1 1 0 0 0
  • 27. NOT Truth Table Input A Output A’=Y 0 1 1 0
  • 28. THE AND OPERATOR (.)  The AND gates have two binary inputs and one binary output.  The AND operator is written as (.).  The symbol of AND is written as (∩).
  • 30. AND Gate  The AND gate produces a TRUE output, Y, if and only if both A and B are TRUE.  Otherwise, the output is FALSE.  The Boolean equation for an AND gate can be written in several ways: Y = A • B, Y = AB, or Y = A ∩ B.  The ∩ symbol is pronounced "intersection”.
  • 31. Cont...  TRUE when all inputs are TRUE
  • 32. OR OPERATOR(+)  The OR gates have two binary inputs and one binary output.  The OR operator is written as (+).  The symbol of OR is write as (∪).
  • 34. OR Gate  The OR gate produces a TRUE output, Y if either A or B (or both) are TRUE.  The Boolean equation for an OR gate is written as Y = A + B or Y = A ∪ B.  The ∪ symbol is pronounced “union”.  TRUE when any inputs are TRUE
  • 35. Cont...  TRUE when any inputs are TRUE
  • 36. NOT OPERATOR (~)  The NOT gate has one binary input and one binary output.  The NOT A can be written as below: (~A), ( ), (¬A), (A’), (!A ).
  • 37. NOT Gate  The NOT gate's output is the inverse of its input. If A is FALSE, then Y is TRUE. If A is TRUE, then Y is FALSE.  This relationship is summarized by the truth table and Boolean equation.  The line over A in the Boolean equation is pronounced NOT, so Y is read as “Y equals NOT A”.  The NOT gate is also called an inverter.
  • 38. NOT Truth Table  ~0 = 1 is read as NOT 0 equals to 1. It is important to remember that the NOT function inverts input.  The NOT function takes an input of 0 and inverts it to provide an output of 1 and it takes an input of 1 and inverts it to provide an output of 0.
  • 40. Review Question  Explain the following logic gates: Operator Symbol Gate Input Gate, n Input Truth Table (2n) AND OR NOT NAND NOR
  • 41.  Explain the following logic gates: Operator Symbol Gate Input Gate, n Input Truth Table (2n) AND ., ∩ 2 4 OR +, ∪ 2 4 (~), ( ), (¬), NOT 1 2 (’), (! ). NAND 2 4 NOR 2 4 Table 7
  • 42. Exercise Write a boolean expression and draw the truth table to represent this logic circuit diagram. A B C
  • 43. Answer A B C Output (Y) Y= A.B.C 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 Table 8
  • 44. Exercise Write a boolean expression and draw the truth table to represent this logic circuit diagram.
  • 45. Answer A B C Output Y= (A.B) + C 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 1 Table 9
  • 46. Exercise Write a boolean expression and draw the truth table to represent this logic circuit diagram. A B Y C
  • 47. Answer A B C Output (Y) Y= (A+B)C 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 0 1 1 1 1 Table 9
  • 48. 2.4.3 Simple Logic Circuit Learning Outcome:  Draw simple logic circuit from a given boolean expression
  • 49. Simple Logic Circuit  Draw a logic circuit for (A + B)C.
  • 50. Simple Logic Circuit  Draw a logic circuit for A + BC + D.
  • 51. Simple Logic Circuit  Draw a logic circuit for (A + B)C.