MELJUN CORTES Logic Gates

download MELJUN CORTES Logic Gates

of 12

Transcript of MELJUN CORTES Logic Gates

  • 8/8/2019 MELJUN CORTES Logic Gates

    1/26

      F0064

    used to process information in computers

    o erate on the binar variables that are

    symbolically represented by the values 0 and 1(LOW and HIGH logic)

    deals with binary variables and logic operationsapplied on these variables

    Logic Gates * Property of STI Page 1 of 26

  • 8/8/2019 MELJUN CORTES Logic Gates

    2/26

      F0064

    a special kind of electronic device which can beused for many important functions

    in computers, it is used to serve as a switch,either ON or OFF

    Logic Gates * Property of STI Page 2 of 26

  • 8/8/2019 MELJUN CORTES Logic Gates

    3/26

      F0064

    Two Unary Operators:

    buffer

    NOT

    Logic Gates * Property of STI Page 3 of 26

    the symbol “ ” can be used interchangeably withthe symbol “ ’ ”

    A = A’ = C 

  • 8/8/2019 MELJUN CORTES Logic Gates

    4/26

      F0064

    Logic diagram

    com osed of lo ic ates which are the visual

    representation of the operators as well as someof their combinations

    Logic Gates * Property of STI Page 4 of 26

  • 8/8/2019 MELJUN CORTES Logic Gates

    5/26

      F0064

    Logic Gates * Property of STI Page 5 of 26

  • 8/8/2019 MELJUN CORTES Logic Gates

    6/26

      F0064

    TTL Transistor-Transistor Logic

    -.  

    MOS Metal-Oxide Semiconductor

    CMOS Complementary MOS

    BiCMOS Bipolar CMOS

    I2L Integrated-Injection Logic

    GaAS Gallium Arsenide

    Logic Gates * Property of STI Page 6 of 26

  • 8/8/2019 MELJUN CORTES Logic Gates

    7/26

      F0064

    Logic Gates * Property of STI Page 7 of 26

  • 8/8/2019 MELJUN CORTES Logic Gates

    8/26

      F0064

    has a high output only when all its inputs arehigh

    F = A • B or F = AB 

    Truth table:

    Logic Gates * Property of STI Page 8 of 26

  • 8/8/2019 MELJUN CORTES Logic Gates

    9/26

      F0064

     

    Logic Gates * Property of STI Page 9 of 26

     

    with (a) two inputs and (b) N inputs with N = 4.

  • 8/8/2019 MELJUN CORTES Logic Gates

    10/26

      F0064

    Consider the Boolean expression

    A • B • C =

    where the inputs A, B , and C can have anybinary value. Implement the expression using athree-input AND gate. Get all possible inputcombinations and their corresponding values forthe output F .

    Solution:

    Logic Gates * Property of STI Page 10 of 26

  • 8/8/2019 MELJUN CORTES Logic Gates

    11/26

      F0064

    Truth table:

     

    Logic Gates * Property of STI Page 11 of 26

     = =

    A • B • C = F 

    Cascade

    to connect the output of one gate to one of theinputs of another making a chain of gates andeffectively creating a product of products

  • 8/8/2019 MELJUN CORTES Logic Gates

    12/26

      F0064

    Consider the Boolean expression

    A • B • C • D • E = F  

    where we need to implement a digital circuitusing only binary input AND gates. Sinceseveral combinations exist for solving theproblem, consider at least two solutions using aminimum amount of gates.

    Solution:

    Logic Gates * Property of STI Page 12 of 26

  • 8/8/2019 MELJUN CORTES Logic Gates

    13/26

      F0064

    output voltage is high if any or all of the inputvoltages are high

    algebraically represented by a “+” symbol

    can be thought of as having switches in parallel,with each switch corres ondin to an in ut node

    Logic Gates * Property of STI Page 13 of 26

     

  • 8/8/2019 MELJUN CORTES Logic Gates

    14/26

      F0064

    Similar to the case of Example 2, provide thenecessary OR gate implementation for the

    Boolean expressionA + B + C = F 

    What will the result be if the inputs are:

    1) A = logic 0; B = logic 0; C = logic 0 

    2) A = logic 1; B = logic 1; C = logic 1

    Solution:

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

    2 A+ B+ C = 1 + 1 + 1 = 1

    Logic Gates * Property of STI Page 14 of 26

     

  • 8/8/2019 MELJUN CORTES Logic Gates

    15/26

      F0064

    Implement the Boolean expression of Example3 using only binary gates with the following

    configurations:a) using two OR gates in cascade 

    b) using a two-level hierarchical approach 

    Solution:

    Logic Gates * Property of STI Page 15 of 26

  • 8/8/2019 MELJUN CORTES Logic Gates

    16/26

      F0064

    Truth Table for the Three-Input OR Gate

    Logic Gates * Property of STI Page 16 of 26

  • 8/8/2019 MELJUN CORTES Logic Gates

    17/26

      F0064

    a gate with only one input signal and only oneoutput signal

    the output state is always the opposite of theinput state

    Ao = A’ I 

    Truth table:

    Logic Gates * Property of STI Page 17 of 26

  • 8/8/2019 MELJUN CORTES Logic Gates

    18/26

      F0064

    represented either by a “ ’ “ or “ “ symbol

    the sole ur ose is to invert or ne ate the fed

    to it

    The symbols for (a) NOT and (b) buffer

    Two Types of Pushbutton Switches

    Logic Gates * Property of STI Page 18 of 26

  • 8/8/2019 MELJUN CORTES Logic Gates

    19/26

      F0064

    an abbreviation for NOT AND

    can also be re resented b an AND ate with a

    bubble at the output all input signals must be high to produce a low

    output

    F = A’B’ 

    Logic Gates * Property of STI Page 19 of 26

    Truth Table

  • 8/8/2019 MELJUN CORTES Logic Gates

    20/26

      F0064

    an abbreviation for NOT OR

    can be re laced b an OR ate with a bubble at

    the output all inputs must be low to produce a high

    output

    F = (A + B)’ 

    Logic Gates * Property of STI Page 20 of 26

    Truth Table

  • 8/8/2019 MELJUN CORTES Logic Gates

    21/26

      F0064

    Logic Gates * Property of STI Page 21 of 26

    The (a) NAND and (b) NOR used as inverters

  • 8/8/2019 MELJUN CORTES Logic Gates

    22/26

      F0064

    Exclusive-OR operator

    s mbolicall re resented b “ ”

    similar in output to an OR gate except that theXOR gate produces a 0 output when bothinputs are 1

    Logic Gates * Property of STI Page 22 of 26

  • 8/8/2019 MELJUN CORTES Logic Gates

    23/26

      F0064

    XOR Truth Table

    XNOR

    is simply the XOR followed by an inverter

    its operator is usually written as “ “

    Logic Gates * Property of STI Page 23 of 26

    XNOR Truth Table

  • 8/8/2019 MELJUN CORTES Logic Gates

    24/26

      F0064

    Logic Gates * Property of STI Page 24 of 26

  • 8/8/2019 MELJUN CORTES Logic Gates

    25/26

      F0064

    Truth Table for Three-Input XOR

     

    Logic Gates * Property of STI Page 25 of 26

     

    the output of the 3-input XOR is 1 if only oneinput is equal to 1 or if all the three inputs areequal to 1 (or when the total number of 1’s is

    odd)

  • 8/8/2019 MELJUN CORTES Logic Gates

    26/26

      F0064

    Truth Table for Three-Input XNOR

    even function 

    simply the opposite of the XOR function

    when all inputs are 0 or for even occurrencesof a 1 as an input, the output is 1