Title: EET 3350 Digital Systems Design John Wakerly Chapter 7: 7'1 7'2
1EET 3350 Digital Systems Design John Wakerly
Chapter 7 7.1 7.2
- Sequential Circuits
- Flip-Flops
2Combinational 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
3Sequential 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
4Sequential 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
5Sequential 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
6Sequential 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
7Describing Sequential Circuits
- State diagram
- Graphical version of states, inputs, transitions
and outputs
SL machine to recognize that the last four inputs
have been 1
8Describing 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
9Describing Sequential Circuits
- State table
- Alternate format
More about states, tables and diagrams later.
10Types 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
11Types 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
12Types 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
13Synchronous 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
14Memory 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
15Flip-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
16Multivibrator
- 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
17Astable 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
18Monostable 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
19Bistable 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
20Multivibrator Types
21Clock Signal Parameters
- Very important with most sequential circuits
- State variables change state at clock edge.
22Bistable Elements
- The simplest sequential circuit (note feedback)
- Two states
- One state variable, say, Q
HIGH
LOW
Q Stable at 0
LOW
HIGH
23Bistable Elements
- The simplest sequential circuit (note feedback)
- Two states
- One state variable, say, Q
LOW
HIGH
Q Stable at 1
HIGH
LOW
24Analog Analysis
- Assume pure CMOS thresholds, 5.0 V rail
- Theoretical threshold center is 2.5 V
25Analog 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
26Analog 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
27Metastability
- Metastability is inherent in any bistable circuit
- Two stable points, one metastable point
28Another Look at Metastability
- Another mechanical analogy for metastability
29Teeter-Totter Behavior
30Why 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
31Back to the Bistable Circuit
- How to control it?
- add control inputs
- S-R latch
32S-R Latch Operation
33S-R Latch Timing Parameters
- Propagation delay
- Minimum pulse width
34S-R Latch Symbols
35S-R Latch Using NAND Gates
36S-R Latch With Enable
EN
EN
37D Latch or Data Flip-Flop
38D Latch Operation
39D Latch Timing Parameters
- Propagation delay (from C or D)
- Setup time (D before C edge)
- Hold time (D after C edge)
40Edge-Triggered D Flip-Flop Behavior
41D Flip-Flop Timing Parameters
- Propagation delay (from CLK)
- Setup time (D before CLK)
- Hold time (D after CLK)
42TTL 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
43CMOS 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)
44Other D Flip-Flop Variations
45Scan 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.
46J-K Flip-Flops
47T or Toggle Flip-Flops
48Flip-Flop Excitation Tables
- Use these to move to next state
- Used to design the memory control CL circuit
49Flip-Flop Excitation Tables