Professional Documents
Culture Documents
Chapter_5 (3rd Edition)
Chapter_5 (3rd Edition)
Combinational outputs
inputs
Circuit
inputs outputs
Combinational
Circuit
Memory
Elements
Motivation
Set
Sensor
Memory On Off
Alarm
element
Reset
S S R Qa Qb
Q
1 1 0/1 1/0 (no change)
1 0 0 1
0 1 1 0
0 0 1 1
Q
R (b) Characteristic Table
S
Clk S R Q(t+1)
Q
0 x x Q(t) (no change)
1 0 0 Q(t) (no change)
Clk 1 0 1 0
1 1 0 1
1 1 1 x
Q
(b) Characteristic Table
R
t su
th
Clk
(a) Circuit
(c) Graphical symbol
Clock
Qm
Q = Qs
1 P3 Clk =0
P1=P2=High (no change state)
P3=D, P4=D’
P1
2 Clk =0>>>>1
5 Q
P1= D’, P2= D
Q = D and Q’ = D’
Clock
P2 6 Q
3
D Q
Clock Q
4 P4
D
Clk =0
P1=P2=High (no change state)
P3=D, P4=D’
Clk =0>>>>1
P1= D’, P2= D
Q = D and Q’ = D’
Clk =0
P1=P2=High (no change state)
P3=D, P4=D’
Clk =0>>>>1
P1= D’, P2= D
Q = D and Q’ = D’
Clk =0
P1=P2=High (no change state)
P3=D, P4=D’
Clk =0>>>>1
P1= D’, P2= D
Q = D and Q’ = D’
Clk =0
P1=P2=High (no change state)
P3=D, P4=D’
Clk =0>>>>1
P1= D’, P2= D
Q = D and Q’ = D’
D D Q Qa
Clock Clk Q Qa
D Q Qb
Q Qb
D Q Qc
Q Qc
(a) Circuit
Clock
D
Qa
Qb
Qc
D
Q
Clock
Clear
(a) Circuit
Preset
D Q
Clear
T Q(t + 1)
0 Q(t )
Q 1 Q(t )
D Q
T
Q Q (b) Truth table
Clock
T Q
(a) Circuit
Q
J
D Q Q
K Q Q
Clock
(a) Circuit
J K Q ( t + 1)
0 0 Q (t) J Q
0 1 0
1 0 1
K Q
1 1 Q (t )
Clock Q Q Q Q
(a) Circuit
In Q1 Q2 Q3 Q4 = Out
t0 1 0 0 0 0
t1 0 1 0 0 0
t2 1 0 1 0 0
t3 1 1 0 1 0
t4 1 1 1 0 1
t5 0 1 1 1 0
t6 0 0 1 1 1
t7 0 0 0 1 1
Fundamentals of Digital Logic Department of Electrical Engineering
6.8 Registers
Parallel output
Q3 Q2 Q1 Q0
D Q D Q D Q D Q
Q Q Q Q
Serial Clock
input Shift/Load Parallel input
Fundamentals of Digital Logic Department of Electrical Engineering
6.8 Registers
1 T Q T Q T Q
Clock Q Q Q
Q0 Q1 Q2
(a) Circuit
Clock
Q0
Q1
Q2
Count 0 1 2 3 4 5 6 7 0
1 T Q T Q T Q
Clock Q Q Q
Q0 Q1 Q2
(a) Circuit
Clock
Q0
Q1
Q2
Count 0 7 6 5 4 3 2 1 0
Design Procedure
2. Excitation Table for counter (Showing Present State, Next State & Flip-
-Flop Inputs)
3. In step 2, we need excitation tables for respective flip flops.
4. After finding the flip flop inputs, the logic expressions for flip flop inputs
are obtained.
Q(t) Q(t+1) T
0 0 0
0 1 1
1 0 1
1 1 0
1 T Q T Q T Q T Q
Q0 Q1 Q2 Q3
Clock Q Q Q Q
(a) Circuit
Clock
Q0
Q1
Q2
Q3
Count 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1
Enable T Q T Q T Q T Q
Clock Q Q Q Q
Clear
Enable D Q Q0
Q
D Q Q1
Q
D Q Q2
Q
D Q Q3
Q
Output
Clock carry
0
1 D Q Q1
D1
Q
0
1 D Q Q2
D2
Q
0
1 D Q Q3
D3
Q
Output
carry
Load
Clock
Figure 7.25. A counter with parallel-load capability.
6.10 Counters with Synchronous/ Asynchronous reset
1 Enable
0 D0 Q0
0 D1 Q1
0 D2 Q2
Load
Clock
Clock
(a) Circuit
Clock
Q0
Q1
Q2
Count 0 1 2 3 4 5 0 1
1 T Q T Q T Q
Q0 Q1 Q2
Clock Q Q Q
(a) Circuit
Clock
Q0
Q1
Q2
Count 0 1 2 3 4 5 0 1 2
1 Enable
0 D0 Q0
0 D1 Q1
D2 Q2 BCD 0
0
0 D3 Q3
Load
Clock
Clock
Clear Enable
0 D0 Q0
0 D1 Q1
D2 Q2 BCD1
0
0 D3 Q3
Load
Clock
Start
D Q D Q D Q
Q Q Q
Clock
Q0 Q1 Q2 Q3
y0 y1 y2 y3
2-to-4 decoder
w1 w0 En
Q1 Q0
Clock Clock
Two-bit up-counter
Start Clear
Q0 Q1 Qn – 1
D Q D Q D Q
Q Q Q
Reset
Clock