SlideShare a Scribd company logo
1 of 46
EET 3350 Digital Systems Design

        John Wakerly
      Chapter 7: 7.1 – 7.2

         Sequential Circuits
            Flip-Flops




                                  1
Types of Sequential Circuits
• Two major types:
  – Synchronous – changes in the output are only
    allowed to occur in synchronization with an external
     clock signal
  – Asynchronous – changes in the output are allowed
    to occur whenever there is a change in the input
    signals




                                                       2
Types of Sequential Circuits
• Synchronous Sequential Circuits (also called
  Clocked Sequential Circuits)
  – All signals are synchronized to some “master clock”
  – The memory devices respond only when activated
    by the master clock
  – The most common memory device is a flip-flop
  – Circuits can be designed using systematic methods




                                                      3
Types of Sequential Circuits
• Asynchronous Sequential Circuits
  – Outputs depend solely on the order in which the
    inputs change, so timing is critical
  – Based on time-delay devices
• The design methods used for synchronous
  sequential circuits do not apply to
  asynchronous circuits




                                                      4
Synchronous vs. Asynchronous
• Synchronous circuits have sequential
  elements whose outputs change at the same
  time.
• Asynchronous circuits have sequential
  elements whose outputs change at different
  times.

• Disadvantages of Asynchronous Circuits
  – Difficult to analyze operations
  – Intermediate states that are not part of the desired
    design may be generated

                                                           5
Memory Elements
• Memory elements can be anything that will
  make a past value available at some future
  time
  – A device that can hold a binary value
• Memory elements are typically flip-flops
  – flip-flops and latches
  – Available in several varieties
  – Designer chooses based on application




                                               6
Flip-Flops and Latches
• All digital designers use the name flip-flop for
  a sequential device that normally samples its
  inputs and changes its output only when a
  clocking signal is changing.

• On the other hand, most digital designers use
  the name latch for a sequential device that
  watches its inputs continuously and can
  change its outputs at any time (although in
  some cases requiring an enable signal to be
  asserted)
Flip-Flops and Latches
• Flip-flops have a clock input and synchronous
  outputs
• Latches are asynchronous and their outputs
  can change at anytime
  – May have an enable input
• Flip-flops and Latches are both a type of
  multivibrator circuit




                                                  8
Multivibrator
• Multivibrators are a group of regenerative
  circuits that are used extensively in timing
  applications
• It is a wave shaping circuit which gives
  symmetric or asymmetric square wave outputs

• It has two states either stable or quasi-stable
  depending on the type of multivibrator
  – Astable: not stable, no stable states
  – Monostable: one stable state
  – Bistable: two stable states

                                                    9
Astable Multivibrator
• An astable multivibrator is a free running
  oscillator having two quasi-stable states.
• Thus, there is oscillation between these two
  states and no external signal is required to
  produce the change in state




                                                 10
Monostable Multivibrator
• A monostable multivibrator is one which
  generates a single pulse of specified duration
  in response to each external trigger signal.
• It has only one stable state.
• Application of a trigger causes a change to the
  quasi-stable state.
                                                     1
                                                     0
                                                     1
                                                     0

                                                11
Bistable Multivibrator
• A bistable multivibrator is one that maintains a
  given output voltage level unless an external
  trigger is applied.
• Application of an external trigger signal causes
  a change of state, and this output level is
  maintained indefinitely until an second trigger
  is applied .



                        1                        1
                        0                        0
                                                 12
Multivibrator Types
• Mechanical analogy:
                R

      S
                        Bistable Multivibrator
                        flip-flop, Schmitt Trigger



      T
                        Monostable Multivibrator
                        one-shot



                        Astable Multivibrator
                        oscillator

                                                     13
Clock Signal Parameters
• Very important with most sequential circuits
  – State variables change state at clock edge.




                                                  14
Bistable Elements
• The simplest sequential circuit (note feedback)
• Two states
  – One state variable, say, Q


  HIGH                       LOW


                                    Q Stable at 0


   LOW                      HIGH


                                                15
Bistable Elements
• The simplest sequential circuit (note feedback)
• Two states
  – One state variable, say, Q


  LOW                        HIGH


                                    Q Stable at 1


   HIGH                     LOW


                                                16
Analog Analysis
• Assume pure CMOS thresholds, 5.0 V rail
• Theoretical threshold center is 2.5 V




                                            17
Metastability
• Metastability is inherent in any bistable circuit




• Two stable points, one metastable point
                                                      18
Analog Analysis
• Assume pure CMOS thresholds, 5.0 V rail
• Theoretical threshold center is 2.5 V

  2.5 V                2.5 V




   2.5 V               2.5 V




                                            19
