DIGITAL ELECTRONICS d flip FLOP

Embed Size (px)

Citation preview

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    1/23

    Chapter 14

    Sequential logic, Latches andSequential logic, Latches and

    FlipFlip--FlopsFlops

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    2/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 2

    Lesson 6

    D- Flip Flop and D-Latch

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    3/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 3

    D- Flip-Flop + ve edge triggered

    Output Q

    and Q

    Q

    Q

    D

    Q

    QD D-FF

    Clock

    D

    +ve Edgetriggered

    circuit

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    4/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 4

    D- Flip-Flop + ve edge triggered

    with clear and preset Output Q

    and Q

    Q

    Q

    D

    Q

    QD D-FF

    Clock

    D

    +ve Edgetriggered

    circuit

    R

    SPreset

    CLR

    clear

    PR

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    5/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 5

    D- Flip Flop

    1. It has edge trigger clock input so that the output

    state changes only on a clock edge2. The NANDs S input of level clocked SR latch is

    called D- input and R input given input after a

    not operation on the D-input.

    3. Second input of both NANDs is common

    4. Clock input has an additional circuitry to make

    the transition of Q as per D at an instance

    corresponding to an edge at the clock- input

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    6/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 6

    D- Flip Flop

    Three input cross coupled NANDs

    Third input of lower NAND connects the Q

    output

    Third input of upper NAND connects the Qoutput.

    There is no unstable condition in D-FF

    state table

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    7/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 7

    Clock edge Symbolicrepresentation

    Up side arrow corresponds +ve edgeinstance (0 to 1 transition only)

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    8/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 8

    Timing Diagram

    Refer Text

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    9/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 9

    D = 0 at edge transition (Q = D after a

    delay)

    Output Q resets to 0 and Qn becomes = 1

    after a propagation delay when +ve edgeoccurs because J = 0 and K = 1

    Output Q sets to 1 and Qn becomes = 0

    after a propagation delay when +ve edgeoccurs because J = 1 and K = 0

    Q becomes same as D after a clock edge.

    Qn+1 D

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    10/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 10

    +ve edge triggered D FF

    Inputs Output State

    CLK Qn D Qn+1 Qn+1

    X means either 1 or 0 input, Qn+1 means next

    state after nth clock input

    1 0 1 Qn Qn No change

    0 1 0 Qn Qn No change

    X D D Q same as D

    X X Qn Qn No change

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    11/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 11

    D- Latch (Level clocked D)

    Output Q

    and Q

    Q

    Q

    D

    Q

    QD D-latch

    Clock

    D

    Levelclocked

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    12/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 12

    D- Latch

    1. It has level clocking input so that the

    output state changes only during level 12. The NANDs S input of level clocked SR

    latch is called D- input and R input given

    input after a not operation on the D-input.3. Second input of both NANDs is common

    4. Clock input has no additional circuitry tomake the transition of Q as per D at levelcorresponding to 1 at the clock - input

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    13/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 13

    D- Latch (D- Transparent latch)

    There is no unstable condition in D-latch state table

    Q- is transparent to D during clock =

    1

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    14/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 14

    Clock level Symbolic

    representation

    corresponds level 1 clocking input

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    15/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 15

    Timing Diagram

    Refer Text

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    16/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 16

    D = 0 or 1 at clock = 1 transition (Q = D

    after a delay)

    Output Q resets to 0 and Qn becomes = 1

    after a propagation delay during clock = 1

    because D = 0

    Output Q sets to 1 and Qn becomes = 0after a propagation delay during clock = 1

    because D = 1

    Q becomes same as D during clock = 1.

    Qn+1 D

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    17/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 17

    D Latch

    Inputs Output State

    D Clock Qn+1 Qn+1

    X means either 1 or 0 input, Qn+1 means next

    state after nth clock input

    X 0 Qn Qn No change

    1 1 1 0 Qn+1 D

    0 1 0 1 Qn+1 D

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    18/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 18

    D- Latch with D input from Q

    Output Q

    and Q

    Q

    QD

    Q

    QD

    1

    D-Latch

    Clock

    D

    Levelclocked

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    19/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 19

    D input with feedback from Qn

    When clock = 1, the output changes 1 to 0and 0 to 1 at regular intervals with interval

    = propagation delay of the D-latch. We get

    the pulses at the output

    When clock = 0, the output freeze, Q

    cannot change when clock = 0

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    20/23

    Summary

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    21/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 21

    We learnt that in D- edge triggered FF:

    Because K is always complement of J,

    and D input is at J, the output of D-flip-flops changes to same state as D input on

    edge at D-input. [After a period equal to

    propagation delay.]

    D-latch has no third input at the cross-

    coupled NANDs

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    22/23

    End of Lesson 6 on

    D- Flip Flop and D-Latch

  • 8/14/2019 DIGITAL ELECTRONICS d flip FLOP

    23/23

    Ch14L6-"Digital Principles and Design", Raj Kamal, Pearson Education, 2006 23

    THANK YOU