Lecture 5
Lecture 5
Design
Dr. Omar A. M. Aly
Dr. Diaaeldin Abdelrahman
[email protected]
Lecture-Set 5:
Sequential Logic
Circuits
Dr. Omar A. M. Aly
Dr. Diaaeldin Abdelrahman
[email protected]
M. M. Mano, “Digital Design With an Introduction to the Verilog HDL,” 5th Edition, Pearson
Education, 2013.
Outline
Combinational vs Sequential
Latches
Flip-flops
2. Asynchronous:
Inputs Outputs
Combinational
Circuit
Memory
Elements
Asynchronous
oPotentially faster
oHarder to analyze and design
S Q
0 1
Initial Value
R
0 1
Q
S Q
0 0
S Q
0 1
S Q
0 0
S Q
1 1
S Q
1 0
S Q
1 10
S S R Q
Q Invalid
0 0 Q=Q’=1
0 1 1 Set
1 0 0 Reset
R Q
1 1 Q0 No change
Digital Circuits Design Slide 18
Latches
SR-Latch with Control Input R R
Q
C
D S D
Q
C Q
R Q
Output may
change
C D Q t
0 x Q0 Output may
1 0 0 change
1 1 1
CLK
Master Slave
CLK
D
Looks like it is negative
edge-triggered QMaster
QSlave
Digital Circuits Design Slide 28
Flip-Flops
J-K Flip-Flop
𝑸 𝒏 + 𝟏 = 𝑱𝑸′ + 𝑲′ 𝑸
Digital Circuits Design Slide 35
Flip-Flops
Characteristic Equation
𝑸 𝒕+𝟏 =𝑫
The outputs and the next state are both a function of the inputs and the
present state
A state table and state diagram are then presented to describe the behavior
of the sequential circuit
Digital Circuits Design Slide 37
Analysis of Clocked Sequential Circuits
State Equations
A state equation (also called a transition
equation) specifies the next state as a function of
the present state and inputs
It is possible to write a set of state equations for
the circuit:
• A(t + 1) = A(t)x(t) + B(t)x(t)
B(t + 1) = A’(t)x(t) That can be written as,
• A(t + 1) = Ax + Bx
B(t + 1) = A’x
y = (A + B) . x’
Digital Circuits Design Slide 38
Analysis of Clocked Sequential Circuits
State Table
The time sequence of inputs, outputs,
and flip-flop states can be enumerated
in a state table (sometimes called a
transition table).