Professional Documents
Culture Documents
Contents:
• Flip-flop choices in synchronous sequential circuits
©2014-2020 M. A. Hasan. These slides and notes are for the exclusive use of the students registered
in the course. Reproduction in any form or use for any other purposes is prohibited.
Set 7 - Part 5 1
Use of different types of flip-flops
Set 7 - Part 5 2
FF excitation tables
𝐷𝐷 𝑄𝑄(𝑡𝑡 + 1) 𝑇𝑇 𝑄𝑄(𝑡𝑡 + 1)
0 0 0 𝑄𝑄(𝑡𝑡)
1 1 1 𝑄𝑄𝑄(𝑡𝑡)
0 0 0 0 0 0
1 0 1 1 0 1
0 1 0 0 1 1
1 1 1 1 1 0
𝐽𝐽 𝐾𝐾 𝑄𝑄(𝑡𝑡) 𝑄𝑄(𝑡𝑡 + 1)
𝐽𝐽 𝐾𝐾 𝑄𝑄(𝑡𝑡 + 1)
0 0 0 0
0 0 𝑄𝑄(𝑡𝑡)
0 0 1 1
0 1 0
0 1 0 0
1 0 1
0 1 1 0
1 1 𝑄𝑄𝑄(𝑡𝑡)
1 0 0 1
5) JKFF characteristic table
1 0 1 1
1 1 0 1
𝐽𝐽 𝐾𝐾 𝑄𝑄(𝑡𝑡) 𝑄𝑄(𝑡𝑡 + 1)
1 1 1 0
0 X 0 0
6) JKFF excitation table
1 X 0 1
Note that:
X 0 1 1
• 𝑄𝑄(𝑡𝑡 + 1)=𝐽𝐽 𝑄𝑄𝑄(𝑡𝑡) + 𝐾𝐾𝐾 𝑄𝑄(𝑡𝑡)
X 1 1 0 • I.e.,
- if 𝑄𝑄(𝑡𝑡)=0, then 𝑄𝑄(𝑡𝑡 + 1)=𝐽𝐽 and
7) JKFF excitation table (short form) - if 𝑄𝑄(𝑡𝑡)=1, then 𝑄𝑄(𝑡𝑡 + 1)=𝐾𝐾𝐾
Set 7 - Part 5 4
Excitation tables for an example circuit
• Consider the following state-assignment table for a sequential
circuit
Next state
Present
w = 0 w = 1 Output
state
z
𝑦𝑦2 𝑦𝑦1 𝑌𝑌2 𝑌𝑌1 𝑌𝑌2 𝑌𝑌1
A 00 00 01 0
B 01 00 10 0
C 10 00 10 1
11 dd dd d
Set 7 - Part 5 5
Excitation tables for an example circuit (contd.)
• Excitation table using DFFs
Present Next state (𝑌𝑌2 𝑌𝑌1 ) & flip-flop input (𝐷𝐷2 𝐷𝐷1 )
Output
state w=0 w=1
z
𝑦𝑦2 𝑦𝑦1 𝑌𝑌2 𝑌𝑌1 𝐷𝐷2 𝐷𝐷1 𝑌𝑌2 𝑌𝑌1 𝐷𝐷2 𝐷𝐷1
00 00 00 01 01 0
01 00 00 10 10 0
10 00 00 10 10 1
11 dd dd dd dd d
• Note that 𝑦𝑦1 and 𝑦𝑦2 can be viewed as 𝑄𝑄1 (𝑡𝑡) and 𝑄𝑄2 𝑡𝑡 ,
respectively. Similarly, 𝑌𝑌1 and 𝑌𝑌2 can be viewed as 𝑄𝑄1 (𝑡𝑡 + 1)
and 𝑄𝑄2 𝑡𝑡 + 1 , respectively.
• Using K-maps with don’t cares, we can write
𝐷𝐷1 = 𝑤𝑤𝑤𝑤1′ 𝑦𝑦2′ , 𝐷𝐷2 =𝑤𝑤(𝑦𝑦1 + 𝑦𝑦2 )
Set 7 - Part 5 6
Excitation tables for an example circuit (contd.)
• Excitation table using TFFs
Present Next state (𝑌𝑌2 𝑌𝑌1 ) & flip-flop input (𝑇𝑇2 𝑇𝑇1 )
state Output
w=0 w=1
z
𝑦𝑦2 𝑦𝑦1 𝑌𝑌2 𝑌𝑌1 𝑇𝑇2 𝑇𝑇1 𝑌𝑌2 𝑌𝑌1 𝑇𝑇2 𝑇𝑇1
00 00 00 01 01 0
01 00 01 10 11 0
10 00 10 10 00 1
11 dd dd dd dd d
Set 7 - Part 5 7
Excitation tables for an example circuit (contd.)
• Excitation table using JKFFs
Present Next state (𝑌𝑌2 𝑌𝑌1 ) & flip-flop input (𝐽𝐽𝑖𝑖 𝐾𝐾𝑖𝑖 )
state Output
w=0 w=1
z
𝑦𝑦2 𝑦𝑦1 𝑌𝑌2 𝑌𝑌1 𝐽𝐽2 𝐾𝐾2 𝐽𝐽1 𝐾𝐾1 𝑌𝑌2 𝑌𝑌1 𝐽𝐽2 𝐾𝐾2 𝐽𝐽1 𝐾𝐾1
00 00 0d 0d 01 0d 1d 0
01 00 0d d1 10 1d d1 0
10 00 d1 0d 10 d0 0d 1
11 dd dd dd dd dd dd d
• Recall that for JKFF, if 𝑄𝑄 𝑡𝑡 = 0, then 𝑄𝑄 𝑡𝑡 + 1 = 𝐽𝐽 and if
𝑄𝑄(𝑡𝑡) = 1, then 𝑄𝑄(𝑡𝑡 + 1) = 𝐾𝐾𝐾. This is used in completing the
columns with titled (𝐽𝐽𝑖𝑖 𝐾𝐾𝑖𝑖 )
• We can write (assuming that the above table is correct)
𝐽𝐽1 = 𝑤𝑤𝑦𝑦2′ , 𝐾𝐾1 =1, 𝐽𝐽2 = 𝑤𝑤𝑦𝑦1 , 𝐾𝐾2 =𝑤𝑤’
which cost less than the designs based on DFF and TFF
Set 7 - Part 5 8
ECE 124 – Digital Circuits and Systems
Dept. of ECE, Univ. of Waterloo
Contents:
• Analysis of synchronous sequential circuits
©2014-2020 M. A. Hasan. These slides and notes are for the exclusive use of the students registered
in the course. Reproduction in any form or use for any other purposes is prohibited.
Set 7 - Part 6 1
Analysis of synchronous sequential circuits
Set 7 - Part 6 2
Analysis of synchronous sequential circuits (contd.)
Consider the following circuit
J1 y1
w J Q
z
K Q
K1
J2 y2
J Q
Clock
K Q
K2
Resetn
00 01 01 00 11 0
01 01 01 10 11 0
10 01 01 00 10 0
11 01 01 10 10 1
Next state
Present
w = 0 w = 1 Output
state
z
𝑦𝑦2 𝑦𝑦1 𝑌𝑌2 𝑌𝑌1 𝑌𝑌2 𝑌𝑌1
00 00 01 0
01 00 10 0
10 00 11 0
11 00 11 1
Set 7 - Part 6 5