Analog Analysis
• Assume pure CMOS thresholds, 5.0 V rail
• Theoretical threshold center is 2.5 V

  4.8
  2.5 VV
  2.51                 0.0
                       2.0
                       2.5 V


                                  Q Stable at 0


   0.0
   2.0
   2.5 V               5.0
                       4.8 V
                       2.5




                                              20
Another Look at Metastability
• Another mechanical analogy for metastability




A small movement from metastability leads to stability.


                                                      21
Why Worry About Metastability?
• All real systems are subject to it
  – Problems are caused by “asynchronous inputs”
    that do not meet flip-flop setup and hold times

• Especially severe in high-speed systems
  – since clock periods are so short, “metastability
   resolution time” can be longer than one clock
   period

• Many digital designers, products, and
  companies have been burned by this
  phenomenom
                                                       22
Back to the Bistable Circuit
• How to control it?
  – add control inputs
• S-R latch


                           Function Table




                                            23
S-R Latch Operation
Normal Inputs



                                Metastability is possible
                                if S and R are negated
                                simultaneously.




          S & R asserted simultaneously
                                                    24
S-R Latch Timing Parameters
• Propagation delay
• Minimum pulse width   Metastability may also
                        occur if a pulse that is too
                        short is applied to S or R.




                                              25
S-R Latch Symbols




                    26
S_L-R_L Latch Using NAND Gates




               • Active low inputs S_L &
                 R_L
               • When S_L = R_L = 1 latch
                 remembers previous state
               • When both are asserted
                 outputs go to 1, not 0

                                   27
S-R Latch With Enable
                   • When C = 1, behaves
                     as an S-R latch
EN                 • When C = 0, retains its
                     previous state
                   • If both S & R = 1 when
                     C changes from 1 to 0 it
           EN        behaves as an S-R latch
                     in which S & R are
                     negated simultaneously-
                     next state is
                     unpredictable




                                      28
• S-R latches are useful in control applications,
  where we think in terms of setting a flag in
  response to some condition and resetting it
  when conditions change. So, we control the
  set and reset inputs somewhat independently.
• However, we often need latches simply to
  store bits of information- each bit is presented
  on a signal line, and we would like to store it
  somewhere. A D-latch may be used in such an
  application.
D Latch or Data Flip-Flop
                  • Inverter added to
                    generate S & R inputs
                    from the D input
                  • Eliminates the
                    situation where S & R
                    may be asserted
                    simultaneously
                  • The control input is
                    sometimes named
                    ENABLE, CLK or G.
                  • It may be active low in
                    some designs
                  • Always has minimum
                    pulse width
                    requirement

                                    30
D Latch Operation
   • Functional Behaviour




• When C is asserted Q follows D
• Latch is open
• The path between D & Q is transparent
• Transparent latch
• When C is negated latch closes, Q retains its last
  value and does not change in response to D       31
D Latch Timing Parameters
• Propagation delay (from C or D)
• Setup time (D before C edge)
• Hold time (D after C edge)




                                    32
Edge-Triggered D Flip-Flop




• Samples D input and changes its Q & QN output
  only on the rising edge of a controlling clock signal.
• Master is open and follows the input when CLK is 0
• When CLK goes to 1 the Master is closed and its
  output is transferred to the Slave which is open
• The slave is open when CLK is 1, but changes only
  at the beginning of the interval, as Master is closed
Functional Behavior of PET D flip flop
D Flip-Flop Timing Parameters
• Propagation delay (from CLK)
• Setup time (D before CLK)
• Hold time (D after CLK)




                                    35
J-K Flip-Flops
Functional Equivalent




                        36
JK Characteristic Table          JK Excitation Table
      J   K    Q   Q+                Q   Q+   J   K

      0   0    0   0                 0   0    0   X
      0   0    1   1                 0   1    1   X
      0   1    0   0                 1   0    X   1
      0   1    1   0                 1   1    X   0
      1   0    0   1
      1   0    1   1
      1   1    0   1
      1   1    1   0


              K-Map for Q+
     JK / Q        0         1
                                  JK Characteristic Eqn
     00            0         1
     01            0         0       Q+ = J·Q' + K'·Q
     11            1         0
     10            1         1
T or Toggle Flip-Flops
• Important for counters




                                   38
Summary of Flip-Flop Behavior




                                39
Additional Definitions
• Clocked Synchronous Sequential Circuits
  – A.K.A. “finite state machines” or simply
    “state machines” … or even “FSM”
  – Use edge-triggered flip-flops
  – All flip-flops are triggered from the same
    master clock signal, and therefore all
    change state together
