Professional Documents
Culture Documents
Analysis of Sequential
NOTE: Explanation Refer Class Notes
Circuits
by
Nagaraj Vannal,
Asst.Professor, School of Electronics
Engineering,
K.L.E. Technological University, Hubballi.
nagaraj_vannal@bvb.edu
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
The Registers
• Register – a collection of binary storage elements
• In theory, a register is sequential logic which can
be defined by a state table
• More often, think of a register as storing a vector
of binary values
• Frequently used to perform simple data storage
and data movement and processing operations
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
Shift Registers
A Shift Register is a sequential logic device made up of flip-flops that allows
parallel or serial loading and serial or parallel outputs as well as shifting bit by bit.
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
SISO- SERIAL IN/SERIAL OUT- type of register that can be loaded with data
serially and has only one serial output.
SIPO- SERIAL IN/PARALLEL OUT- type of register that can be loaded with
data serially and has parallel outputs available.
PISO- PARALLEL IN/SERIAL OUT- type of register that can be loaded with
parallel data and has only one serial output.
PIPO- PARALLEL IN/PARALLEL OUT- type of register that can be loaded with
parallel data and has parallel outputs available.
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
CLK
CLK
SI
Q3
Q2
Q1
Q0
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
Data input D Q D Q D Q D Q
C C C C
CLK
Q0 Q1 Q2 Q3
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
D0 D1 D2 D3
D Q D Q D Q D Q
C C C C
CLK
Q0 Q1 Q2 Q3
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
D0 D1 D2 D3
SHIFT/LOAD
Serial
D Q D Q D Q D Q data
Q0 Q1 Q2 Q3 out
C C C C
CLK
SHIFT.Q0 + SHIFT'.D1
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
Serial
data in
D Q D Q Q1 D Q Q2 D Q Q3
C C C C
Q0
CLK
RIGHT.Q0 +
RIGHT'.Q2
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
Ring Counters
One flip-flop (stage) for each state in the
sequence.
The output of the last stage is connected to the D
input of the first stage.
An n-bit ring counter cycles through n states.
No decoding gates are required, as there is an
output that corresponds to every state the counter
is in.
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
Ring Counters
Example: A 6-bit ring counter.
PRE
Q0 Q1 Q2 Q3 Q4 Q5
D Q D Q D Q D Q D Q D Q
CLR
CLK
100000
Clock Q0 Q1 Q2 Q3 Q4 Q5
000001 010000
0 1 0 0 0 0 0
1 0 1 0 0 0 0
2 0 0 1 0 0 0 000010 001000
3 0 0 0 1 0 0
4 0 0 0 0 1 0 000100
5 0 0 0 0 0 1
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
Johnson Counters
The complement of the output of the last stage is
connected back to the D input of the first stage.
Also called the twisted-ring counter.
Require fewer flip-flops than ring counters but more flip-
flops than binary counters.
An n-bit Johnson counter cycles through 2n states.
Require more decoding circuitry than ring counter but
less than binary counters.
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
Johnson Counters
Example: A 4-bit Johnson counter.
Q0 Q1 Q2
D Q D Q D Q D Q
Q'
Q3'
CLR
CLK
Clock Q0 Q1 Q2 Q3 0000
0 0 0 0 0
0001 1000
1 1 0 0 0
2 1 1 0 0
3 1 1 1 0 0011 1100
4 1 1 1 1
5 0 1 1 1 0111 1110
6 0 0 1 1
7 0 0 0 1 1111
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
Introduction: Counters
Asynchronous (Ripple)
Counters
Example: 4-bit ripple binary counter
(negative-edge triggered).
HIGH
Q0 Q1 Q2 Q3
J J J J
CLK C C C C
K K K K
FF0 FF1 FF2 FF3
CLK
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Q0
Q1
Q2
Q3
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
1 2 3 4 5 6 7 8 9 10 11 12
Clock MOD-6 counter
A produced by
clearing (a MOD-8
B
binary counter)
C when count of six
NAND 1 (110) occurs.
Output 0
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
111 000
Temporary 001
state
Counter is a MOD-6
110 010 counter.
101 011
100
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
HIGH
D C B A
J Q J Q J Q J Q
CLK C C C C
K K K K
CLR CLR CLR CLR
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
1 2 3 4 5 6 7 8 9 10 11
Clock 0 1 0 1 0 1 0 1 0 1 0
D 0 0 1 1 0 0 1 1 0 0 0
C 0 0 0 0 1 1 1 1 0 0 0
B 0 0 0 0 0 0 0 0 1 1 0
A
NAND
output
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
1
Q0 Q1 Q2
J Q J Q J Q 3-bit binary
CLK C C C up counter
Q' K Q' K Q'
K
1
Q0 Q1 Q2
J Q J Q J Q 3-bit binary
CLK C C C down counter
Q' K Q' K Q'
K
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
CLK 1 2 3 4 5 6 7 8
Q0 0 1 0 1 0 1 0 1 0
Q1 0 1 1 0 0 1 1 0 0
Q2 0 1 1 1 1 0 0 0 0
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
Q0
Q1
Q2
tPHL (CLK to Q0) tPHL (CLK to Q0)
tPLH (Q0 to Q1) tPHL (Q0 to Q1)
tPLH
(CLK to Q0) tPLH (Q1 to Q2)
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi
Digital Circuits(15EECC203)
Nagaraj Vannal, Faculty, School of Electronics Engineering, KLE Tech University, Hubballi