lec4-cmos

Upload: m-junaid-sultan

Post on 03-Jun-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/12/2019 Lec4-cmos

    1/36

    ECE2030

    Introduction to Computer Engineering

    Lecture 4: CMOS Network

    Prof. Hsien-Hsin Sean Lee

    School of Electrical and Computer Engineering

    Georgia Tech

  • 8/12/2019 Lec4-cmos

    2/36

    2 2

    CMOS Inverter Connect the following terminals of a PMOS and an

    NMOS Gates

    Drains

    Vin Vout

    Vdd

    Gnd

    Vout

    Vin

    Vin

    Vin = HIGHVout = LOW (Gnd)

    ON

    OFF

    Vdd

    Gnd

    Vout

    Vin

    Vin

    Vin = LOWVout = HIGH (Vdd)

    ON

    OFF

    Vdd

    PMOS

    Ground

    NMOS

  • 8/12/2019 Lec4-cmos

    3/36

    3 3

    CMOS Voltage Transfer Characteristics

    Vdd

    Gnd

    Vin Vout

    PMOS

    NMOS

    OFF: V_GateToSource < V_Threshold

    LINEAR(or OHMIC): 0< V_DrainToSource < V_GateToSource - V_Threshold

    SATURATION: 0 < V_GateToSource - V_Threshold < V_DrainToSource

    Note that in the CMOS Inverter V_GateToSource = V_in

  • 8/12/2019 Lec4-cmos

    4/36

    4 4

    Pull-Up and Pull-Down Network

    CMOS network consists of a Pull-UP Network (PUN) and a Pull-Down Network (PDN)

    PUN consists of a set of PMOS

    transistors PDN consists of a set of NMOS

    transistors

    PUN and PDN implementations

    are complimentary to each other PMOS NOMS

    Series topologyParallel topology

    .

    I0I1

    In-1

    OUPTUT

    Vdd

    PUN

    Gnd

    PDN

  • 8/12/2019 Lec4-cmos

    5/36

    5 5

    PUN/PDN of a CMOS Inverter

    A B

    0 1

    1 Z

    A B

    0 Z

    1 0

    A B

    0 1

    1 0

    Pull-UpNetwork

    Pull-DownNetwork

    CombinedCMOSNetwork

    Vdd

    A

    Gnd

    B

    CMOS Inverter

  • 8/12/2019 Lec4-cmos

    6/36

    6 6

    Gate Symbol of a CMOS Inverter

    Vdd

    A

    Gnd

    B

    CMOS Inverter

    A B

    B =

  • 8/12/2019 Lec4-cmos

    7/367 7

    PUN/PDN of a NAND GateA B C

    0 0 1

    0 1 1

    1 0 1

    1 1 Z

    A B C0 0 Z

    0 1 Z

    1 0 Z

    1 1 0

    Pull-UpNetwork

    Pull-DownNetwork

    Vdd

    A

    B

    A B

    C

  • 8/12/2019 Lec4-cmos

    8/368 8

    PUN/PDN of a NAND GateA B C

    0 0 1

    0 1 1

    1 0 1

    1 1 Z

    A B C0 0 Z

    0 1 Z

    1 0 Z

    1 1 0

    A B C

    0 0 1

    0 1 1

    1 0 1

    1 1 0

    Pull-UpNetwork

    Pull-DownNetwork

    CombinedCMOSNetwork

    Vdd

    A

    B

    A B

    C

  • 8/12/2019 Lec4-cmos

    9/369 9

    NAND Gate Symbol

    A B C

    0 0 1

    0 1 1

    1 0 1

    1 1 0

    Vdd

    A

    B

    A B

    C

    A

    B

    C

    Truth Table

    BAC

  • 8/12/2019 Lec4-cmos

    10/3610 10

    PUN/PDN of a NOR GateA B C

    0 0 1

    0 1 Z

    1 0 Z

    1 1 Z

    A B C0 0 Z

    0 1 0

    1 0 0

    1 1 0

    Pull-UpNetwork

    Pull-DownNetwork

    Vdd

    A

    C

    B

    A B

  • 8/12/2019 Lec4-cmos

    11/3611 11

    PUN/PDN of a NOR GateA B C

    0 0 1

    0 1 Z

    1 0 Z

    1 1 Z

    A B C0 0 Z

    0 1 0

    1 0 0

    1 1 0

    A B C

    0 0 1

    0 1 0

    1 0 0

    1 1 0

    Pull-UpNetwork

    Pull-DownNetwork

    CombinedCMOSNetwork

    A

    C

    B

    A B

    Vdd

  • 8/12/2019 Lec4-cmos

    12/3612 12

    NOR Gate Symbol

    A B C

    0 0 1

    0 1 0

    1 0 0

    1 1 0

    A

    B

    C

    Truth Table

    A

    C

    B

    A B

    BAC

    Vdd

  • 8/12/2019 Lec4-cmos

    13/3613 13

    How about an AND gate

    Vdd

    A

    B

    AVdd

    Gnd

    C

    NAND

    Inverter

    B

    C = A B

    A

    B

    C

  • 8/12/2019 Lec4-cmos

    14/3614 14

    An OR Gate

    A

    B

    A B

    Vdd

    Vdd

    Gnd

    C

    Inverter

    NOR

    A

    B

    C

    BAC

  • 8/12/2019 Lec4-cmos

    15/3615 15

    Whats the Function of the following CMOS Network?

    A B C

    0 0 Z

    0 1 1

    1 0 1

    1 1 Z

    A B C0 0 0

    0 1 Z

    1 0 Z

    1 1 0

    A B C

    0 0 0

    0 1 1

    1 0 1

    1 1 0

    Pull-UpNetwork

    Pull-DownNetwork

    CombinedCMOSNetwork

    Function =XOR

    Vdd

    A

    B

    A

    A

    A

    B

    B

    B

    C

  • 8/12/2019 Lec4-cmos

    16/3616 16

    Yet Another XOR CMOS Network

    Vdd

    A

    B

    A A

    A

    B

    BB

    C

    A B C

    0 0 Z

    0 1 1

    1 0 1

    1 1 Z

    A B C0 0 0

    0 1 Z

    1 0 Z

    1 1 0

    A B C

    0 0 0

    0 1 1

    1 0 1

    1 1 0

    Pull-UpNetwork

    Pull-DownNetwork

    CombinedCMOSNetwork

    Function =XOR

  • 8/12/2019 Lec4-cmos

    17/3617 17

    Exclusive-OR (XOR) Gate

    Vdd

    A

    B

    A A

    A

    B

    BB

    C

    A B C

    0 0 0

    0 1 1

    1 0 11 1 0

    A

    B

    C

    Truth Table

    BABABAC

  • 8/12/2019 Lec4-cmos

    18/3618 18

    How about XNOR Gate

    A B C

    0 0 1

    0 1 0

    1 0 0

    1 1 1

    A

    B

    C

    Truth Table

    BABABAC

    How do we draw the

    corresponding CMOS networkgiven a Boolean equation?

  • 8/12/2019 Lec4-cmos

    19/3619 19

    How about XNOR Gate

    A B C

    0 0 1

    0 1 0

    1 0 0

    1 1 1

    A

    B

    C

    Truth Table

    BABAC

    Vdd

    A

    B

    A A

    A

    B

    BB

    C

    Vdd

    XOR

    Inverter

  • 8/12/2019 Lec4-cmos

    20/3620 20

    A Systematic Method (I)Start from Pull-Up Network

    Each variable in the given Boolean eqncorresponds to a PMOS transistor in PUN and anNMOS transistor in PDN

    Draw PUN using PMOS based on the Boolean eqn AND operation drawn in series

    OR operation drawn inparallel

    Invert each variable of the Boolean eqn as the gateinput for each PMOS in the PUN

    Draw PDN using NMOS in complementary form

    Parallel (PUN) to series (PDN) Series (PUN) to parallel (PDN)

    Label with the same inputs of PUN Label the output

  • 8/12/2019 Lec4-cmos

    21/3621 21

    A Systematic Method (II)Start from Pull-Down Network

    Each variable in the given Boolean eqn corresponds to aPMOS transistor in PUN and an NMOS transistor in PDN

    Invert the Boolean eqn With the Right-Hand Side of the newly inverted equation,

    Draw PDN using NMOS

    AND operation drawn in series OR operation drawn inparallel

    Label each variable of the Boolean eqn as the gate input foreach NMOS in the PDN

    Draw PUN using PMOS in complementary form Parallel (PUN) to series (PDN) Series (PUN) to parallel (PDN)

    Label with the same inputs of PUN

    Label the output

  • 8/12/2019 Lec4-cmos

    22/3622 22

    Systematic Approaches

    Note that both methods lead to exactly the sameimplementation of a CMOS network

    The reason to invert Output equation in (II) isbecause Output (F) is conducting toground, i.e. 0, when there

    is a path formed by input NMOS transistors Inversion will force the desired result from the equation

    Example F=C + B: When (A=0 and C=1) or B=1, F=1.

    However, in the PDN (NMOS) of a CMOS network,

    F=0, i.e. an inverse result. Revisit how a NAND CMOS network is implemented

    Inverting each PMOS input in (I) follow the samereasoning

  • 8/12/2019 Lec4-cmos

    23/36

    23 23

    Example 1 (Method I)

    BCAF

    In series

    In parallel

    Vdd

    (1) Draw the Pull-Up Network

  • 8/12/2019 Lec4-cmos

    24/36

    24 24

    Example 1 (Method I)

    BCAF

    In series

    In parallelVdd

    (2) Assign the complemented input

    A

    C

    B

  • 8/12/2019 Lec4-cmos

    25/36

    25 25

    Example 1 (Method I)

    BCAF

    In series

    In parallelVdd

    (3) Draw the Pull-Down Network inthe complementary form

    A

    C

    B

    A C

  • 8/12/2019 Lec4-cmos

    26/36

    26 26

    Example 1 (Method I)

    BCAF

    In series

    In parallelVdd

    (3) Draw the Pull-Down Network inthe complementary form

    A

    C

    B

    A C

    B

  • 8/12/2019 Lec4-cmos

    27/36

    27 27

    Example 1 (Method I)

    BCAF

    In series

    In parallelVdd

    Label the output F

    A

    C

    B

    A C

    B

    F

  • 8/12/2019 Lec4-cmos

    28/36

    28 28

    Example 1 (Method I)

    BCAF

    In series

    In parallelVdd

    A

    C

    B

    A C

    B

    FA B C F

    0 0 0 0

    0 0 1 0

    0 1 0 1

    0 1 1 1

    1 0 0 1

    1 0 1 0

    1 1 0 1

    1 1 1 1

    Truth Table

  • 8/12/2019 Lec4-cmos

    29/36

    29 29

    Drawing the Schematic using Method II

    BCAF

    BC)A(F

    BCAF

    BCAF

    Vdd

    A

    C

    B

    A C

    B

    F

    This is exactly the sameCMOS network with theschematic by Method I

  • 8/12/2019 Lec4-cmos

    30/36

    30 30

    An Alternative for XNOR Gate (Method

    I)

    A B C

    0 0 1

    0 1 0

    1 0 0

    1 1 1

    A

    B

    C

    Truth Table

    BABAC

    Vdd

    A

    B

    A

    B

    A

    A B

    B

    C

  • 8/12/2019 Lec4-cmos

    31/36

    31 31

    Example 3

    )C(ABDAF

    Start from the innermost term

    A

    B D

    AC

    A D

  • 8/12/2019 Lec4-cmos

    32/36

    32 32

    Example 3

    )C(ABDAF

    Start from the innermost term

    A

    B D

    AC

    A D

    A

    C

  • 8/12/2019 Lec4-cmos

    33/36

    33 33

    Example 3

    )C(ABDAF

    Start from the innermost term

    A

    B D

    AC

    A D

    A

    C

    B

  • 8/12/2019 Lec4-cmos

    34/36

    34 34

    Example 3

    )C(ABDAF

    Start from the innermost term

    A

    B D

    AC

    A D

    A

    C

    B

    Vdd

    F

    Pull-UpNetwork

    Pull-DownNetwork

  • 8/12/2019 Lec4-cmos

    35/36

    35 35

    Example 4

    ))C(ABDA()D(EF

    Start from the innermost term

    A

    B D

    AC

    A D

    A

    C

    B

    Vdd

    F

    E D

    E

    D

    Pull-DownNetwork

    Pull-UpNetwork

  • 8/12/2019 Lec4-cmos

    36/36

    Another Example

    BCAF How ??