Professional Documents
Culture Documents
16cascade PDF
16cascade PDF
16cascade PDF
CLR’ • INC’
00 Increment higher
01 Count sequence digit’s counter
02 when lower digit’s
03 counter is rolling
10 over
11
12
13
Digit1 Digit0
20
21 clk clk
2 2
22
23 CLR CLR
30 Mod4 Mod4
Rollover1 Rollover0 INC
31 Counter Counter
32
33
00
Possible hazard
ECE 238L 16 © 2006
Page 8
Ripple Counters
0000
Q3 Q2 Q1 Q0
0001
0010
0011
0100 ‘1’ ‘1’ ‘1’ ‘1’
0101 T Q T Q T Q T Q
0110 Q’ Q’ Q’ Q’
0111
1000
CLK
1001
1010
1011
1100
1101
1110
1111
0000
Q1
Net effect is that all the FF’s change at
different times
Q2
Logic depending on Q3 has very little time
to react before next clock edge
Q3
clk1
2
clk
2
CLR CLR
INC=‘1’
Mod4 Mod4
Counter Counter
‘1’
Rollover1 Rollover0
Q3 Q2 Q1 Q0
CLK
(CEin Reset’)/CEout
00 CEin Reset’
Reset
Reset
Reset
11 01
10
0 0 0 0 0 0 0 1 1
0 0 1 0 1 0 1 1 1
0 1 0 1 0 0
0 1 1 1 1 0
N1 = Ce’Q1 + Q1Q0’ + CeQ1’Q0
1 0 0 0 1 0
1 0 1 1 0 0
1 1 0 1 1 0
1 1 1 0 0 1 Q1Q0 N0
Ce 00 01 11 10
0 1 1
Note: No change when CEin=0 1 1 1
Stage 2
increments
is too
early
CLKin
Reset
Dout
CEout
Next Counter
Stage 1 10 11
master loads
CEout slave loads
CEout from Stage 1 is used as the clock
for Stage 2
Stage 2 00 01
system clock.
Stage 2 is
incremented
at the correct
time
CLKin
Reset
Dout
CEout
Next Counter
System
master loads slave loads master loads slave loads
Clock
Stage 1 10 11 00
CEout
Stage 2 00 01
Stage 1
S
Stage 2
A
S
Stage 3
A
CEout 1
CEout 2
Inc
Inc
Roll
Over
You wouldn’t really build it like this!
Inc
Inc
Inc
Inc
Inc
Inc
Inc
It looks like the Inc signal will ripple from counter to counter.
Why is this any different from the toggle flip-flop example?
Count
Value
Clr D Q
Terminal
Count
IFL
D Q
Inc Roll
Over
Clear
Count
Value
Increment
MOD4
Roll
Over
Clock