SlideShare uma empresa Scribd logo
1 de 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.

Mais conteúdo relacionado

Mais procurados (20)

Mos transistor
Mos transistorMos transistor
Mos transistor
 
Tunnel diode
Tunnel diodeTunnel diode
Tunnel diode
 
Sequential cmos logic circuits
Sequential cmos logic circuitsSequential cmos logic circuits
Sequential cmos logic circuits
 
Mosfet
MosfetMosfet
Mosfet
 
MOS transistor 13
MOS transistor 13MOS transistor 13
MOS transistor 13
 
PLDs
PLDsPLDs
PLDs
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Logic families
Logic  familiesLogic  families
Logic families
 
transistor transistor logic
transistor transistor logictransistor transistor logic
transistor transistor logic
 
TTL Driving CMOS - Digital Electronic Presentation ALA 2018
TTL Driving CMOS - Digital Electronic Presentation ALA 2018TTL Driving CMOS - Digital Electronic Presentation ALA 2018
TTL Driving CMOS - Digital Electronic Presentation ALA 2018
 
Lic ic fabrication
Lic ic fabricationLic ic fabrication
Lic ic fabrication
 
Two Port Network Parameters
Two Port Network ParametersTwo Port Network Parameters
Two Port Network Parameters
 
Mosfet
MosfetMosfet
Mosfet
 
14827 shift registers
14827 shift registers14827 shift registers
14827 shift registers
 
Fpga architectures and applications
Fpga architectures and applicationsFpga architectures and applications
Fpga architectures and applications
 
flip flops
flip flops flip flops
flip flops
 
LINEAR INTEGRATED CIRCUITS
LINEAR INTEGRATED CIRCUITSLINEAR INTEGRATED CIRCUITS
LINEAR INTEGRATED CIRCUITS
 
Flip Flop & RS Latch
Flip Flop & RS LatchFlip Flop & RS Latch
Flip Flop & RS Latch
 
Digital Logic circuit
Digital Logic circuitDigital Logic circuit
Digital Logic circuit
 
Clippers and clampers
Clippers and clampersClippers and clampers
Clippers and clampers
 

Destaque

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
 
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
 

Destaque (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
 
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
 
BE PPT (FLIP FLOPS)
BE PPT (FLIP FLOPS)BE PPT (FLIP FLOPS)
BE PPT (FLIP FLOPS)
 

Semelhante a Sequential Circuits - Flip Flops (Part 2)

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
 
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
 
logic Basics of Sequential Circuits.docx
logic Basics of Sequential Circuits.docxlogic Basics of Sequential Circuits.docx
logic Basics of Sequential Circuits.docxERMIASAmanuel1
 
logic Basics of Sequential Circuits.docx
logic Basics of Sequential Circuits.docxlogic Basics of Sequential Circuits.docx
logic Basics of Sequential Circuits.docxERMIASAmanuel1
 
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
 

Semelhante a Sequential Circuits - Flip Flops (Part 2) (20)

Shift Registers
Shift RegistersShift Registers
Shift Registers
 
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
 
Counters
CountersCounters
Counters
 
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
 
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
 
logic Basics of Sequential Circuits.docx
logic Basics of Sequential Circuits.docxlogic Basics of Sequential Circuits.docx
logic Basics of Sequential Circuits.docx
 
logic Basics of Sequential Circuits.docx
logic Basics of Sequential Circuits.docxlogic Basics of Sequential Circuits.docx
logic Basics of Sequential Circuits.docx
 
Silicon controlled rectifier
Silicon controlled rectifierSilicon controlled rectifier
Silicon controlled rectifier
 
power electronics(ii)
power electronics(ii)power electronics(ii)
power electronics(ii)
 

Mais de 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
 

Mais de 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
 

Último

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 

Último (20)

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 

Sequential Circuits - Flip Flops (Part 2)

  • 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.