• Two types of finite state machines
  – Mealy M achines: output depends on state
    and inputs
  – Moore Machines: output only depends on
    state

                                                 40
State-Machine Structure: Mealy
                        output depends on
                        state and input




                  typically edge-triggered
                  D flip-flops

                                       41
State-Machine Structure: Moore
                           output depends
                           on state only




                  typically edge-triggered
                  D flip-flops

                                       42
State-Machine Structure: Pipelined




• Often used in PLD-based state machines
  – Outputs taken directly from flip-flops, valid sooner
    after clock edge
  – But the “output logic” must determine output value
    one clock tick sooner (“pipelined”)

                                                           43
Notation and Characteristic Equations
• Q+, Q*, Q(t+1) mean “the next value of Q”
• “Excitation” is the input applied to a device that
  determines the next state.
• “Characteristic equation” specifies the next
  state of a device as a function of its excitation.
• S-R flip-flop : Q(t+1) = S + R · Q(t)
• Edge-triggered D flip-flop: Q(t+1) = D
• J-K flip-flop: Q(t+1) = J · Q(t) + K · Q(t)
• T flip-flip: Q(t+1) = T + Q(t) = T · Q(t) + T ·
  Q(t)

                                                  44
Synchronous Analysis Process

1. Determine next-state function F and output function G
2. Use F and G to construct a state/output table that
   completely specifies the next state and output for
   every possible combination of current state and input.
3. (Optional) Draw state diagram that presents the
   information in graphical form.




                                                        45
Detailed steps in the Analysis Process
1. Determine the excitation equations for the flip flop inputs
2. Substitute the excitation equations into the flip flop
   characteristic equations to obtain transition equations.
3. Use transition equations to construct transition table.
4. Determine the output equations.
5. Add output values to the transition table for each state
   (Moore) or state /input combination (Mealy) to create a
   transition/output table.
6. Name the states and substitute state names for state –
   variable combinations in the transition/output table to
   obtain the state/output table.
7. Draw a state diagram corresponding to the state/output
   table.

More Related Content

What's hot

MOSFET Small signal model
MOSFET Small signal modelMOSFET Small signal model
MOSFET Small signal modelTeam-VLSI-ITMU
 
Synchronous and asynchronous clock
Synchronous and asynchronous clockSynchronous and asynchronous clock
Synchronous and asynchronous clockNallapati Anindra
 
Ic voltage regulators
Ic voltage regulatorsIc voltage regulators
Ic voltage regulatorsAnita Thattil
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - CountersJayakrishnan J
 
Overview of Shift register and applications
Overview of Shift register and applicationsOverview of Shift register and applications
Overview of Shift register and applicationsKarthik Kumar
 
NMOS PPT for 2nd year
NMOS PPT for 2nd yearNMOS PPT for 2nd year
NMOS PPT for 2nd yearfaltuthings
 
Clock divider by 3
Clock divider by 3Clock divider by 3
Clock divider by 3Ashok Reddy
 
Verilog presentation final
Verilog presentation finalVerilog presentation final
Verilog presentation finalAnkur Gupta
 
Different electronics circuit design process
Different electronics circuit design processDifferent electronics circuit design process
Different electronics circuit design processelprocus
 

What's hot (20)

MOSFET Small signal model
MOSFET Small signal modelMOSFET Small signal model
MOSFET Small signal model
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
Counters
CountersCounters
Counters
 
Stick Diagram
Stick DiagramStick Diagram
Stick Diagram
 
Synchronous and asynchronous clock
Synchronous and asynchronous clockSynchronous and asynchronous clock
Synchronous and asynchronous clock
 
Ic voltage regulators
Ic voltage regulatorsIc voltage regulators
Ic voltage regulators
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - Counters
 
Pass Transistor Logic
Pass Transistor LogicPass Transistor Logic
Pass Transistor Logic
 
Overview of Shift register and applications
Overview of Shift register and applicationsOverview of Shift register and applications
Overview of Shift register and applications
 
NMOS PPT for 2nd year
NMOS PPT for 2nd yearNMOS PPT for 2nd year
NMOS PPT for 2nd year
 
Sample and hold circuit
Sample and hold circuitSample and hold circuit
Sample and hold circuit
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Clock divider by 3
Clock divider by 3Clock divider by 3
Clock divider by 3
 
Power Gating
Power GatingPower Gating
Power Gating
 
Verilog presentation final
Verilog presentation finalVerilog presentation final
Verilog presentation final
 
