2-3sequantiallogiccircuit-121013033315-phpapp02

download 2-3sequantiallogiccircuit-121013033315-phpapp02

of 37

Transcript of 2-3sequantiallogiccircuit-121013033315-phpapp02

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    1/37

    2.3 Build sequential

    logic circuitCombinational logic circuit

    Sequential logic circuit

    Flip-flop

    Build flip-flop using logic gates1

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    2/37

    Objectives:

    Define sequential logic circuit.

    Differentiate between combinational logic circuit andsequential logic circuit.

    Describe flip - flop.

    Identify various types of flip-flops.

    Build SR, JK, T and D flip

    flop using logic gates. Draw the symbol and truth table of SR, JK, T and D flip

    flop.

    1

    2

    3

    4

    56

    2

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    3/37

    Sequential & Combinational

    logic circuitDefine sequential logic circuit.

    Differentiate between combinational logic circuit andsequential logic circuit.

    1

    2

    3

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    4/37

    Difference betweenCombinational & Sequential logic circuit

    Basic building

    blocks include:

    Basic building blocks

    include FLIP-FLOPS:

    Combinational Logic Circuits

    Sequential Logic Circuits

    4

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    5/37

    Sequentiallogic circuit

    Sequential logic is the type of digital system

    that does not only depend on current input, butalso the previous history of the system.

    For that reason sequential logic requires

    memory elements to function.

    The building blocks used to construct devicesthat store data are called flip-flops.

    S

    C

    R

    Q

    Q'

    5

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    6/37

    Sequent ial circuit have loop s

    these enable curcuits to receive feedback

    Sequential logic circuit

    6

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    7/37

    Combinationallogic circuit

    Combinational logic is an interconnection of

    logic gates to generate a specificities logicfunction where the inputs result in an

    immediate output, having no memory or

    storage capabilities.

    There are function only based on theirinputs, and NOTbased on clocks.

    7

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    8/37

    Combinational circuit is combination

    of various logic gates

    Combinational logic circuit

    8

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    9/37

    Flip-Flop

    Describe flip - flop.3

    9

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    10/37

    Flip-Flop

    "Flip-flop" is the common name given to two-state

    deviceswhich offer basic memory for sequentiallogic operations.

    Flip-flops are heavily used for digital data storage and

    transfer and are commonly used in banks called

    "registers" for the storage of binary numericaldata.

    10

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    11/37

    Flip-Flop

    Flip-flop are basic storage/memory elements.

    Flip-flop are essentially 1-bit storage devices.

    Types of flip-flops are:

    1. SR Flip-flop

    2. JK Flip-flop

    3. D Flip-flop

    4. T Flip-flop

    Application of flip-flop:

    1. Counter 4. Logic controller

    2. Register 5. Frequency Divider

    3. Memory

    11

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    12/37

    SR Flip-Flop

    Identify various types of flip-flops.

    Build SR, JK, T and D flip flop using logic gates.

    Draw the symbol and truth table of SR, JK, T and D flipflop.

    4

    5

    6

    12

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    13/37

    SR Flip-Flop

    The simplest binary storage device.

    SR Flip-flop have 2 inputs (SET & RESET)and 2outputs (Q & Q).

    NOTE: Q & Q are complimentsof each other

    The SR flip flop is sometimes referred to as an SR

    latch. The Term latch refers to its use as a

    temporary memory storage device.

    S

    R

    Q

    Q'

    13

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    14/37

    SR Flip-Flop

    Symbol:

    SR Flip-flop (Active HIGH)

    NOR gateSR Flip-flop (Active HIGH)

    Symbol14

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    15/37

    SR Flip-Flop

    Symbol:

    SR Flip-flop (Active LOW)

    NAND gateSR Flip-flop (Active LOW)

    Symbol15

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    16/37

    SR Flip-Flop

    Truth Table:

    SR Flip-flop

    (Active HIGH)

    S R Q Q'

    0 0 NC NC No change. Latchremained in present state.

    1 0 1 0 Latch SET.

    0 1 0 1 Latch RESET.

    1 1 0 0 Invalid condition.

    S' R' Q Q'

    1 1 NC NC No change. Latchremained in present state.

    0 1 1 0 Latch SET.

    1 0 0 1 Latch RESET.

    0 0 1 1 Invalid condition.

    S

    R

    Q

    Q'

    S

    R

    Q

    Q'

    SR Flip-flop

    (Active LOW)16

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    17/37

    SR Flip-Flop

    Timing Diagram:

    17

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    18/37

    What is the mode of operation of the SR flip-flop (set, reset or hold)?

    What is the output at Q from the SR flip-flop (active LOW inputs)?

    Mode of operation = ?

    ?HL

    Low

    Reset

    IQ Test!

    Mode of operation = ??L

    H

    Mode of operation = ??

    HH

    High

    HighHold

    Set

    18

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    19/37

    Clock

    SR Flip-FlopIdentify various types of flip-flops.

    Build SR, JK, T and D flip flop using logic gates.

    Draw the symbol and truth table of SR, JK, T and D flipflop.

    4

    5

    6

    19

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    20/37

    Clock Flip-flops: synchronous bistable devices

    Output changes state at a specified point on a

    triggering input called the clock.

    Change state either at thepositive edge (rising edge) or

    at the negative edge (falling edge)of the clock signal.

    Positive

    edges

    Negative edges

    Clock signal

    20

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    21/37

    ClockSR Flip-Flop

    The Clocked SR Flip Flop likeSR flip-flop but with

    extra third input of a standard clock pulse. The output of Q and NOT Q will not change

    (despite making changes to the inputs Set & Reset)

    in a Clocked RS Flip-flop Until receiving a signal

    from the clock.

    21

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    22/37

    Clock SR Flip-Flop

    Symbol:

    Clock SR Flip-flop (+ve EDGE)

    Combination gateClock SR Flip-flop (+ve EDGE)

    Symbol22

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    23/37

    SQ

    Q'

    CLK

    Pulse

    transitiondetector

    R

    Positive-going transition

    (rising edge)

    CLK

    CLK'

    CLK*

    CLK'

    CLK

    CLK*

    Negative-going transition

    (falling edge)

    CLK'

    CLK

    CLK*

    CLK

    CLK'

    CLK*

    23

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    24/37

    Clock SR Flip-Flop

    Truth Table:

    S-R flip-flop: on the triggering edgeof the clock pulse,

    S=HIGH and R=LOW is a SET state

    R=HIGH (and S=LOW) is a RESET state

    If both SR inputs LOW a NO change

    If both SR inputs HIGH a INVALID

    Truth table of positive edge-triggered S-R flip-flop:

    X = irrelevant (dont care)

    = clock transition LOW to HIGH

    S R CLK Q(t+1) Comments0 0 X Q(t) No change

    0 1 0 Reset1 0 1 Set1 1 ? Invalid

    24

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    25/37

    Clock SR Flip-Flop

    Timing Diagram:

    How if we add clock as input?Please draw the output waveform for me

    (Positive edge triggered)

    25

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    26/37

    D Flip-Flop

    Identify various types of flip-flops.

    Build SR, JK, T and D flip flop using logic gates.

    Draw the symbol and truth table of SR, JK, T and D flipflop.

    4

    5

    6

    26

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    27/37

    D Flip-Flop

    Truth Table:

    D flip-flop: single input D (data)

    D=HIGH a SET state

    D=LOW a RESET state

    Q follows D at the clock edge.

    D flip-flop formed by add NOT gate between SR input.

    D

    C

    Q

    Q'

    S

    C

    R

    Q

    Q'

    CLK

    D D CL K Q(t+1) Comments

    1 1 Set0 0 Reset = clock transition LOW to HIGH

    27

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    28/37

    D Flip-Flop

    Symbol:

    D Flip-flop (+ve EDGE)

    Combination gateD Flip-flop (+ve EDGE)

    Symbol

    DQ

    Q'

    CLK

    28

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    29/37

    D Flip-Flop

    Timing Diagram:

    CLKCLK CLKCLK

    Q

    Q

    29

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    30/37

    JK Flip-Flop

    Identify various types of flip-flops.

    Build SR, JK, T and D flip flop using logic gates.

    Draw the symbol and truth table of SR, JK, T and D flipflop.

    4

    5

    6

    30

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    31/37

    JK Flip-Flop

    J-K flip-flop: Q and Q' are feedback to the pulse-

    steering NAND gates.

    No invalid state.

    Include a toggle state.

    J=HIGH (and K=LOW) a SET state

    K=HIGH (and J=LOW) a RESET state

    If both inputs LOW a NO change

    If both inputs HIGH aToggle

    J

    C

    K

    Q

    Q'

    31

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    32/37

    JK Flip-Flop

    Symbol:

    JK Flip-flop (+ve EDGE)

    Combination gateJK Flip-flop (+ve EDGE)

    Symbol

    JQ

    Q'

    CLK

    K

    32

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    33/37

    JK Flip-Flop

    Truth Table:

    J K CLK Q(t+1) Comments

    0 0 Q(t) No change0 1 0 Reset1 0 1 Set1 1 Q(t)' Toggle

    33

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    34/37

    JK Flip-FlopApplication: Frequency Division

    J

    C

    K

    Q

    CLK

    High

    CLK

    Q

    Divide clock frequency by 2.

    J

    C

    K

    QA

    CLK

    High

    J

    C

    K

    QB

    High

    CLK

    QA

    QB

    Divide clock frequency by 4.

    34

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    35/37

    JK Flip-Flop

    Timing Diagram:Similar to S-R flip-flop but toggles when J = K = 1

    35

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    36/37

    T Flip-Flop

    Identify various types of flip-flops.

    Build SR, JK, T and D flip flop using logic gates.

    Draw the symbol and truth table of SR, JK, T and D flipflop.

    4

    5

    6

    36

  • 8/13/2019 2-3sequantiallogiccircuit-121013033315-phpapp02

    37/37

    T Flip-Flop

    Truth Table:

    T flip-flop: single-input version of theJ-K flip

    flop, formed by tying both inputs together.

    J

    C

    K

    Q

    Q'

    CLK

    T

    TQ

    Q'

    CLK

    T CLK Q(t+1) Comments

    0 Q(t) No change1 Q(t)' Toggle

    37