EET 3350 Digital Systems Design John Wakerly Chapter 7: 7'1 7'2 PowerPoint PPT Presentation

presentation player overlay
1 / 49
About This Presentation
Transcript and Presenter's Notes

Title: EET 3350 Digital Systems Design John Wakerly Chapter 7: 7'1 7'2


1
EET 3350 Digital Systems Design John Wakerly
Chapter 7 7.1 7.2
  • Sequential Circuits
  • Flip-Flops

2
Combinational Logic Circuits
  • Output set depends only on the current input set
  • If the input(s) change, the output(s) may change
  • History of the input behavior is not important to
    the future output behavior

n
m
binary values, an n-bit binary number
binary values, an m-bit binary number
3
Sequential Logic Circuits
  • Output depends on current input and history of
    past inputs
  • Information about the past behavior (history) of
    the input(s) is held in memory
  • Memory is finite, holding just enough
    information as defined by design specification

n
m
4
Sequential Logic Circuits
  • Some of the CL outputs are used to control the
    memory elements
  • Outputs from the memory elements are provided as
    inputs to the CL circuit
  • this is a form of feedback
  • Memory may also have an external clock signal
    to control when changes can occur

n
m
5
Sequential Logic Circuits
  • The addition of the extra inputs and outputs
    doesnt change the basic concepts associated with
    the CL part of the circuit
  • it just has more signals
  • Our approach to designing the CL circuit is the
    same as always
  • Need to design the memory part

n
m
6
Sequential Logic Circuits
  • Memory output is considered the circuits
    current state a numerical label
  • State embodies all the information about the past
    needed to define the current output
  • State variables, one or more bits of information
  • Present state, now, waiting
  • Next state, next, with clock

n
m
j
i
binary values, an i-bit or j-bit binary number
7
Describing Sequential Circuits
  • State diagram
  • Graphical version of states, inputs, transitions
    and outputs

SL machine to recognize that the last four inputs
have been 1
8
Describing Sequential Circuits
  • State table
  • For each current-state, specify next-state(s) as
    a function of the present inputs
  • For each current-state, specify the output(s) as
    a function of the present inputs

9
Describing Sequential Circuits
  • State table
  • Alternate format

More about states, tables and diagrams later.
10
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

11
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
    such as
  • Excitation table method
  • State equation method

12
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

13
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

14
Memory Elements
  • Memory elements can be anything that will make a
    past value available at some future time
  • Delays, e.g., a very long wire
  • 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

15
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

16
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

17
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

18
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
19
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 .
  • Thus, it requires two external triggers before it
    returns to its initial state

1
1
0
0
20
Multivibrator Types
  • Mechanical analogy

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

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

HIGH
LOW
Q Stable at 0
LOW
HIGH
23
Bistable Elements
  • The simplest sequential circuit (note feedback)
  • Two states
  • One state variable, say, Q

LOW
HIGH
Q Stable at 1
HIGH
LOW
24
Analog Analysis
  • Assume pure CMOS thresholds, 5.0 V rail
  • Theoretical threshold center is 2.5 V

25
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
26
Analog Analysis
  • Assume pure CMOS thresholds, 5.0 V rail
  • Theoretical threshold center is 2.5 V

2.5 V
2.5 V
2.51 V
4.8 V
0.0 V
Q Stable at 0
2.5 V
2.5 V
4.8 V
0.0 V
5.0 V
27
Metastability
  • Metastability is inherent in any bistable circuit
  • Two stable points, one metastable point

28
Another Look at Metastability
  • Another mechanical analogy for metastability

29
Teeter-Totter Behavior
30
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
  • Details in Chapter-7 flip-flop descriptions and
    in Section 8.9 (later in semester)
  • 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

31
Back to the Bistable Circuit
  • How to control it?
  • add control inputs
  • S-R latch

32
S-R Latch Operation
33
S-R Latch Timing Parameters
  • Propagation delay
  • Minimum pulse width

34
S-R Latch Symbols
35
S-R Latch Using NAND Gates
36
S-R Latch With Enable
EN
EN
37
D Latch or Data Flip-Flop
38
D Latch Operation
39
D Latch Timing Parameters
  • Propagation delay (from C or D)
  • Setup time (D before C edge)
  • Hold time (D after C edge)

40
Edge-Triggered D Flip-Flop Behavior
41
D Flip-Flop Timing Parameters
  • Propagation delay (from CLK)
  • Setup time (D before CLK)
  • Hold time (D after CLK)

42
TTL Edge-Triggered D F-F Circuit
  • Preset and clear inputs
  • like S-R latch
  • 3 feedback loops
  • interesting analysis
  • Light loading on D and C

43
CMOS Edge-Triggered D F-F Circuit
  • Two feedback loops (master and slave latches)
  • Uses transmission gates in feedback loops
  • Interesting analysis method (Sec. 7.9)

44
Other D Flip-Flop Variations
  • Negative-edge triggered

45
Scan Flip-Flops Used for Testing
  • TE 0 gt normal operation
  • TE 1 gt test operation
  • All of the flip-flops are hooked together in a
    daisy chain from external test input TI.
  • Load up (scan in) a test pattern, do one normal
    operation, shift out (scan out) result on TO.

46
J-K Flip-Flops
47
T or Toggle Flip-Flops
  • Important for counters

48
Flip-Flop Excitation Tables
  • Use these to move to next state
  • Used to design the memory control CL circuit

49
Flip-Flop Excitation Tables
Write a Comment
User Comments (0)
About PowerShow.com