Switch level modeling
Switch level modelingSwitch level modeling
Switch level modeling
 
Counters
CountersCounters
Counters
 
Different electronics circuit design process
Different electronics circuit design processDifferent electronics circuit design process
Different electronics circuit design process
 
Registers
RegistersRegisters
Registers
 

Viewers also liked

Sequential circuits in digital logic design
Sequential circuits in digital logic designSequential circuits in digital logic design
Sequential circuits in digital logic designNallapati Anindra
 
Sequential Circuits - Flip Flops (Part 1)
Sequential Circuits - Flip Flops (Part 1)Sequential Circuits - Flip Flops (Part 1)
Sequential Circuits - Flip Flops (Part 1)Abhilash Nair
 
Sequential Circuits - Flip Flops
Sequential Circuits - Flip FlopsSequential Circuits - Flip Flops
Sequential Circuits - Flip FlopsAbhilash Nair
 
Flip flops, counters & registers
Flip flops, counters & registersFlip flops, counters & registers
Flip flops, counters & registersDharit Unadkat
 
SEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGN
SEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGNSEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGN
SEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGNQAU ISLAMABAD,PAKISTAN
 
2.3 sequantial logic circuit
2.3 sequantial logic circuit2.3 sequantial logic circuit
2.3 sequantial logic circuitWan Afirah
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic CircuitRamasubbu .P
 
Combinational Circuits & Sequential Circuits
Combinational Circuits & Sequential CircuitsCombinational Circuits & Sequential Circuits
Combinational Circuits & Sequential Circuitsgourav kottawar
 
Flip flop’s state tables & diagrams
Flip flop’s state tables & diagramsFlip flop’s state tables & diagrams
Flip flop’s state tables & diagramsSunny Khatana
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuitsSARITHA REDDY
 
Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicJames Evangelos
 
Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1Sarah Sue Calbio
 
Chapter 4 flip flop for students
Chapter 4 flip flop for studentsChapter 4 flip flop for students
Chapter 4 flip flop for studentsCT Sabariah Salihin
 
Sequential circuit design
Sequential circuit designSequential circuit design
Sequential circuit designSatya P. Joshi
 
Sequential logics 1
Sequential logics 1Sequential logics 1
Sequential logics 1faiqikhan
 

Viewers also liked (20)

Sequential circuits in digital logic design
Sequential circuits in digital logic designSequential circuits in digital logic design
Sequential circuits in digital logic design
 
Sequential Circuits - Flip Flops (Part 1)
Sequential Circuits - Flip Flops (Part 1)Sequential Circuits - Flip Flops (Part 1)
Sequential Circuits - Flip Flops (Part 1)
 
Sequential Circuits - Flip Flops
Sequential Circuits - Flip FlopsSequential Circuits - Flip Flops
Sequential Circuits - Flip Flops
 
Flip flops, counters & registers
Flip flops, counters & registersFlip flops, counters & registers
Flip flops, counters & registers
 
SEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGN
SEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGNSEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGN
SEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGN
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
2.3 sequantial logic circuit
2.3 sequantial logic circuit2.3 sequantial logic circuit
2.3 sequantial logic circuit
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Combinational Circuits & Sequential Circuits
Combinational Circuits & Sequential CircuitsCombinational Circuits & Sequential Circuits
Combinational Circuits & Sequential Circuits
 
Flip flop’s state tables & diagrams
Flip flop’s state tables & diagramsFlip flop’s state tables & diagrams
Flip flop’s state tables & diagrams
 
FPGA
FPGAFPGA
FPGA
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential Logic
 
Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1
 
Chapter 5 counter
Chapter 5 counterChapter 5 counter
Chapter 5 counter
 
Chapter 4 flip flop for students
Chapter 4 flip flop for studentsChapter 4 flip flop for students
Chapter 4 flip flop for students
 
Sequential circuit design
Sequential circuit designSequential circuit design
Sequential circuit design
 
Sequential logics 1
Sequential logics 1Sequential logics 1
Sequential logics 1
 
Demultiplexers
DemultiplexersDemultiplexers
Demultiplexers
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 

Similar to EET 3350 Digital Systems Design Chapter 7 Flip-Flops Types

Introduction to flipflops basic of elctronics COA.pptx
Introduction to flipflops basic of elctronics COA.pptxIntroduction to flipflops basic of elctronics COA.pptx
Introduction to flipflops basic of elctronics COA.pptxSaini71
 
IC 555 TIMER Introduction, Modes & Application.pptx
IC 555 TIMER Introduction, Modes & Application.pptxIC 555 TIMER Introduction, Modes & Application.pptx
IC 555 TIMER Introduction, Modes & Application.pptxanindyapal288
 
