Professional Documents
Culture Documents
Latches
Flip-flops
Sequential PLAs
Sequential Circuits
• Output depends on current input and past
history of inputs.
• “State” embodies all the information about the
past needed to predict current output based
on current input.
– State variables, one or more information bits.
Describing Sequential Circuits
• State table
– For each current-state, specify next-states as
function of inputs
– For each current-state, specify outputs as function of
inputs
– Like a separate combinational problem for each state
• State diagram
– Graphical version of state table
1/1
0/0
0/0 q0 q1
1/1
Clock signals
• Very important with most sequential circuits
– State variables change state at clock edge.
Bistable element
HIGH LOW
LOW HIGH
LOW HIGH
HIGH LOW
Analog analysis
• Assume pure CMOS thresholds, 5V rail
• Theoretical threshold center is 2.5 V
Analog analysis
• Assume pure CMOS thresholds, 5V rail
• Theoretical threshold center is 2.5 V
2.51
2.5
4.8 V
5.0 VV 2.5 V
2.0
0.0
2.5 V
2.0
0.0 2.5
4.8 V
5.0 V
Metastability
• Metastability is inherent in any bistable circuit
Metastability is possible
if S and R are negated
simultaneously.
S-R latch timing parameters
• Propagation delay
• Minimum pulse width
S-R latch symbols
S-R latch using NAND gates
also called S R latch
note edge-trigger
clock symbol
Edge-triggered D flip-flop behavior
D flip-flop timing parameters
• Propagation delay (from CLK)
• Setup time (D before CLK)
• Hold time (D after CLK)
Edge-triggered D flip-flop with
asynchronous preset and clear
master slave
• release during low clock ==> slave reverts to cross-coupled inverters, master tracks D
• release during high clock ==> master reverts to cross-coupled inverters, slave tracks master (stable 1)
• release during low-to-high at slave ==> slave captures master, which is already cross-coupled inverters
• release during low-to-high at master ==> master captures D, but slave isolates with stable one
1
1
1
1 0
0
sets
Q=D
stable
1
D’
01
01 1
D
in either case
captured D is stable
tracks D’ (captured D = 1)
trackingor
D’
reverts to 1 (captured D = 0)
Variant: edge-triggered D flip-flop
--- multiplexes input D or output Q to flip-flop
CMOS edge-triggered D circuit
• Two feedback loops (master and slave latches)
• Uses transmission gates in feedback loops
Other D flip-flop variations
• Negative-edge triggered
• Clock enable
• Scan
Scan flip-flops -- for testing
tracking: 1 if set (J = 1, K = 0)
0 if reset (J = 0, K = 1)
Q’ if toggle (J = 1, K = 1)
Q if hold (J = 0, K = 0) stable output
1
0
1
0
1 1
0
1
0
1 1
K’Q
T flip-flops
• Important for counters
Sequential
PALs
• 16R8
One output of 16R8