Professional Documents
Culture Documents
EE8351 Digital Logic Circuits: S.S.Harish Department of EEE
EE8351 Digital Logic Circuits: S.S.Harish Department of EEE
• Sequential logic
• SR, JK, D and T flip flops
• level triggering and edge triggering
• counters - asynchronous and synchronous type - Modulo counters
• Shift registers
• Design of synchronous sequential circuits
• Moore and Melay models- Counters
• state diagram
• state reduction
• state assignment
SEQUENTIAL Logic
• Sequential- order
• Memory required
S R Q Q’ Comment
0 0 Hold
0 1 0 1 Reset
1 0 1 0 Set
1 1 0 0 Forbidden
Qn+1=S+R’Qn
SR latch using cross coupled NOR
SR Latch
Only on condition SR latch to work
SR with Enable
Truth Table
S R Q Q’ Comment
0 0 1 1 Not used
0 1 0 1 Reset
1 0 1 0 Set
1 1 Hold
State Table
Truth Table
D Present Next
state state
D Q Q’
0 0 0
0 0 1
0 1 0
1 1 0
1 0 1
1
1 1 1
SR flip-flop
• Clock as Enable to SR latch
SR flip-flop
• Master -slave
D flip-flop
JK flip-flop
• SR flip – 1 invalid condition
• To overcome feedback used- JK flip-flop
JK flip-flop
T flip-flop
Flip flop Conversion
SR flip flop to JK flipflop
Q JK Q JK
00 01 11 10 00 01 11 10
0 1 1
S=J.Qn’ 0 x x
R=K.Qn
1 x x
1 1 1
Flip flop Conversion
JK flip-flop to SR flip-flop
Q SR Q SR
00 01 11 10 00 01 11 10
1 0 x x
0 J=S.R’ K=R.Qn’
1 1 1
1 x x
Flip flop Conversion
JK flip flop to T flipflop
J=K=T
Flip flop Conversion
D flip flop to T flipflop
D=QnT’+Qn’T
Flip flop Conversion
SR flip flop to T flipflop
S=TQn’
R=TQn
Flip flop Conversion
JK flip flop to D flipflop
J=D
K=D’
Flip flop Conversion
T flip flop to JK flipflop
Q JK T=JQn’+KQn
00 01 11 10
0 1 1
1 1 1
Counters
• Sequential circuit to count
• Flip-flops in cascade
• Counter based on clock, number of stages, sequential states
• Application of clock: Synchronous counter, Asynchronous counter
• Number of stages: 2 bit, 3 bit, …..
• Sequential states: Up counter, Down counter
Counters
Synchronous-UP- 3 bit Using T flip flop
Present state Next state Excitation table
Cn B n A n Cn+1 Bn+1 An+1 TC TB TA
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 TA=1
1 0 1 1 1 0 0 1 1 TB=A
1 1 0 1 1 1 0 0 1
TC=A.B
1 1 1 0 0 0 1 1 1
K-map for TC
K-map for TA K-map for TB
C BA
C BA C BA 00 01 11 10
00 01 11 10 00 01 11 10
0 0 0 1 0
0 1 1 1 1 0 0 1 1 0
1 0 0 1 0
1 1 1 1 1 1 0 1 1 0
Counters
Synchronous-UP- 3 bit
C B A
1 TA=1
TB=A
C B A TC=A.B
Clk
D
D D
C B A
Clk
C B A
Clk
C B A
1 TA=1
TB=A’
C B A TC=A’.B’
Clk
Ring counter
• Modulo-n counter
• 4 flip-flops- 4 states- mod-4
Shift register
Twisted Ring counter
Or Johnson counter
Ci+1 1 0 0 0 1
• One output 0 1 1 1 0 1 1 0 1 0
• Carry- 2 states- S0, S1 Flip-flop
1 0 0 0 1 0 0 1 0 1
1 0 1 1 0 0 1 1 1 0
1 1 0 1 0 1 0 1 1 0
State table 1 1 1 1 1 1 1 1 1 1
Next state Output(Sum) State diagram
00 01
Input 00 01 10 11 00 01 10 11 0 11
0 Mealy Model
(XY) 01 0
10
S0 S0 S0 S0 S1 0 1 1 0 1 S0 S1 0
10 11
S1 S0 S1 S1 S1 1 0 0 1
1 00 1
1
Sequential circuit model/ Analysis
State diagram
• Serial Adder Moore Model
Truth table State table 00 01
X Y Ci Sum Ci+1 Ci Sum Ci+1 10
0 0 0 0 0 00 01 10 11 S0 11 S2
0 1
1 1 0 0 1 0 0 S0 S0 S1 S1 S2 0 0
0 1 0 1 0 0 1 S1 S0 S1 S1 S2 01 01
00 11 11
1 0 0 1 0 1 0 S2 S1 S2 S2 S3 10 00 10
0 1 1 0 1 1 1 S3 S1 S2 S2 S3 S1 S3
0 1
1 0 1 0 1 1 00 1
0 0 1 1 0 01
1 1 1 1 1 10 11
State reduction