Professional Documents
Culture Documents
Sequential Circuits 1
1. Ways of Describing Sequential Circuits
1.1 Definition
1.2 Description
Sequential Circuits 2
1. Ways of Describing Sequential Circuits
1.1 Definition
X X1 , X 2 ,, X m
Y Y1 , Y2 ,, Yp
Q Q1 , Q 2 ,, Q r
Sequential Circuits 3
1. Ways of Describing Sequential Circuits
1.1 Definitions (cont.)
Qn Qn+1
SS={X, Y, Q ,f, g}
Y2
X set of inputs;
Memory
Y set of outputs;
Q set of states;
The typical structure of the sequential circuit F transition function of the states;
g transition function of the outputs.
X X1 , X 2 ,, X m
f : XQ Q
Y Y1 , Y2 ,, Yp
g :XQ Y or g:Q Y
Q Q1 , Q2 ,, Qr
Sequential Circuits 4
1. Ways of Describing Sequential Circuits
1.2 Description
•transition tables;
•charts;
•flow graphs (transition graphs).
Sequential Circuits 5
1. Ways of Describing Sequential Circuits
1.2 Description
Transition Table
Sequential Circuits 6
1. Ways of Describing Sequential Circuits
1.2 Description
Transition Table
Example: Let’s analyze a machine with two states, two outputs and a single input. In other
words:
Q={0, 1}
X1={0, 1}
X2={0, 1}
Y={0, 1}
The transition table will look like this:
Sequential Circuits 7
1. Ways of Describing Sequential Circuits
1.2 Description
Transition Table
Sequential Circuits 8
1. Ways of Describing Sequential Circuits
1.2 Description
Transition Table
Sequential Circuits 9
1. Ways of Describing Sequential Circuits
1.2 Description
Chart
Only transitions starting from “0” state are presented
Sequential Circuits 10
1. Ways of Describing Sequential Circuits
1.2 Description
Flow Grafs
Sequential Circuits 11
2. Flip-Flops
2.1 RS Flip-Flop
2.2 D Flip-Flop
2.3 JK Flip-Flop
Sequential Circuits 12
2.1 RS Flip-Flop
2.1.1 RS Latch
Sequential Circuits 13
2.1 RS Flip-Flop
2.1.1 RS NOR Latch
a.) Symbol
b.) Notation
R, S Data inputs
Q, Q Data outputs
Sequential Circuits 14
2.1 RS Flip-Flop
2.1.1 RS NOR Latch
c.) Schematic Diagram
d.) Operation
Inputs Output
A B Y
0 0 1
0 1 0
1 0 0
1 1 0
Sequential Circuits 15
2.1 RS Flip-Flop
2.1.1 RS NOR Latch
d.) Operation
Sequential Circuits 16
2.1 RS Flip-Flop
2.1.1 S Latch
d.) Operation
Sequential Circuits 17
2.1 RS Flip-Flop
2.1.1 R Latch
d.) Operation
Sequential Circuits 18
2.1 RS Flip-Flop
2.1.1 E Latch
d.) Operation
Sequential Circuits 19
2.1 RS Flip-Flop
2.1.1 RS Latch
e.) SPICE Simulation
Circuit used to simulate the Waveforms associated with the operation of a RS latch
operation of a RS latch
Sequential Circuits 20
2.1 RS Flip-Flop
2.1.1 RS Latch
e.) SPICE Simulation
The analysis of the waveforms must be made taking into account two objectives:
i. ”When” Analysis - when the transitions occur;
ii. ”How” Analysis - how transitions occur.
i.) ”When” Analysis Waveform analysis reveals that the output transitions are controlled by signals
applied to the inputs R and S – times t1 – t6.
b.) Notation
R, S Data inputs.
Q, Q Outputs
Sequential Circuits 22
2.1 RS Flip-Flop
2.1.2 RS Latch
c.) Schematic diagram
d.) Operation
Inputs Output
A B Y
0 0 1
0 1 1
1 0 1
1 1 0
Truth table for NAND gate
Sequential Circuits 23
2.1 RS Flip-Flop
2.1.2 RS Latch
d.) Operation
1 0 1 Set
0 1 0 Reset
1 1 Qn Hold state
Sequential Circuits 24
2.1 RS Flip-Flop
2.1.2 RS Latch
e.) SPICE Simulation
Sequential Circuits 25
2.1 RS Flip-Flop
2.1.2 RS Latch
e.) SPICE Simulation
i.) ”When” Analysis Waveform analysis reveals that the output transitions are controlled by
signals applied to the inputs ~R and ~S – times t1 – t5.
.
ii.) ”How” Analysis Waveform analysis reveals that: :
_ interval t1 – t2 S =1; R =0 Q=0 Q =1;
_ interval t2 – t3 S =1; R =1 Q=0 Q =1;
_ interval t3 – t4 S =0; R =1 Q=1 Q =0;
_ interval t4 – t5 S =1; R =1 Q=1 Q =0.
Note: The results presented confirm the transition table associated with latch operation
The latch does not make a distinction between "when“ and "how”
Sequential Circuits 26
2.1 RS Flip-Flop
2.1.3 Gated RS Latch
a.) Symbol
Sequential Circuits 27
2.1 RS Flip-Flop
2.1.3 Gated RS Latch
c.) Circuit Diagram
Sequential Circuits 28
2.1 RS Flip-Flop
2.1.3 Gated RS Latch
d.) Operation
Sequential Circuits 29
2.1 RS Flip-Flop
2.1.3 Gated RS Latch
e.) SPICE Simulation
•“When" Analysis: Waveform analysis reveals that the output transitions occur if EN = logical "1" (the
interval t1 - t2). In other words, transitions occur on the level of gate pulse.
• “How" Analysis: Waveform analysis reveals that the output transitions are controlled by signals
applied to the inputs R and S.
Sequential Circuits 30
2.2 D Flip-Flop
2.2.1 D Latch
2.2.3 D Flip-Flop
Sequential Circuits 31
2.2 D Flip-Flop
2.2.1 D Latch
a.) Symbol
b.) Notation
D Data inputs
Q, Q Outputs
Sequential Circuits 32
2.2 D Flip-Flop
2.2.1 D Latch
c.) Circuit diagram
d.) Operation
Input Current State Next State
Comments
Dn Qn Qn+1
0 X 0 Reset
1 X 1 Set
Sequential Circuits 33
2.2 D Flip-Flop
2.2.1 D Latch
e.) SPICE Simulation
„When” Analysis: Waveform analysis reveals that the output transitions are controlled by the
signal applied to the D input - (see times t1, t2 and t3)
„How” Analysis: Waveform analysis reveals that :
interval t1 – t2 D=1 Q=1 Q =1
interval t2 – t3 D=0 Q=0 Q =0
Sequential Circuits 34
2.2 D Flip-Flop
2.2.2 Gated D Latch
a.) Symbol
b.) Notation
D Data input.
EN Enable. Transitions between states can occur where EN = 1
QQ Outputs
Sequential Circuits 35
2.2 D Flip-Flop
2.2.2 Gated D Latch
c.) Circuit diagram
d.) Operation
1 0 0 Reset
Sequential Circuits 36
2.2 D Flip-Flop
2.2.2 Gated D Latch
e.) SPICE Simulation
„When” Analysis: Waveform analysis reveals that the output transitions occur if EN = logical "1"
(the interval t2 - t3). In other words, transitions occur on the level of the clock pulse
„How” Analysis: Waveform analysis reveals that the output transitions are controlled by the
signal applied to the input D
D-type latch with gate does not make a distinction between "when” and "how" (how are these
transitions).
Sequential Circuits 37
2.2 D Flip-Flop
2.2.3 D Flip-Flop
Sequential Circuits 38
2.2 D Flip-Flop
2.2.3 D Flip-Flop
D flip-flop switching on positive edge (transition "0" to "1“)
a.) Symbol
b.) Notation
D Data input
CLK CLOCK
QQ Output
Sequential Circuits 39
2.2 D Flip-Flop
2.2.3 D Flip-Flop
D flip-flop switching on positive edge (transition "0" to "1“)
c.) Operation
Inputs Outputs
Comments
CLK D Qn+1 Q n+1
↑ 1 1 0 Set
↑ 0 0 1 Reset
0 X Qn Q n Hold state
1 X Qn Q n Hold state
↓ X Qn Q n Hold state
Sequential Circuits 40
2.2 D Flip-Flop
2.2.3 D Flip-Flop
D flip-flop switching on positive edge (transition "0" to "1“)
d.) SPICE Simulation
„When” Analysis: Waveform analysis reveals that the output transitions occur on the positive
edge of the clock pulse (times t1 and t2).
„How” Analysis: Waveform analysis reveals that :
Time t1; D=1 Q=1 Q =0
Time t2; D=0 Q=0 Q =1
D flip-flop switching on positive edge of the clock pulse makes a clear distinction between "when”
and "how“
Sequential Circuits 41
2.2 D Flip-Flop
2.2.3 D Flip-Flop
D flip-flop switching on negative edge (transition "0" to "1“)
a.) Symbol
D Data input
CLK CLOCK
QQ Output
Sequential Circuits 42
2.2 D Flip-Flop
2.2.3 D Flip-Flop
D flip-flop switching on negative edge (transition "0" to "1“)
c.) Operation
Inputs Outputs
Comments
CLK D Qn+1 Q n+1
↓ 1 1 0 Set
↓ 0 0 1 Reset
0 X Qn Qn Hold state
1 X Qn Qn Hold state
↑ X Qn Q
n Hold state
Sequential Circuits 43
2.2 D Flip-Flop
2.2.3 D Flip-Flop
D flip-flop switching on negative edge (transition "0" to "1“)
d.) SPICE Simulare
„When” Analysis: Waveform analysis reveals that the output transitions occur on the negative
edge of the clock pulse (times t1 and t2)
„How” Analysis: Waveform analysis reveals that :
Time t1; D=1 Q=1 Q =0
Time t2; D=0 Q=0 Q =1
D flip-flop switching on negative edge of the clock pulse makes a clear distinction between "when“
and "how“
Sequential Circuits 44
2.3 JK Flip-Flop
Previously, RS flip-flop was presented. Analysis of this flip-flop revealed that a certain combination
of inputs, namely R = S = 1 is not allowed. D flip-flop presented a possible solution to avoid this
limitation. Another solution is the JK flip-flop. This type of solution implies the introduction of a new
level of internal reaction. Thus, the internal structure of such a flip-flop becomes:
Sequential Circuits 45
2.3 JK Flip-Flop
Note There are four types of JK flip-flops. Namely they are:
JK flip-flop switching on positive edge of the clock pulse and RS asynchronous active inputs
JK flip-flop switching on positive edge of the clock pulse and RS asynchronous active inputs
JK flip-flop switching on negative edge of the clock pulse and RS asynchronous active inputs
JK flip-flop switching on negative edge of the clock pulse and RS asynchronous active inputs
Sequential Circuits 46
3. Registers and Counters
3.1 Registers
3.2 Counters
Sequential Circuits 47
3.1 Registers
a.) Definition
Digital circuit consisting of several flip-flops connected so that they can perform certain
operations such as storing multiple bits simultaneously (digital word), or the ability to "move" the
information contained in a digital word.
Observation
'Movement' of information means specific procedures such as "shift left" and “shift right"
Sequential Circuits 48
3.1 Registers
b.) Classification
Memory Register - group of BIST able to be write or read simultaneously. Important to note is that
all four flip-flops that have the same clock signal (CLK)
Register Files - groups of flip-flops, that may be addressed (read or write) by a digital word.
Shift register - Bist group that have the ability to move information between different BIST
existing
Sequential Circuits 49
3.2 Counters
a.) Definition
The counter is a digital circuit - consisting of several BIST - able to perform only certain
well-defined sequence of states with no additional conditions for the transition between
states
b.) Classification
Sequential Circuits 50
3.2 Counters
b.) Classification (cont.) Depending on the mechanism of transition:
Asynchronous counters
Synchronous counters
Sequential Circuits 51
3.2 Counters
b.) Classification (cont.) According to states ordering there are:
•Binary counter, Gray counter, decade counter, ring counter or Johnson counter.
•Up/down counter
Sequential Circuits 52
3.2 Counters
b.) Classification (cont.)
Decimal Binary State
State QD QC QB QA
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
Binary counter
Sequential Circuits 53
3.2 Counters
b.) Classification (cont.)
Sequential Circuits 54
3.2 Counters
b.) Classification (cont.) Gray Counter
Stare Stare binar
zecimal QD QC QB QA
0 0 0 0 0
1 0 0 0 1
2 0 0 1 1
3 0 0 1 0
4 0 1 1 0
5 0 1 1 1
6 0 1 0 1
7 0 1 0 0
8 1 1 0 0
9 1 1 0 1
10 1 1 1 1
11 1 1 1 0
12 1 0 1 0
13 1 0 1 1
14 1 0 0 1
15 1 0 0 0
Gray Counter
Sequential Circuits 55
3.2 Counters
b.) Classification (cont.) Gray Counter
Sequential Circuits 56
3.2 Counters
b.) Classification (cont.) Decade counter
Sequential Circuits 57
3.2 Counters
b.) Classification (cont.) Decade counter
Graph associated with the operation Graph associated with the operation
of four bit decimal counter counting of four bit decimal counter counting
upwards downwards
Sequential Circuits 58
3.2 Counters
b.) Classification (cont.) Ring counter
Sequential Circuits 59
3.2 Counters
b.) Classification (cont.) Ring counter
Sequential Circuits 60
3.2 Counters
b.) Classification (cont.) Jhonson Counter
Sequential Circuits 61
3.2 Counters
b.) Classification (cont.) Numărătorul de tip Jhonson
Sequential Circuits 62