Sequential circuit
Sequential circuitSequential circuit
Sequential circuitBrenda Debra
 
14827 shift registers
14827 shift registers14827 shift registers
14827 shift registersSandeep Kumar
 
Dual and cyclo converter
Dual and cyclo converterDual and cyclo converter
Dual and cyclo converterRutika Abhang
 
Digital ic ajal crc
Digital ic ajal crcDigital ic ajal crc
Digital ic ajal crcAJAL A J
 
Digital Electronics – Unit III.pdf
Digital Electronics – Unit III.pdfDigital Electronics – Unit III.pdf
Digital Electronics – Unit III.pdfKannan Kanagaraj
 
IS 151 Lecture 10
IS 151 Lecture 10IS 151 Lecture 10
IS 151 Lecture 10wajanga
 
Silicon controlled rectifier
Silicon controlled rectifierSilicon controlled rectifier
Silicon controlled rectifierpavan chauda
 
power electronics(ii)
power electronics(ii)power electronics(ii)
power electronics(ii)Darya khan
 
SE ECS EC Module6 555 Timer.pdf
SE ECS EC Module6 555  Timer.pdfSE ECS EC Module6 555  Timer.pdf
SE ECS EC Module6 555 Timer.pdframkumar649780
 
Presentation - RMAE - Copy(1)-final (1).pptx
Presentation - RMAE - Copy(1)-final  (1).pptxPresentation - RMAE - Copy(1)-final  (1).pptx
Presentation - RMAE - Copy(1)-final (1).pptxVishalPurohit30
 

Similar to EET 3350 Digital Systems Design Chapter 7 Flip-Flops Types (20)

Introduction to flipflops basic of elctronics COA.pptx
Introduction to flipflops basic of elctronics COA.pptxIntroduction to flipflops basic of elctronics COA.pptx
Introduction to flipflops basic of elctronics COA.pptx
 
IC 555 TIMER Introduction, Modes & Application.pptx
IC 555 TIMER Introduction, Modes & Application.pptxIC 555 TIMER Introduction, Modes & Application.pptx
IC 555 TIMER Introduction, Modes & Application.pptx
 
Logic Gate
Logic GateLogic Gate
Logic Gate
 
Sensors
SensorsSensors
Sensors
 
Oscillators (1)
Oscillators (1)Oscillators (1)
Oscillators (1)
 
Sequential circuit
Sequential circuitSequential circuit
Sequential circuit
 
14827 shift registers
14827 shift registers14827 shift registers
14827 shift registers
 
latchesflip-flop DLD
latchesflip-flop DLDlatchesflip-flop DLD
latchesflip-flop DLD
 
Latches & flip flop
Latches & flip flopLatches & flip flop
Latches & flip flop
 
Dual and cyclo converter
Dual and cyclo converterDual and cyclo converter
Dual and cyclo converter
 
Digital ic ajal crc
Digital ic ajal crcDigital ic ajal crc
Digital ic ajal crc
 
Sensors
SensorsSensors
Sensors
 
Digital Electronics – Unit III.pdf
Digital Electronics – Unit III.pdfDigital Electronics – Unit III.pdf
Digital Electronics – Unit III.pdf
 
IS 151 Lecture 10
IS 151 Lecture 10IS 151 Lecture 10
IS 151 Lecture 10
 
PLC
PLCPLC
PLC
 
Silicon controlled rectifier
Silicon controlled rectifierSilicon controlled rectifier
Silicon controlled rectifier
 
power electronics(ii)
power electronics(ii)power electronics(ii)
power electronics(ii)
 
SE ECS EC Module6 555 Timer.pdf
SE ECS EC Module6 555  Timer.pdfSE ECS EC Module6 555  Timer.pdf
SE ECS EC Module6 555 Timer.pdf
 
Multivibrators.pptx
Multivibrators.pptxMultivibrators.pptx
Multivibrators.pptx
 
Presentation - RMAE - Copy(1)-final (1).pptx
Presentation - RMAE - Copy(1)-final  (1).pptxPresentation - RMAE - Copy(1)-final  (1).pptx
Presentation - RMAE - Copy(1)-final (1).pptx
 

More from Abhilash Nair

Designing Clocked Synchronous State Machine
Designing Clocked Synchronous State MachineDesigning Clocked Synchronous State Machine
Designing Clocked Synchronous State MachineAbhilash Nair
 
VHDL - Enumerated Types (Part 3)
VHDL - Enumerated Types (Part 3)VHDL - Enumerated Types (Part 3)
VHDL - Enumerated Types (Part 3)Abhilash Nair
 
