CSE231 Chap 06 P1
CSE231 Chap 06 P1
Terms of Use
(Hyperlinks are active in View Show mode)
Overview
Part 1 - Storage Elements and Analysis
• Introduction to sequential circuits
• Types of sequential circuits
• Storage elements
Latches
Flip-flops
• Sequential circuit analysis
State tables
State diagrams
• Circuit and System Timing
Part 2 - Sequential Circuit Design
• Specification
• Assignment of State Codes
• Implementation
Chapter 6 - Part 1 2
Introduction to Sequential Circuits
Inputs Outputs
A Sequential Combina-tional
Logic
circuit contains:
Storage
Inputs Outputs
Combina-tional
Logic
Storage
Elements
Combinatorial Logic Next
• Next state function State State
Next State = f(Inputs, State)
• Output function (Mealy)
Outputs = g(Inputs, State)
• Output function (Moore)
Outputs = h(State)
Output function type depends on specification and affects the
design significantly
Types of Sequential Circuits
Depends on the times at which:
• storage elements observe their inputs, and
• storage elements change their state
Synchronous
• Behavior defined from knowledge of its signals at discrete
instances of time
• Storage elements observe inputs and can change state only in
relation to a timing signal (clock pulses from a clock)
Asynchronous
• Behavior defined from knowledge of inputs an any instant of
time and the order in continuous time in which inputs change
• If clock just regarded as another input, all circuits are
asynchronous!
• Nevertheless, the synchronous abstraction makes complex
designs tractable!
Synchronous Clocked Sequential Circuit
Timing signal
(clock)
Clock
Clock
aa periodic
periodic external
external event
event (input)
(input) Clock
synchronizes when current state changes happen
synchronizes when current state changes happen
keeps system well-behaved
keeps system well-behaved
makes it easier to design and build large systems
makes it easier to design and build large systems
Basic (NOR) S – R Latch
● SR latch is made from two cross-coupled NORs
● Usually S=0 and R=0
● When Q = 1, the SR-Latch is in the Set state
● When Q = 0, the SR-Latch is in the Reset state
● S=1 and R=1 generates illogical results
Basic (NOR) S – R Latch
0 1 1 0 “Set” Q to 1
0 0 1 0 Now Q “remembers” 1
1 0 0 1 “Reset” Q to 0
0 0 0 1 Now Q “remembers” 0
1 1 0 0 Both go low
0 0 ? ? Unstable!
Basic (NAND) S – R Latch
1 0 1 0 “Set” Q to 1
S = 0, R = 0 is 1 1 1 0 Now Q “remembers” 1
0 1 0 1 “Reset” Q to 0
forbidden as 1 1 0 1 Now Q “remembers” 0
input pattern 0 0 1 1 Both go high
1 1 ? ? Unstable!
Chapter 6 - Part 1 10
Clocked S - R Latch
Adding two NAND S
gates to the basic Q
S - R NAND latch
C
gives the clocked
S – R latch: Q
R
Chapter 6 - Part 1 12
Clocked S - R Latch (continued)
Adding an inverter D
no “indeterminate”
states! The graphic symbol for a
Q D Q(t+1) Comment D Latch is:
0 0 0 No change D Q
0 1 1 Set Q
1 0 0 Clear Q
C Q
1 1 1 No Change
Flip-Flops
Chapter 6 - Part 1 15
The Latch Timing Problem
Chapter 6 - Part 1 16
The Latch Timing Problem (continued)
Consider the following circuit:
D Q Y
Clock
Y
As long as C = 1, the value of Y continues to change!
The changes are based on the delay present on the loop
through the connection from Y back to Y.
This behavior is clearly unacceptable.
Desired behavior: Y changes only once per clock pulse
Chapter 6 - Part 1 17
The Latch Timing Problem (continued)
Chapter 6 - Part 1 18
S-R Master-Slave Flip-Flop
Consists of two clocked
S S S
Q
S-R latches in series C
Q Q
C C
with the clock on the
R R
second latch inverted Q R Q Q
Chapter 6 - Part 1 19
Flip-Flop Problem
The change in the flip-flop output is delayed by
the pulse width which makes the circuit slower or
S and/or R are permitted to change while C = 1
• Suppose Q = 0 and S goes to 1 and then back to 0 with
R remaining at 0
The master latch sets to 1
A 1 is transferred to the slave
• Suppose Q = 0 and S goes to 1 and back to 0 and R
goes to 1 and back to 0
The master latch sets and then resets
A 0 is transferred to the slave
• This behavior is called 1s catching
Chapter 6 - Part 1 20
Flip-Flop Solution
Chapter 6 - Part 1 21
Edge-Triggered D Flip-Flop
The edge-triggered
D D S
D flip-flop is the Q Q Q
C C
slave D flip-flop Q R Q Q
to clock input C C
Q R Q Q
Chapter 6 - Part 1 23
Terms of Use
© 2004 by Pearson Education,Inc. All rights reserved.
The following terms of use apply in addition to the standard Pearson
Education Legal Notice.
Permission is given to incorporate these materials into classroom
presentations and handouts only to instructors adopting Logic and
Computer Design Fundamentals as the course text.
Permission is granted to the instructors adopting the book to post these
materials on a protected website or protected ftp site in original or
modified form. All other website or ftp postings, including those
offering the materials for a fee, are prohibited.
You may not remove or in any way alter this Terms of Use notice or
any trademark, copyright, or other proprietary notice, including the
copyright watermark on each slide.
Return to Title Page
Chapter 6 - Part 1 24