Counters
Counters
Counters
Incre-
menter
A3 S3 D3 Q3
A2 S2 D2 Q2
A1 S1 D1 Q1
A0 S0 D0 Q0
Clock
Synchronous Counters
• Internal Logic
– XOR complements each bit
– AND chain causes omplement
c ward LSB
of a bit if all bits to
•
from it equal 1
of AND
Count Enable ” the state
• –chain
Forces all outputs
to 0 to “hold
Carry Out ncrementer
– Added as part of i
nable of
unters to
– Connect to Count rs
additional 4-bit co
form larger counte
Design Example: Synchronous BCD
• Use the sequential logic model to design a synchronous BCD counter with
D flip-flops
• State Table =>
• Input combinations Current State Next State
1010 through 1111 Q8 Q4 Q2 Q1 Q8 Q4 Q2 Q1
are don’t cares
0 0 0 0 0 0 0 1
0 0 0 1 0 0 1 0
0 0 1 0 0 0 1 1
0 0 1 1 0 1 0 0
0 1 0 0 0 1 0 1
0 1 0 1 0 1 1 0
0 1 1 0 0 1 1 1
0 1 1 1 1 0 0 0
1 0 0 0 1 0 0 1
1 0 0 1 0 0 0 0
Synchronous BCD (continued)
• Use K-Maps to two-level optimize the next state
equations and manipulate into forms containing XOR
gates:
D1 = Q1’
• D2 = Q2 + Q1Q8’
D4 = Q4 + Q1Q2
D8 = Q8 + (Q1Q8 + Q1Q2Q4)
• Y = Q1Q8
counter is perturbed by a Q8 Q4 Q2 Q1 Q8 Q4 Q2 Q1
011
Ring Counter