Introduction to VHDL - Part 1
Introduction to VHDL - Part 1Introduction to VHDL - Part 1
Introduction to VHDL - Part 1Abhilash Nair
 
Feedback Sequential Circuits
Feedback Sequential CircuitsFeedback Sequential Circuits
Feedback Sequential CircuitsAbhilash Nair
 
Designing State Machine
Designing State MachineDesigning State Machine
Designing State MachineAbhilash Nair
 
State Machine Design and Synthesis
State Machine Design and SynthesisState Machine Design and Synthesis
State Machine Design and SynthesisAbhilash Nair
 
Synchronous design process
Synchronous design processSynchronous design process
Synchronous design processAbhilash Nair
 
Analysis of state machines & Conversion of models
Analysis of state machines & Conversion of modelsAnalysis of state machines & Conversion of models
Analysis of state machines & Conversion of modelsAbhilash Nair
 
Analysis of state machines
Analysis of state machinesAnalysis of state machines
Analysis of state machinesAbhilash Nair
 
Static and Dynamic Read/Write memories
Static and Dynamic Read/Write memoriesStatic and Dynamic Read/Write memories
Static and Dynamic Read/Write memoriesAbhilash Nair
 
Documentation Standards of an IC
Documentation Standards of an ICDocumentation Standards of an IC
Documentation Standards of an ICAbhilash Nair
 

More from Abhilash Nair (20)

VHDL Part 4
VHDL Part 4VHDL Part 4
VHDL Part 4
 
Designing Clocked Synchronous State Machine
Designing Clocked Synchronous State MachineDesigning Clocked Synchronous State Machine
Designing Clocked Synchronous State Machine
 
MSI Shift Registers
MSI Shift RegistersMSI Shift Registers
MSI Shift Registers
 
VHDL - Enumerated Types (Part 3)
VHDL - Enumerated Types (Part 3)VHDL - Enumerated Types (Part 3)
VHDL - Enumerated Types (Part 3)
 
VHDL - Part 2
VHDL - Part 2VHDL - Part 2
VHDL - Part 2
 
Introduction to VHDL - Part 1
Introduction to VHDL - Part 1Introduction to VHDL - Part 1
Introduction to VHDL - Part 1
 
Feedback Sequential Circuits
Feedback Sequential CircuitsFeedback Sequential Circuits
Feedback Sequential Circuits
 
Designing State Machine
Designing State MachineDesigning State Machine
Designing State Machine
 
State Machine Design and Synthesis
State Machine Design and SynthesisState Machine Design and Synthesis
State Machine Design and Synthesis
 
Synchronous design process
Synchronous design processSynchronous design process
Synchronous design process
 
Analysis of state machines & Conversion of models
Analysis of state machines & Conversion of modelsAnalysis of state machines & Conversion of models
Analysis of state machines & Conversion of models
 
Analysis of state machines
Analysis of state machinesAnalysis of state machines
Analysis of state machines
 
FPLDs
FPLDsFPLDs
FPLDs
 
CPLDs
CPLDsCPLDs
CPLDs
 
CPLD & FPLD
CPLD & FPLDCPLD & FPLD
CPLD & FPLD
 
CPLDs
CPLDsCPLDs
CPLDs
 
CPLDs
CPLDsCPLDs
CPLDs
 
Static and Dynamic Read/Write memories
Static and Dynamic Read/Write memoriesStatic and Dynamic Read/Write memories
Static and Dynamic Read/Write memories
 
Documentation Standards of an IC
Documentation Standards of an ICDocumentation Standards of an IC
Documentation Standards of an IC
 
MSI Counters
MSI CountersMSI Counters
MSI Counters
 

Recently uploaded

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 

Recently uploaded (20)

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 

