MELJUN CORTES Logic Gates Examples

download MELJUN CORTES Logic Gates Examples

of 8

Transcript of MELJUN CORTES Logic Gates Examples

  • 8/8/2019 MELJUN CORTES Logic Gates Examples

    1/17

      F0064

    Design a circuit that will evaluate the expression

    F = AB’ + A 

    Will there be an alternative simpler solution tothe above function?

    Logic Gates Examples * Property of STI 

    Page 1 of 17

  • 8/8/2019 MELJUN CORTES Logic Gates Examples

    2/17

      F0064

    Solution:

    Recall from Theorem 6a that: 

    X +XY = (1+Y )X = (1)X = X 

    let X = A and Y = B

    Applying this to our expression, we get:

    F = AB’ + A = A(B’ + 1) = A(1) = A

    Logic Gates Examples * Property of STI 

    Page 2 of 17

    Circuit implementation of the function 

    F = A(B’+1)

  • 8/8/2019 MELJUN CORTES Logic Gates Examples

    3/17

      F0064

    Take a look at the circuit below and directlyderive the Boolean expression from it. Attempt

    to implement a new circuit that does the samething as the old one but uses less components.

    Logic Gates Examples * Property of STI 

    Page 3 of 17

  • 8/8/2019 MELJUN CORTES Logic Gates Examples

    4/17

      F0064

    Solution:

    Logic Gates Examples * Property of STI 

    Page 4 of 17

  • 8/8/2019 MELJUN CORTES Logic Gates Examples

    5/17

      F0064

    Solution (cont.):

    Logic Gates Examples * Property of STI 

    Page 5 of 17

  • 8/8/2019 MELJUN CORTES Logic Gates Examples

    6/17

      F0064

    Solution (cont.):

    The expression, therefore:

    F = {[B(A+B)’](A+C)’}’ 6. Theorem 5 [De Morgan’s]: (XY)’ = X’+Y’

    F = [B(A+B)’]’ + (A+C)’’ 

    F = B’ + (A+B)’’ + (A+C)’’ 

      ’ ’

    Logic Gates Examples * Property of STI 

    Page 6 of 17

    .   =

    F = B’ + (A+B)’’ + (A+C) F = B’ + (A+B) + (A+C) 

  • 8/8/2019 MELJUN CORTES Logic Gates Examples

    7/17

      F0064

    Solution (cont.):

    8. Regroup the terms:

    F = (A+A) + (B+B’) + C 

    9. Theorem 1a: X + X = X

    F = A + (B+B’) + C 

    10. Postulate 6: A + A’ = 1

    F = A + 1 + C 11. Theorem 2a: X + 1 = 1

    F = 1

     

    Logic Gates Examples * Property of STI 

    Page 7 of 17

     

    expression above would be:

  • 8/8/2019 MELJUN CORTES Logic Gates Examples

    8/17

      F0064

    How many terms and literals do the followingcircuits have? Manipulate and simplify the

    expressions if needed.

    Solution:

    2-terms: AB and C’ 

    literals: A, B , C’ 

    Logic Gates Examples * Property of STI 

    Page 8 of 17

     

    Boolean expression:

    F = AB + C’ 

  • 8/8/2019 MELJUN CORTES Logic Gates Examples

    9/17

      F0064

    Solution:

    2-terms: (A+B)’ and CC’ 

    literals: A’ , B’ , C , C’ 

    Boolean expression:

      ’ ’ 

    Logic Gates Examples * Property of STI 

    Page 9 of 17

     = + +

    De Morgan’s Theorem:F = (A’B’) + CC’ 

    F = (A’B’) + 0 

    F = (A’B’)

    F = A’B’ or (A+B)’ 

  • 8/8/2019 MELJUN CORTES Logic Gates Examples

    10/17

      F0064

    Solution:

    3-terms: (A+B)’ , ((A+B)’B)’ , and (C+D)’ 

    literals: A’ , B’ , C’ , D’ 

    F = ((A+B)’B)’(C+D)’  

    ’’ ’ ’  

    Logic Gates Examples * Property of STI 

    Page 10 of 17

    = + + +  

    = ((A+B)+B’)(C’D’)  = (A+(B+B’))(C’D’)  

    = (A+1)(C’D’)  

    = 1(C’D’)  

    F = (C+D)’  

  • 8/8/2019 MELJUN CORTES Logic Gates Examples

    11/17

      F0064

    Enumerate the number of terms and literals forthe following Boolean expressions and draw

    their logic diagram.

    1) F = (A’+B )C 

    2) F = A’B ’C ’

    3) F = A’B + AC 

    4) F = AC + A’BC + A’BC ’5) F = AB ’ + A’B 

    Solution:

    1. 2-terms: A’+B  and A’+B C 

    Logic Gates Examples * Property of STI 

    Page 11 of 17

     

    literals: A’ , B , C 

  • 8/8/2019 MELJUN CORTES Logic Gates Examples

    12/17

      F0064

    Solution (cont.):

    2. 1-term: A’B’C’ 

    literals: A’ , B’ , C’ 

    Logic Gates Examples * Property of STI 

    Page 12 of 17

  • 8/8/2019 MELJUN CORTES Logic Gates Examples

    13/17

      F0064

    Solution (cont.):

    3. 2-terms: A’B and AC 

    literals: A’ , B , A, C 

    4. 3-terms: AC , A’BC , and A’BC’ 

      ’   ’ 

    Logic Gates Examples * Property of STI 

    Page 13 of 17

    , , , ,

  • 8/8/2019 MELJUN CORTES Logic Gates Examples

    14/17

      F0064

    Solution (cont.):

    5. 2-terms: AB’ and A’B 

    literals: A’ , A, B’ , B 

    Logic Gates Examples * Property of STI 

    Page 14 of 17

  • 8/8/2019 MELJUN CORTES Logic Gates Examples

    15/17

      F0064

    You have been accepted as an intern at DurianTech’s Reverse Engineering Department. The

    department where you are assigned is trying toexamine some digital circuits used in thecellular phones of its competitor, BananaTelecoms. Your first task as a cadet reverseengineer is to find out what each of the followingcircuits does. You need to get the functional

    characteristics of the circuits by examining their

    logic diagrams. Determine the Booleanexpression of each logic diagram and obtainits truth table.

    Logic Gates Examples * Property of STI 

    Page 15 of 17

  • 8/8/2019 MELJUN CORTES Logic Gates Examples

    16/17

      F0064

    Logic Gates Examples * Property of STI 

    Page 16 of 17

  • 8/8/2019 MELJUN CORTES Logic Gates Examples

    17/17

      F0064

    The lead engineer in your department said thathe needs to implement the circuit shown below.

    However, there has been a shortage in four-input NAND gates in the supply bin and the onlyavailable gates are two-input OR and NOR. Hesays that he vaguely remembers a method tomake a similar circuit using identities andHuntington’s postulates on the circuit’s Boolean

    expression. He asks you if there is a possibility

    that the circuit can be implemented using onlytwo-input OR and NOR gates.

    Logic Gates Examples * Property of STI 

    Page 17 of 17