Lesson1 Synchronous Sequential Circuits
Lesson1 Synchronous Sequential Circuits
Lesson1 Synchronous Sequential Circuits
1
7/16/2010
2
7/16/2010
S R Q Q' State 1
S (Set) 3 Q
1 0 1 0 2
Set
0 0 1 0
0 1 0 1
Reset
0 0 0 1 1
1 1 0 0 Undefined 3
Q'
2
R (Reset)
3
7/16/2010
RS FLIP-FLOP D FLIP-FLOP
S 1 S Q 1
3 1 D
Q 3 1
Q
2
2
3
CP SR F/f
2
2
3
D Q
CP CP D F/f
CP R Q’ 1
1
1
3
1
3 2
3
Q' Q’
3 2 Q' 1 2 2
2
R
JK FLIP-FLOP T FLIP-FLOP
T Q
1
2 12 2
K 13 1 Q J Q 1 CP T F/f
3 2 12 2
T 13 1 Q
3
CP CP JK F/f Q’
U5A 2 CP
1
2 12 3
1
Q' K Q’
J 13
1
U5A 2
1
2 12 3 Q'
13
CP J K Next State of Q
0 X X No change CP T Next State of Q
1 0 0 No change
0 X No change
1 0 1 Q=0; Reset state
1 1 0 Q=1; Set state 1 0 No change
1 1 1 Complement 1 1 Complement
4
7/16/2010
1 0 0 1 0 0 0 0
1 2 4 3 2 5 A
X
PR
6 2 D Q 0 0 1 1 0 0 0
5 3
CLK 0 1 0 0 0 1 1
74LS04 74LS32
6 A'
CL
74LS08
Q 0 1 0 1 1 1 1
Y 74LS74
0 1 1 0 0 0 1
1
0 1 1 1 0 0 1
10
1 0 0 0 0 0 0
4
9 6 12 9 B Z 1 0 0 1 1 0 0
PR
8 5 D Q
10 11 1 0 1 0 1 1 0
CLK
74LS32
74LS08 8 B' 1 0 1 1 1 1 0
CL
Q
74LS74 1 1 0 0 0 1 1
13
1 1 0 1 1 1 1
+5V
1 1 1 0 1 1 1
CP
1 1 1 1 1 1 1
5
7/16/2010
01/1,
01/0 10 11 10/1, (a) Derive the state table for the circuit.
10/0, 11/0 11/1 (b) Draw two state diagrams: one for x = 0 and the
other for x = 1.
(30 minutes only)
Example 2
7
4 15 A 1 2 9 11 B
PR
PR
J Q J Q
CL
CL
K Q K Q
74LS76 74LS76
circuit is shown below. Derive the state table and
8
the state diagram of the circuit. CP
4
1 6 y
3 5
2
x 74LS136
74LS136
6
7/16/2010
7
7/16/2010
STATE REDUCTION
REDUCED STATE TABLE
Example:
Present Next State Output Present Next State Output
State x=0 x=1 x=0 x=1 State x=0 x=1 x=0 x=1
a a b 0 0 a a b 0 0
b c d 0 0 b c d 0 0
c a d 0 0 c a d 0 0
d e f 0 1 d e d 0 1
e a f 0 1 e a d 0 1
f g f 0 1
g a f 0 1
8
7/16/2010
1. The word description of the circuit behavior is 5. Determine the number of flip-flops needed and
stated. assign a letter symbol to each.
2. From the given information about the circuit, 6. Choose the type of flip-flop to be used.
obtain the state table. 7. From the state table, derive the circuit excitation
3. The number of states may be reduced by state- and output tables.
reduction methods if the sequential circuit can 8. Using the map or any other simplification method,
be characterized by input-output relationships
independent of the number of states. derive the circuit output functions and the flip-
flop input functions.
4. Assign binary values to each state if the state
table obtained in step 2 or 3 contains letter 9. Draw the logic diagram.
symbols.
9
7/16/2010
1 Next State
0 00 11 0 Present State x=0 x=1
A B A B A B
0 0 0 0 0 1
1 1 0 1 1 0 0 1
1 0 1 0 1 1
1 1 1 1 0 0
1 0
01 10
0
0 0 0 0 0 0 X 0 X JA = Bx’ KA = Bx
0 0 1 0 1 0 X 1 X
0 1 0 1 0 1 X X 1 Bx Bx
0 1 1 0 1 0 X X 0 A 00 01 11 10 A 00 01 11 10
1 0 0 1 0 X 0 0 X 0 1 X X 0 X X 1
1 0 1 1 1 X 0 1 X 1 1 X X 1 X X 1
1 1 0 1 1 X 0 X 0 JB = x KB = A’x’ + Ax
1 1 1 0 0 X 1 X 1
10
7/16/2010
11
10
15
14
B B' A A'
and B, and two inputs, E and x. If E = 0, the circuit
Q
7 8 2 3
PR CL PR CL
remains in the same state regardless of the value of
CLK
CLK
K
K
x. When E = 1 and x = 1, the circuit goes through the
J
12
16
state transitions from 00 to 01 to 10 to 11 back to 00,
9
1
CP and repeats. When E = 1 and x = 0, the circuit goes
3
through the state transitions from 00 to 11 to 10 to
01 back to 00, and repeats.
1
1 2
x
11
7/16/2010
1
3 Present State Input Next State Flip-flop Inputs Output
4
2 1
3 2 5
A
PR
x 2 D Q A B C x A B C SA RA SB RB SC RC y
1 2 1 3
3 CLK
2 6
A' 0 0 1 0 0 0 1 0 X 0 X X 0 0
CL
Q
0 0 1 1 0 1 0 0 X 1 0 0 1 0
1
0 1 0 0 0 1 1 0 X X 0 1 0 0
1
3
0 1 0 1 1 0 0 1 0 0 1 0 X 0
2
0 1 1 0 0 0 1 0 X 0 1 X 0 0
10
1 1
3 2 9 12 9
B 0 1 1 1 1 0 0 1 0 0 1 0 1 0
PR
2 8 D Q
11
CLK
B' 1 0 0 0 1 0 1 X 0 0 X 1 0 0
1 8
CL
2 12 Q
13 1 0 0 1 1 0 0 X 0 0 X 0 X 1
13
CP
y
1 0 1 0 0 0 1 0 1 0 X X 0 0
1 0 1 1 1 0 0 X 0 0 X 0 1 1
12
7/16/2010
1/1 0/0
S Q C 100
1/1
CP 1/1
R Q' C' 111
CP
13
7/16/2010
MAPS FOR 3-BIT BINARY COUNTER LOGIC DIAGRAM OF A 3-BIT BINARY COUNTER
T Q
A
BC Bx
A 00 01 11 10 A 00 01 11 10 CP
3
0 1 0 1 1 Q'
1 1 1 1 1
TA = BC TB = C T Q B
CP
2
Bx Q'
A 00 01 11 10
1 T Q C
0 1 1 1 1
CP
1 1 1 1 1
Q'
TC = 1
CP
14
7/16/2010
SEATWORK
Design the following nonbinary sequence counters as
specified in each case. Treat the unused states as don’t-
care conditions. Analyze the final circuit to ensure that
it is self-correcting. If your design produces a nonself-
correcting counter, you must modify the circuit to make it
self-correcting.
15