EET 3350 Digital Systems Design Chapter 7 Flip-Flops Types

  • 1. EET 3350 Digital Systems Design John Wakerly Chapter 7: 7.1 – 7.2 Sequential Circuits Flip-Flops 1
  • 2. Types of Sequential Circuits • Two major types: – Synchronous – changes in the output are only allowed to occur in synchronization with an external clock signal – Asynchronous – changes in the output are allowed to occur whenever there is a change in the input signals 2
  • 3. Types of Sequential Circuits • Synchronous Sequential Circuits (also called Clocked Sequential Circuits) – All signals are synchronized to some “master clock” – The memory devices respond only when activated by the master clock – The most common memory device is a flip-flop – Circuits can be designed using systematic methods 3
  • 4. Types of Sequential Circuits • Asynchronous Sequential Circuits – Outputs depend solely on the order in which the inputs change, so timing is critical – Based on time-delay devices • The design methods used for synchronous sequential circuits do not apply to asynchronous circuits 4
  • 5. Synchronous vs. Asynchronous • Synchronous circuits have sequential elements whose outputs change at the same time. • Asynchronous circuits have sequential elements whose outputs change at different times. • Disadvantages of Asynchronous Circuits – Difficult to analyze operations – Intermediate states that are not part of the desired design may be generated 5
  • 6. Memory Elements • Memory elements can be anything that will make a past value available at some future time – A device that can hold a binary value • Memory elements are typically flip-flops – flip-flops and latches – Available in several varieties – Designer chooses based on application 6
  • 7. Flip-Flops and Latches • All digital designers use the name flip-flop for a sequential device that normally samples its inputs and changes its output only when a clocking signal is changing. • On the other hand, most digital designers use the name latch for a sequential device that watches its inputs continuously and can change its outputs at any time (although in some cases requiring an enable signal to be asserted)
  • 8. Flip-Flops and Latches • Flip-flops have a clock input and synchronous outputs • Latches are asynchronous and their outputs can change at anytime – May have an enable input • Flip-flops and Latches are both a type of multivibrator circuit 8
  • 9. Multivibrator • Multivibrators are a group of regenerative circuits that are used extensively in timing applications • It is a wave shaping circuit which gives symmetric or asymmetric square wave outputs • It has two states either stable or quasi-stable depending on the type of multivibrator – Astable: not stable, no stable states – Monostable: one stable state – Bistable: two stable states 9
  • 10. Astable Multivibrator • An astable multivibrator is a free running oscillator having two quasi-stable states. • Thus, there is oscillation between these two states and no external signal is required to produce the change in state 10
  • 11. Monostable Multivibrator • A monostable multivibrator is one which generates a single pulse of specified duration in response to each external trigger signal. • It has only one stable state. • Application of a trigger causes a change to the quasi-stable state. 1 0 1 0 11
  • 12. Bistable Multivibrator • A bistable multivibrator is one that maintains a given output voltage level unless an external trigger is applied. • Application of an external trigger signal causes a change of state, and this output level is maintained indefinitely until an second trigger is applied . 1 1 0 0 12
  • 13. Multivibrator Types • Mechanical analogy: R S Bistable Multivibrator flip-flop, Schmitt Trigger T Monostable Multivibrator one-shot Astable Multivibrator oscillator 13
  • 14. Clock Signal Parameters • Very important with most sequential circuits – State variables change state at clock edge. 14
  • 15. Bistable Elements • The simplest sequential circuit (note feedback) • Two states – One state variable, say, Q HIGH LOW Q Stable at 0 LOW HIGH 15
  • 16. Bistable Elements • The simplest sequential circuit (note feedback) • Two states – One state variable, say, Q LOW HIGH Q Stable at 1 HIGH LOW 16
  • 17. Analog Analysis • Assume pure CMOS thresholds, 5.0 V rail • Theoretical threshold center is 2.5 V 17
  • 18. Metastability • Metastability is inherent in any bistable circuit • Two stable points, one metastable point 18
  • 19. Analog Analysis • Assume pure CMOS thresholds, 5.0 V rail • Theoretical threshold center is 2.5 V 2.5 V 2.5 V 2.5 V 2.5 V 19
  • 20. Analog Analysis • Assume pure CMOS thresholds, 5.0 V rail • Theoretical threshold center is 2.5 V 4.8 2.5 VV 2.51 0.0 2.0 2.5 V Q Stable at 0 0.0 2.0 2.5 V 5.0 4.8 V 2.5 20
  • 21. Another Look at Metastability • Another mechanical analogy for metastability A small movement from metastability leads to stability. 21
  • 22. Why Worry About Metastability? • All real systems are subject to it – Problems are caused by “asynchronous inputs” that do not meet flip-flop setup and hold times • Especially severe in high-speed systems – since clock periods are so short, “metastability resolution time” can be longer than one clock period • Many digital designers, products, and companies have been burned by this phenomenom 22
  • 23. Back to the Bistable Circuit • How to control it? – add control inputs • S-R latch Function Table 23
  • 24. S-R Latch Operation Normal Inputs Metastability is possible if S and R are negated simultaneously. S & R asserted simultaneously 24
  • 25. S-R Latch Timing Parameters • Propagation delay • Minimum pulse width Metastability may also occur if a pulse that is too short is applied to S or R. 25
  • 27. S_L-R_L Latch Using NAND Gates • Active low inputs S_L & R_L • When S_L = R_L = 1 latch remembers previous state • When both are asserted outputs go to 1, not 0 27
  • 28. S-R Latch With Enable • When C = 1, behaves as an S-R latch EN • When C = 0, retains its previous state • If both S & R = 1 when C changes from 1 to 0 it EN behaves as an S-R latch in which S & R are negated simultaneously- next state is unpredictable 28
  • 29. • S-R latches are useful in control applications, where we think in terms of setting a flag in response to some condition and resetting it when conditions change. So, we control the set and reset inputs somewhat independently. • However, we often need latches simply to store bits of information- each bit is presented on a signal line, and we would like to store it somewhere. A D-latch may be used in such an application.
  • 30. D Latch or Data Flip-Flop • Inverter added to generate S & R inputs from the D input • Eliminates the situation where S & R may be asserted simultaneously • The control input is sometimes named ENABLE, CLK or G. • It may be active low in some designs • Always has minimum pulse width requirement 30
  • 31. D Latch Operation • Functional Behaviour • When C is asserted Q follows D • Latch is open • The path between D & Q is transparent • Transparent latch • When C is negated latch closes, Q retains its last value and does not change in response to D 31
  • 32. D Latch Timing Parameters • Propagation delay (from C or D) • Setup time (D before C edge) • Hold time (D after C edge) 32
  • 33. Edge-Triggered D Flip-Flop • Samples D input and changes its Q & QN output only on the rising edge of a controlling clock signal. • Master is open and follows the input when CLK is 0 • When CLK goes to 1 the Master is closed and its output is transferred to the Slave which is open • The slave is open when CLK is 1, but changes only at the beginning of the interval, as Master is closed
  • 34. Functional Behavior of PET D flip flop
  • 35. D Flip-Flop Timing Parameters • Propagation delay (from CLK) • Setup time (D before CLK) • Hold time (D after CLK) 35
  • 37. JK Characteristic Table JK Excitation Table J K Q Q+ Q Q+ J K 0 0 0 0 0 0 0 X 0 0 1 1 0 1 1 X 0 1 0 0 1 0 X 1 0 1 1 0 1 1 X 0 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 0 K-Map for Q+ JK / Q 0 1 JK Characteristic Eqn 00 0 1 01 0 0 Q+ = J·Q' + K'·Q 11 1 0 10 1 1
  • 38. T or Toggle Flip-Flops • Important for counters 38
  • 39. Summary of Flip-Flop Behavior 39
  • 40. Additional Definitions • Clocked Synchronous Sequential Circuits – A.K.A. “finite state machines” or simply “state machines” … or even “FSM” – Use edge-triggered flip-flops – All flip-flops are triggered from the same master clock signal, and therefore all change state together • Two types of finite state machines – Mealy M achines: output depends on state and inputs – Moore Machines: output only depends on state 40
  • 41. State-Machine Structure: Mealy output depends on state and input typically edge-triggered D flip-flops 41
  • 42. State-Machine Structure: Moore output depends on state only typically edge-triggered D flip-flops 42
  • 43. State-Machine Structure: Pipelined • Often used in PLD-based state machines – Outputs taken directly from flip-flops, valid sooner after clock edge – But the “output logic” must determine output value one clock tick sooner (“pipelined”) 43
  • 44. Notation and Characteristic Equations • Q+, Q*, Q(t+1) mean “the next value of Q” • “Excitation” is the input applied to a device that determines the next state. • “Characteristic equation” specifies the next state of a device as a function of its excitation. • S-R flip-flop : Q(t+1) = S + R · Q(t) • Edge-triggered D flip-flop: Q(t+1) = D • J-K flip-flop: Q(t+1) = J · Q(t) + K · Q(t) • T flip-flip: Q(t+1) = T + Q(t) = T · Q(t) + T · Q(t) 44
  • 45. Synchronous Analysis Process 1. Determine next-state function F and output function G 2. Use F and G to construct a state/output table that completely specifies the next state and output for every possible combination of current state and input. 3. (Optional) Draw state diagram that presents the information in graphical form. 45
  • 46. Detailed steps in the Analysis Process 1. Determine the excitation equations for the flip flop inputs 2. Substitute the excitation equations into the flip flop characteristic equations to obtain transition equations. 3. Use transition equations to construct transition table. 4. Determine the output equations. 5. Add output values to the transition table for each state (Moore) or state /input combination (Mealy) to create a transition/output table. 6. Name the states and substitute state names for state – variable combinations in the transition/output table to obtain the state/output table. 7. Draw a state diagram corresponding to the state/output table.