Professional Documents
Culture Documents
Digital Circuits
Combinational Circuits
X CC Y W
Sequential Circuits
X CC Z
Storage elements
Output is determined in general by current values of inputs and past values of inputs/outputs as well.
2
NOR SR Latch
R
1 0
S 1
R 0
Q 1
Q 0
State SET
NOR SR Latch
Reset
R
0 S Set
S 1 0
R 0 1
Q 1 0
Q 0 1
HOLD State
R
1 0
Q
1 0 S 0
Q
S 1 0 0 1
R 0 1 0 1
Q 1 0 Q 0
Q 0 1 Q 0
0 Q Both the outputs are well defined and 0. The first problem is that we do not get complementary output.
Q
1
S
A more serious problem occurs when we switch the latch to the hold state by changing RS from 11 00 . Suppose the inputs do not change simultaneously and we get the situation 11 01* 00
R
1
Q
1 Q=1
0
6
1
Q
1 Q=1
0
Q
0 Q=0
So although output is well defined when we apply RS = 11, it becomes unpredictable once we switch the latch to hold state by applying RS = 00. That 7 is why RS = 11 is not used as an input combination.
1
1
0
1
0 0
1
Q S
Suppose gate gate-1 1 is faster On the other hand suppose that gate-2 is faster. 1
1
Q=1
0
1
0
1
0
2
Q S
1
8
Q=0
NAND Latch
S Q
S 0 1 1 0
R 1 0 1 0
Q 1 0 Q 1
Q 0 1 Q 1
1
Q
EN
0 1
Q
Hold State
S
Q
Enable 0 1
S R x x 1 0 0 1 0 0 1 1
Q Q Q Q 1 0 0 1 Q Q 0 0
EN
1
R
1 1
10
D latch
S EN R Q Q D
1 1 1
S EN
Q Q
1 0
R 0
Enable 0 1 1 1 1
S R x x 1 0 0 1 0 0 1 1
Q Q Q Q 1 0 0 1 Q Q 0 0
D EN
Q Q
zn
D clk
yn
Circuits are designed with the idea there would be single change in output or memory state t t in i single i l clock l k cycle. l
clk
y z
12
Clock
13
Clock
14
Master-Slave D Flip-flop
D D D Q
master
EN EN
slave
Q
clk
Clock
Master Slave
clk
15
1
5
0 0
Q
0 1
clk
3
1 0
R
1 1
0
D
16
1 1 0
0 1
5
0 1
clk
1
3
1 0
1
D
17
0
5
1
Q
1
clk
3
1
R
1 0
D
0 1
JK Flip-flop
Q 0 0 0 0 1 1 1 1
J 0 0 1 1 0 0 1 1
K 0 1 0 1 0 1 0 1
Q(t+1) 0 Q(t + 1) = JQ (t ) + K Q(t ) 0 1 1 1 JK flip flop is refinement of RS flip 0 flop where indeterminate state of RS flip flop is defined in JK Flip Flop. 1 19 0
Toggle or T Flip-flop
Q 0 0 1 1
T 0 1 0 1
Q(t+1) 0 1 1 0
Q(t + 1) = T Q(t )
20
Characteristic table
Given a input and the present state of the flip-flop, what is the next state of the flip-flop
D Flip-flop
D clk Q
Inputs p (D) ( ) Q(t+1) ( )
0 1
0 1
Characteristic equation:
Q(t + 1) = D
Q(t) 0 1 () Q(t)
K Q(t+1) 0 1 0 1
J clk K
0 0 1 1
Characteristic equation:
Q(t + 1) = JQ (t ) + K Q(t )
21
Toggle or T Flip-flop
Inputs (T) Q(t+1)
T clk
0 1
Q(t) Q( ) Q(t)
Characteristic equation:
Q(t + 1) = T Q(t )
Excitation Table
What inputs are required to effect a particular state change Excitation Table
Inputs
Q 0 0 1 1
T 0 1 0 1
Q(t+1) 0 1 1 0
Q(t) 0 0 1 1
Q(t+1) 0 1 0 1
T 0 1 1 0
22
Excitation Table
J K 0 1 0 1 Q(t+1) Q( ) Q(t) 0 1 Q(t)
J 0 1 X X
K X X 1 0
J clk K
0 0 1 1
Characteristic Table
E it ti Excitation Table T bl
Q 0 0 0 0 1 1 1 1
J 0 0 1 1 0 0 1 1
K 0 1 0 1 0 1 0 1
Q(t+1) 0 0 1 1 1 0 1 0
23
Excitation Table
D clk Q
D 0 1 Q(t+1) 0 1
Characteristic Table
Q 0 0 1 1
D 0 1 0 1
Q(t+1) 0 1 0 1
D 0 1 0 1
Excitation Table
24
Convert a D FF to JK FF
J
J D Q
K
X X 1 0
Q Q(t+1) D 0 0 1 1 0 1 0 1
0 1 0 1
0 1 X X
CC
K
clk
J 0 1 X X
K X X 1 0
D 0 1 0 1
25
Excitation Table
Excitation Table
Convert a D FF to JK FF
J
J D Q
K
X X 1 0
Q Q(t+1) D 0 0 1 1 0 1 0 1
0 1 0 1
0 1 X X
CC
K
clk
1 1
1 1
D = Q.J + Q.K
26
Convert a D FF to JK FF
D = Q.J + Q.K
Q 0 0 0 0 1 1 1 1
J 0 0 1 1 0 0 1 1
K 0 1 0 1 0 1 0 1
D
0 0 1 1 1 0 1 0
Q(t+1)
0 0 1 1 1 0 1 0
Inputs J
0 0 1 1
27