Professional Documents
Culture Documents
SYNCHRONOUS SEQUENTIAL
LOGIC CIRCUIT DESIGN
INTRODUCTION
A microprocessor is just an
integrated circuit. On its own, without
a surrounding circuit and applied
voltages, it is quite useless.
A useful microprocessor-based
computer system must have a
memory, I/O devices, and a
Fig. 1. Intel 8086 Microprocessor
processing unit.
engradc©2011|engrkad©2013|engrcde©2017
INTRODUCTION
engradc©2011|engrkad©2013|engrcde©2017
INTRODUCTION
these are some examples of the many products that have the
ability to send, receive, store, retrieve, and process information
in binary format.
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
1. Level Clocking
This is a type of triggering wherein the output of the flip flop
responds during the high (or low) level of the clock signal.
CLK 1
1
D
0
Fig. 5. Example of a Timing Diagram
Determine Q For a Positive Level Clocked D Latch
1
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
2. Edge Triggering
This is a type of triggering wherein the flip flop produces
output only on the rising (or falling) edge of the clock signal.
CLK 1
1
D
0
Fig. 6. Example of a Timing Diagram
Determine Q For a Positive Edge Triggered D Flip Flop
1
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
1. Level Clocking
Fig 7a. Positive Level Clocking Fig 7b. Negative Level Clocking
2. Edge Triggering
Fig 7c. Positive Edge Triggering Fig 7d. Negative Edge Triggering
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
Q(t) S R Q(t+1)
0 0 0 0
0 0 1 0
Fig 8. Schematic Symbol of a 0 1 0 1
Positive Edge Triggered SR Flip Flop
0 1 1 ind
1 0 0 1
𝑸 𝒕 + 𝟏 = 𝑺 + 𝑸𝑹′ 1 0 1 0
Eqn. 1. Characteristic Equation 1 1 0 1
Of SR Flip Flop 1 1 1 ind
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
Q(t) J K Q(t+1)
0 0 0 0
0 0 1 0
Fig 9. Schematic Symbol of a 0 1 0 1
Positive Edge Triggered JK Flip Flop
0 1 1 1
1 0 0 1
𝑸 𝒕 + 𝟏 = 𝑱𝑸′ + 𝑲′ 𝑸 1 0 1 0
Eqn. 2. Characteristic Equation 1 1 0 1
Of JK Flip Flop 1 1 1 0
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
Q(t) D Q(t+1)
0 0 0
0 1 1
Fig 10. Schematic Symbol of a 1 0 0
Positive Edge Triggered D Flip Flop
1 1 1
𝑸 𝒕+𝟏 =𝑫
Eqn. 3. Characteristic Equation
Of D Flip Flop
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
Q(t) T Q(t+1)
0 0 0
0 1 1
Fig 11. Schematic Symbol of a 1 0 1
Positive Edge Triggered T Flip Flop
1 1 0
𝑸 𝒕 + 𝟏 = 𝑻𝑸′ + 𝑻′ 𝑸
Eqn. 4. Characteristic Equation
Of T Flip Flop
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
DESIGN MODELLING
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
DESIGN MODELLING
0/0 0/0
1. State Diagram
1/1
00 10
A state diagram is a graphical
representation wherein a state is
represented by a circle; and the 1/0 0/0
DESIGN MODELLING
Table 9. Equivalent State Table from the
Previous Diagram
2. State Table Present Input Next Output
State State
A state table is a
A(t) B(t) x A(t+1) B(t+1) y
tabulated representation 0 0 0 0 0 0
which consists of input, 0 0 1 0 1 0
present state, next state, 0 1 0 1 1 0
and output. 0 1 1 0 1 0
1 0 0 1 0 0
STATE STATE 1 0 1 0 0 1
1 1 0 1 0 0
DIAGRAM TABLE
1 1 1 1 1 0
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
DESIGN MODELLING
DESIGN MODELLING
3. State Equation
A state equation is an expression that specifies the conditions
of flip flop’s next state transition as function of the present state
and input variables. Other name for Characteristic Equation.
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
DESIGN APPROACH
0/1
0/0 0/1
10
Fig 13. State Diagram for
Sample Problem No. 1
1/1
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
DESIGN APPROACH
STEP 1:
Identify the given. This can
be in a form of a word description
of the circuit behavior and may be
accompanied by a state diagram, a
timing diagram, or other pertinent
information.
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
DESIGN APPROACH
DESIGN APPROACH
STEP 3:
The number of states may Table 12. Another Way to Write a
State Table (for State Reduction)
be reduced by State Reduction Present Next Output
Method. State State
A(t) B(t) x=0 x=1 x=0 x=1
NOTE: 00 00 01 1 0
Two states are said to be equivalent 01 10 01 0 1
if, for each member of the set of inputs, 10 11 10 1 1
they give exactly the same output and 11 00 11 0 0
send the circuit either to the same state or
to an equivalent state.
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
DESIGN APPROACH
STEP 4:
Derive the circuit excitation and output tables based on the
type of flip flop to be used. To do this, determine how many flip
flops are to be used.
𝑵 = 𝟐𝒏 where:
n = number of bits or flip flops to be used
Eqn. 5. Relationship of the N = total number of states
number of bits and number of
states
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
DESIGN APPROACH
Table 13. Circuit Excitation and Output Table Using JK Flip Flop
PRESENT NEXT
INPUT FLIP FLOP INPUTS OUTPUT
STATE STATE
A(t) B(t) x A(t+1) B(t+1) JA KA JB KB y
0 0 0 0 0 0 x 0 x 1
0 0 1 0 1 0 x 1 x 0
0 1 0 1 0 1 x x 1 0
0 1 1 0 1 0 x x 0 1
1 0 0 1 1 x 0 1 x 1
1 0 1 1 0 x 0 0 x 1
1 1 0 0 0 x 1 x 1 0
1 1 1 1 1 x 0 x 0 0
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
DESIGN APPROACH
STEP 5:
Using k-map or any other simplification method, derive the
circuit output functions and the flip flop input functions or
equations. Do this for both the flip flop inputs and output/s.
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
DESIGN APPROACH
Bx Bx
A 00 01 11 10 A 00 01 11 10
0 1 0 1 x x
1 x x x x 1 1 x x Bx
A 00 01 11 10
𝑱𝑨 = 𝑩𝒙′ 𝑱𝑩 = 𝑨′ 𝒙 + 𝑨𝒙′ = 𝑨 ⊕ 𝒙 0 1 1
Bx Bx 1 1 1
A 00 01 11 10 A 00 01 11 10
0 x x x x 0 x x 1 𝒚 = 𝑨′𝑩𝒙 + 𝑩′ 𝒙′ + 𝑨𝑩′
1 1 1 x x 1 Output Equation
𝑲𝑨 = 𝑩𝒙′ 𝑲𝑩 = 𝒙′
JK Flip Flop Input Equations
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
DESIGN APPROACH
DESIGN APPROACH
DESIGN APPROACH
0/1
Seatwork No. 1
00
Based on the given state 1/0 0/0
diagram, design a sequential
circuit using D Flip Flop.
1/1 01 11 1/0
0/0 0/1
10
Fig 13. State Diagram for
Seatwork No. 1
1/1
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
DESIGN APPROACH
Assignment No. 1
Design a sequential circuit with two T Flip Flops, A and B, and
two inputs, E and x. If E=0, the circuit remains in the same state
regardless of the value of x. When E=1 and x=1, the circuit goes
through the state transitions from 00 to 01 to 10 to 11 back to 00,
and repeats. When E=1 and x=0, the circuit goes through the state
transition from 00 to 11 to 10 to 01 back to 00, and repeats.
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
NOTE:
Two states are said to be equivalent if, for each member of the set of inputs, they
give exactly the same output and send the circuit either to the same state or to an
equivalent state.
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
State a a b c d e f f g f g a
Input 0 1 0 1 0 1 1 0 1 0 0
output 0 0 0 0 0 1 1 0 1 0 0
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
b) Reduce the number of states in the Table 14. Equivalent State Table of
Sample Problem No. 2
given table
Present Next Output
State State
x=0 x=1 x=0 x=1
a a b 0 0
b c d 0 0
c a d 0 0
d e f 0 1
d=f e a f 0 1
f g f 0 1
e=g
g a f 0 1
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
b) Reduce the number of states in the Table 14. Equivalent State Table of
Sample Problem No. 2
given table
Present Next Output
State State
x=0 x=1 x=0 x=1
a a b 0 0
b c d 0 0
c a d 0 0
d e f 0 1
d=f e a f 0 1
f g f 0 1
e=g
g a f 0 1
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
b) and d) Reduce the number of states Table 15. Reduced State Table of
in the given table and draw the reduced Sample Problem No. 2
diagram Present Next Output
State State
x=0 x=1 x=0 x=1
a a b 0 0
b c d 0 0
c a d 0 0
d e d 0 1
e a d 0 1
EFFECT: From a total of 7 states (or consumption of 3 FFs), the number of
Fig 16. Reduced State Diagram for states is reduced to 5 states. However, 3 FFs are still needed.
Sample Problem No. 2
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
REGISTERS
Q3 D3 Q2 D2 Q1 D1 Q0 D0
R R R R
RESET
REGISTERS
LOAD
RESET
REGISTERS
R R R R
RESET
REGISTERS
Q3 D3 Q2 D2 Q1 D1 Q0 D0
Xin
R R R R
RESET
REGISTERS
SHL
Xin
When SHL = 0, data will
be retained.
When SHL = 1, X3X2X1X0 is
stored through Serial
Q3 D3 Q2 D2 Q1 D1 Q0 D0
Loading.
CLK CLK CLK CLK
R R R R
RESET
REGISTERS
LOAD
SHL
Xin
Q3 D3 Q2 D2 Q1 D1 Q0 D0
R R R R
RESET
COUNTERS
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
COUNTERS
Table 16. State Table for a 3-bit Binary Counter
Flip Flop
Present State Next State
Inputs
0 0 0 0 0 1 0 0 1
0 0 1 0 1 0 0 1 1
0 1 0 0 1 1 0 0 1
0 1 1 1 0 0 1 1 1
1 0 0 1 0 1 0 0 1
1 0 1 1 1 0 0 1 1
Fig 23. State Diagram of a 3-bit
Binary Counter 1 1 0 1 1 1 0 0 1
1 1 1 0 0 0 1 1 1
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
COUNTERS
Q2 T2 Q1 T1 Q0 T0 HIGH
R R R
RESET
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
COUNTERS
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
COUNTERS
Assignment No. 2
Design a 3-bit counter with the following repeated sequence:
0, 1, 3, 5, 7. Use JK Flip Flops.
engradc©2011|engrkad©2013|engrcde©2017
SEQUENTIAL LOGIC CIRCUITS
COUNTERS
Q3 T3 Q2 T2 Q1 T1 Q0 T0
RESET
COUNTERS
Q3 J3 Q2 J2 Q1 J1 Q0 J0 HIGH
R K3 R K2 R K1 R K0
RESET
COUNTERS
Q3 D3 Q2 D2 Q1 D1 Q0 PR D0
R R R
RESET
COUNTERS
engradc©2011|engrkad©2013|engrcde©2017