DF 1
DF 1
Input
s Combination
al Logic
Nex
Storag Stat
e e t
Element Stat
s
★ Combinational Ckt : outputs at any instant ofetime
entirely dependent on the input present at that time.
★ Sequential Ckt : combinational ckt + memory elements
● Memory elements are devices capable of storing binary
information.
● The binary information stored at any given time defines state of the
sequential ckt.
● Output = external input + present state of the memory elements
Sequential Circuits Vs Combinational Circuits
Types of Sequential Circuits
★ Asynchronous
Input Output
s Combinational s
Circuit
Memory
Elements
★ Synchronous
Input Output
s Combinational s
Circuit
Flip-flops
Clock
5
Flip Flop/Latch
7
Latches
★ SR Latch S R Q0 Q Q’
0 0 0 0 1 Q = Q0
0 0
0 1
Initial Value
8
Latches
★ SR Latch
S R Q0 Q Q’
0 0 0 0 1 Q = Q0
0 0 1 1 0 Q=
0 1 Q0
0 0
9
Latches
★ SR Latch
S R Q0 Q Q’
0 0 0 0 1
Q = Q0
0 0 1 1 0
0 1 0 0 1 Q=0
1 0
0 1
10
Latches
★ SR Latch
S R Q0 Q Q’
0 0 0 0 1
Q = Q0
0 0 1 1 0
0 1 0 0 1 Q=0
1 1 0 1 1 0 1 Q=0
0 0
11
Latches
★ SR Latch
S R Q0 Q Q’
0 0 0 0 1
Q = Q0
0 0 1 1 0
0 1 0 0 1
0 0 0 1 1 0 1
Q=0
1 0 0 1 0 Q=1
1 1
12
Latches
★ SR Latch
S R Q0 Q Q’
0 0 0 0 1
Q = Q0
0 0 1 1 0
0 1 0 0 1
0 1 0 1 1 0 1
Q=0
1 0 0 1 0 Q=1
1 0 1 1 0 Q=1
1 0
13
Latches
★ SR Latch
S R Q0 Q Q’
0 0 0 0 1
Q = Q0
0 0 1 1 0
0 1 0 0 1
1 0 0 1 1 0 1
Q=0
1 0 0 1 0
Q=1
1 0 1 1 0
1 1 0 0 0 Q = Q’
1 1
0
14
Latches
★ SR Latch
S R Q0 Q Q’
0 0 0 0 1
Q = Q0
0 0 1 1 0
0 1 0 0 1
1 1 0 1 1 0 1
Q=0
0 1 0 0 1 0
Q=1
1 0 1 1 0
1 1 0 0 0 Q = Q’
1 1 1 0 0 Q=
Q’
1 0
15
Latches
★ SR Latch
S R Q
0 0 Q0 No change
0 1 0 Reset
1 0 1 Set
1 1 Q=Q’=0 Invalid
S R Q
0 0 Q=Q’=1 Invalid
0 1 1 Set
1 0 0 Reset
1 1 Q0 No
change
16
Latches
★ SR Latch
S R Q
0 0 Q0 No change
0 1 0 Reset
1 0 1 Set
1 1 Q=Q’=0 Invalid
S’ R’ Q
0 0 Q=Q’=1 Invalid
0 1 1 Set
1 0 0 Reset
1 1 Q0 No
change
17
Controlled Latches
C S R Q
0 x x Q0 No change
1 0 0 Q0 No
1 0 1 0 change
1 1 0 1 Reset
1 1 1 Q=Q’ Set
18
Invalid
Controlled Latches
Q
C D Q
Output may
0 x Q0 No change t
change
1 0 0 Reset
1 1 1 Set
19
Controlled Latches
Q
C D Q Output may
0 x Q0 No change change
1 0 0 Reset
1 1 1 Set
20
Triggering of FF
★ State of FF is switched by a momentary change in
the input signal.
★ This momentary change is called a trigger.
★ Sequential ckt can be instable if the output of FF
changing while the output of the combinational ckt
which is input to the FF are being sampled by the
clock pulse.
★ It is not possible to rely on propagation delay of the
logic gates.
★ To ensure, FF are designed to sensitive/responsive
to the pulse transition rather than the pulse
duration. 21
Flip-Flops
CL Positive Edge
K
CL Negative
K Edge
22
Triggering of FF
23
Flip-Flops
★ Master-Slave D Flip-Flop
D D Q D Q Q
D Latch D Latch
C C
(Master) (Slave)
Master Slave
CLK
CL
K
D
Looks like it is negative
edge-triggered QMaster
QSlave 24
Flip-Flops
★ JK Flip-Flop
J Q
D = JQ’ + K’Q
K Q
25
Flip-Flops
★ T Flip-Flop
T J Q T D Q
Q
K Q
T Q
D = JQ’ + K’Q
D = TQ’ + T’Q = T ⊕ Q
Q
26
Flip-Flop Characteristic Tables
D Q D Q(t+1)
0 0 Reset
Q 1 1 Set
J K Q(t+1)
J Q 0 0 Q(t) No change
0 1 0 Reset
K Q 1 0 1 Set
1 1 Q’(t) Toggle
T Q T Q(t+1)
0 Q(t) No change
Q 1 Q’(t) Toggle
27
Flip-Flop Characteristic Equations
D Q D Q(t+1)
0 0 Q(t+1) = D
Q 1 1
J K Q(t+1)
J Q 0 0 Q(t)
0 1 0 Q(t+1) = JQ’ + K’Q
K Q 1 0 1
1 1 Q’(t)
T Q T Q(t+1)
0 Q(t) Q(t+1) = T ⊕
Q 1 Q’(t) Q
28
Flip-Flop Characteristic Equations
★ Analysis / Derivation
J K Q(t) Q(t+1)
0 0 0 0
No change
0 0 1 1
J. Q
0 1 0
0 1 1
K. Q 1 0 0
1 0 1
1 1 0
1 1 1
29
Flip-Flop Characteristic Equations
★ Analysis / Derivation
J K Q(t) Q(t+1)
0 0 0 0
No change
0 0 1 1
J Q
0 1 0 0
Reset
0 1 1 0
K Q 1 0 0
1 0 1
1 1 0
1 1 1
30
Flip-Flop Characteristic Equations
★ Analysis / Derivation
J K Q(t) Q(t+1)
0 0 0 0
No change
0 0 1 1
J Q
0 1 0 0
Reset
0 1 1 0
K Q 1 0 0 1 Set
1 0 1 1
1 1 0
1 1 1
31
Flip-Flop Characteristic Equations
★ Analysis / Derivation
J K Q(t) Q(t+1)
0 0 0 0
No change
0 0 1 1
J Q
0 1 0 0
Reset
0 1 1 0
K Q 1 0 0 1 Set
1 0 1 1
1 1 0 1
Toggle
1 1 1 0
32
Flip-Flop Characteristic Equations
★ Analysis / Derivation
J K Q(t) Q(t+1)
0 0 0 0
0 0 1 1 K
J Q
0 1 0 0 0 1 0 0
0 1 1 0 J 1 1 0 1
K Q 1 0 0 1 Q
1 0 1 1
1 1 0 1
1 1 1 0
33
Flip-Flops with Direct Inputs
★ Asynchronous Reset
R’ D CLK Q(t+1)
D
0 x x 0
Q
Q
R
Rese
t
34
Flip-Flops with Direct Inputs
★ Asynchronous Reset
R’ D CLK Q(t+1)
D
0 x x 0
Q 1 0 ↑ 0
1 1 ↑ 1
Q
R
Rese
t
35
Flip-Flops with Direct Inputs
Prese
t
P PR’ CLR’ D CLK Q(t+1)
1 0 x x 0
DRQ
Q
CL
R
Rese
t
36
Flip-Flops with Direct Inputs
Prese
t
P PR’ CLR’ D CLK Q(t+1)
1 0 x x 0
DRQ
0 1 x x 1
Q
CL
R
Rese
t
37
Flip-Flops with Direct Inputs
Prese
t
P PR’ CLR’ D CLK Q(t+1)
1 0 x x 0
DRQ
0 1 x x 1
Q 1 1 0 ↑ 0
1 1 1 ↑ 1
CL
R
Rese
t
38
Analysis of Clocked Sequential Circuits
★ The State
● State = Values of all Flip-Flops
Example
AB=00
39
Analysis of Clocked Sequential Circuits
★ State Equations
A(t+1) = DA
= A(t) x(t)+B(t) x(t)
=Ax+Bx
B(t+1) = DB
=
A’(t) x(t)
y(t) = [A(t)+=B(t)]
A’ x’(t)
x
= (A + B) x’
40
Analysis of Clocked Sequential Circuits
A B A B A B y y
0 0 0 0 0 1 0 0
0 1 0 0 1 1 1 0
1 0 0 0 1 0 1 0
1 1 0 0 1 0 1 0
t t+1 t A(t+1) = A x + B x
B(t+1) = A’ x
y(t) = (A + B)
x’ 42
Analysis of Clocked Sequential Circuits
AB input/outpu y y
A B A B A B
t
0 0 0 0 0 1 0 0
0/0 1/0 0 1 0 0 1 1 1 0
1 0 0 0 1 0 1 0
0/1
1 1 0 0 1 0 1 0
00 10
0/1
1/0 0/1 1/0
01 11
1/0 43
Analysis of Clocked Sequential Circuits
★ D Flip-Flops
Example:
x D Q A
Present Input Next
y
State CLK Q
State
A x y A
0 0 0 0
A(t+1) = DA = A ⊕ x ⊕
0 0 1 1
0 1 0 1 y
0 1 1 0
1 0 0 1 01,10
1 0 1 0 00,11 0 1 00,11
1 1 0 0 01,10
1 1 1 1
44
Analysis of Clocked Sequential Circuits
★ JK Flip-Flops
Example:
Present Next Flip-Flop
I/P
State State Inputs
A B x A B JA JB
KA KB
0 0 0 0 1 0 0 1 0 JA = B KA = B x’
0 0 1 0 0 0 0 0 1 JB = x’ KB = A ⊕ x
0 1 0 1 1 1 1 1 0
1 0 1 0 0 1 A(t+1) = JA Q’A + K’A QA
0 1 1
1 1 0 0 1 1 = A’B + AB’ + Ax
1 0 0
1 0 0 0 0 0
B(t+1) = JB Q’B + K’B QB
1 0 1
0 0 1 1 1 1 = B’x’ + Abx’ +
1 1 0
A’Bx 45
1 1 1 0 0 0
Analysis of Clocked Sequential Circuits
★ JK Flip-Flops
Example:
Present Next Flip-Flop
I/P
State State Inputs
A B x A B JA JB
KA KB 1 0 1
0 0 0 0 1 0 0 1 0
00 11
0 0 1 0 0 0 0 0 1
0 1 0 1 1 1 1 1 0 0
0 0
0 1 1 1 0 1 0 0 1
1 0 0 1 1 0 0 1 1
01 10
1 0 1 1 0 0 0 0 0 1
1
1 1 0 0 0 1 1 1 1
46
1 1 1 0 0 0
Analysis of Clocked Sequential Circuits
★ T Flip-Flops
Example:
Present Next F.F
I/P O/P
State State Inputs
A B x A B TA TB y
0 0 0 0 0 0 0 0
0 0 1 0 1 0 1 0
0 1 0 0 1 0 0 0 TA = B x TB = x
0 1 1 1 0 1 1 0 y =AB
1 0 0 1 0 0 0 0
A(t+1) = TA Q’A + T’A QA
1 0 1 1 1 0 1 1
= AB’ + Ax’ + A’Bx
1 1 0 1 1 0 0 1
B(t+1) = TB Q’B + T’B QB
1 1 1 0 0 1 1 0 =x⊕ 4
Analysis of Clocked Sequential Circuits
★ T Flip-Flops
Example:
Present Next F.F
I/P O/P
State State Inputs
A B x A B TA TB y
0 0 0 0 0 0 0 0
0 0 1 0 1 0 1 0
0 0
0/0 0/0
0 1 0 0 1 0
00 1/0 01
0 1 1 1 0 1 1 0
1 0 0 1 0 0 0 0 1/0 1/0
1 0 1 1 1 0 1 1 11 10
1 1 0 1 1 0 0 1 0/1 0/0
1/1
1 1 1 0 0 1 1 0
48
Mealy and Moore Models
49
Mealy and Moore Models
Meal Moor
Present
y Next Present
e Next
I/P O/P I/P O/P
State State
State State
A x A B y A B x A B y
B 0 0 0 0 0 0
0 0 0 0 0 0 0 0 1 0 1 0
0 0 1 0 1 0 0 1 0 0 1 0
0 1 0 0 0 1 0 1 1 1 0 0
0 1 1 1 1 0 1 0 0 1 0 0
1 0 0 0 0 1 1 0 1 1 1 0
1 0 1 1 0 0 1 1 0 1 1 1
1 1 0 0 0 1 1 1 1 0 0 1
1 1 1 1 0 0
For the same state, For the same state,
the output changes with the input the output does not change with the input
51
Moore State Diagram
State / Output
0 0
1
00/0 01/0
1 1
11/1 10/0
1
0 0