Professional Documents
Culture Documents
Chapter 5 Updated
Chapter 5 Updated
Chapter 5 Updated
4
Sequential Circuits
◦ acts as storage elements and have memory (store, retain and then retrieve information when
needed)
◦ feedback path
◦ The binary information stored in these memory elements define the state of the sequential circuit a
that time
◦ (inputs, current state) => (outputs, next state)
◦ A sequential circuit is specified by a time sequence of inputs, outputs, and internal states.
◦ synchronous: the transition happens at discrete instants of time
◦ asynchronous: at any instant of time
Feedback path
5
Synchronous sequential Circuits
a master-clock generator: to generate a clock signal having the form of a periodic train of clock pulses
the clock pulses are distributed throughout the system in such a way that storage devices are affected only with the arrival of
each pulse
The clock pulses determine when computational activity will occur with in the circuit
no instability problems and timing can be easily broken down into independent discrete steps
6
Fig. 5.2
Synchronous clocked
sequential circuit
7
Latches and Flip Flops
o A storage element in a digital circuit can maintain a binary state indefinitely (as long as power is
delivered to the circuit), until directed by a input signal to switch states.
o differences among various types of storage elements is based on no: of inputs and the way
inputs affects the binary state
o Latches: operate with signal levels (rather than signal transitions)
• level sensitive devices
o Flip-flops: controlled by a clock transition
• Edge-sensitive devices
o Latches are basic circuits from which all flip-flops are constructed
8
SR latch with NAND
gates
9
SR Latch with Control
input
SR latch with control input
◦ En=0, no change
◦ En=1, output depends inputs S, R
S= S'
0/1
R= R'
Fig. 5.5
SR latch with control input
10
D Latch
◦ eliminate the undesirable conditions of the indeterminate state in the RS flip-flop
◦ D: data
◦ gated D-latch
◦ D Þ Q when En=1; no change when En=0
S= 1/D'
0/1
R= 1/D
11
Fig. 5.7
Graphic symbols for latches
12
DIGITAL LOGIC DESIGN (DLD) EEE241
7
Edge-triggered flip-flops
◦ the state changes during a clock-pulse transition
A D-type positive-edge-triggered flip-flop
Fig. 5.10
D-type positive-edge-triggered flip-flop
8
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 22
Recall D-latch
Fig. 5.10
D-type positive-edge-triggered flip-flop
9
No operation No operation
10
The setup time
◦ D input must be maintained at a
constant value prior to the
application of the positive CP
pulse
11
Summary
◦ CP=0: (S,R) = (1,1), no state change
◦ CP=: state change once
◦ CP=1: state holds
12
Other Flip-Flops
The edge-triggered D flip-flops
◦ The most economical and efficient
◦ Positive-edge and negative-edge
14
TFig.
flip-flop
5.13
T flip-flop
D = T⊕Q = TQ'+T'Q
oT=0: D=Q, no change
oT=1: D=Q’ , Q=Q'
15
Characteristic
tables
16
Characteristic equations
D flip-flop
Q(t+1) = D
JK flip-flop
Q(t+1) = JQ'+K'Q
T flop-flop
Q(t+1) = T⊕Q=TQ’+T’Q
17
Direct inputs
asynchronous set and/or asynchronous reset
18
DIGITAL LOGIC DESIGN (DLD) EEE241
Fig. 5.15
Example of sequential circuit
5-36
State equations
Ax
The behaviour of a clocked sequential circuit can be described
Ax+Bx Ax+Bx
algebraically by means of state equation.
Bx
State Equation transition equation
specifies the next state as a function of the present state and inputs
A(t+1) = A(t)x(t) + B(t)x(t)
B(t+1) = A'(t)x(t)
x’
5-37
State table
The time sequence of inputs, outputs and
flip-flop can be enumerated in a state table
State transition table
◦ = state equations
A(t+1) = Ax + Bx
B(t+1) = A’x
y = (A+B)x‘
A sequential circuit with m flip-flops and n
inputs needs 2m+n rows in the state table.
5-38
State equation
A(t + 1) =Ax + Bx
B(t + 1) = Ax
y = Ax + Bx
5-39
State diagram
State transition diagram
◦ a circle: a state
◦ a directed lines connecting the circles: the (clock-
triggered) transitions between the states
◦ Each directed line is labeled 'inputs/outputs‘
◦ logic diagram Û equations Û a state table Û a state
diagram
Fig. 5.16
State diagram of the circuit of Fig. 5.15
5-40
Flip-flop input equations
The part of circuit that generates the inputs to flip-flops
◦ Also called excitation functions
◦ DA = Ax +Bx
◦ DB = A'x
5-41
Analysis with D flip-flops
The input equation
◦ DA=A⊕x⊕y
The state equation
◦ A(t+1)=A⊕x⊕y
Fig. 5.17
Sequential circuit with D flip-flop
5-42
DIGITAL LOGIC DESIGN (DLD) EEE241
Fig. 5.18
Sequential circuit with JK flip-flop
5-46
◦ JA = B, KA= Bx'
◦ JB = x', KB = A'x + Ax‘
◦ derive the state table
◦ Or, derive the state equations
using characteristic eq.
JK flip-flop characteristic Equation
Q(t+1) = JQ'+K'Q
A(t 1) JA K A
B (t 1) JB K B
A(t 1) BA ( Bx) A AB AB Ax
B(t 1) xB ( A x )B Bx ABx ABx
5-47
State transition diagram
A(t 1) JA K A
B (t 1) JB K B
State equation for A and B:
JA = B, KA= Bx'
JB = x', KB = A'x + Ax‘
Fig. 5.20
Sequential circuit with T flip-flop
5-49
State Table
The input and output functions
◦ TA=Bx
◦ TB= x
◦ y = AB
5-50
Mealy and Moore models
the Mealy model: the outputs are functions of both the present state and inputs
(Fig. 5-15)
◦ the outputs may change if the inputs change during the clock pulse period
◦ the outputs may have momentary false values unless the inputs are synchronized with the clocks
The Moore model: the outputs are functions of the present state only (Fig. 5-20)
◦ The outputs are synchronous with the clocks
5-51
Fig. 5.21
Block diagram of Mealy and Moore state machine
5-52
Example of Mealy Model
Clocked D-flip-flop
Fig. 5.15
Example of sequential circuit
Fig. 5.20
Sequential circuit with T flip-flop