Title: Counters
1Counters
- Mano Kime
- Sections 5-4, 5-5
2Counters
- Ripple Counter
- Synchronous Binary Counters
- Design with D Flip-Flops
- Design with J-K Flip-Flops
- Counters in VHDL
3Counters ---
4A 4-bit Ripple Counter
Less Significant Bit output is Clock for Next
Significant Bit! (Clock - active low)
Recall...
5J-K Flip-Flop from a D Flip-Flop
DQ J !Q !K Q
DQ Q DQ 0 DQ !Q Q 1 DQ !Q
6(No Transcript)
7(No Transcript)
8(No Transcript)
9(No Transcript)
10Counters
- Ripple Counter
- Synchronous Binary Counters
- Design with D Flip-Flops
- Design with J-K Flip-Flops
- Counters in VHDL
11Divide-by-8 Counter
12Divide-by-8 Counter
Q1 Q0
00
01
11
10
Q2
1
0
1
1
1
1
Q2.D
Q2.D !Q2 Q1 Q0 Q2 !Q1
Q2 !Q0
13Divide-by-8 Counter
Q1 Q0
00
01
11
10
Q2
1
1
0
1
1
1
Q1.D
Q1.D !Q1 Q0 Q1 !Q0
14Divide-by-8 Counter
Q1 Q0
00
01
11
10
Q2
1
1
0
1
1
1
Q0.D
Q0.D ! Q0
15CUPL Simulation Output File
163-Bit Down Counter
173-Bit Down Counter
Q1 Q0
00
01
11
10
Q2
1
0
1
1
1
1
Q2.D
Q2.D !Q2 !Q1 !Q0 Q2 Q1
Q2 Q0
183-Bit Down Counter
Q1 Q0
00
01
11
10
Q2
1
1
0
1
1
1
Q1.D
Q1.D !Q1 !Q0 Q1 Q0
193-Bit Down Counter
Q1 Q0
00
01
11
10
Q2
1
1
0
1
1
1
Q0.D
Q0.D ! Q0
20Up-Down Counter
Up-Down Counter
clock
Q0 Q1 Q2
UD
UD 0 count up UD 1 count down
21Up-Down Counter
UD Q2 Q1 Q0 Q2.D Q1.D Q0.D
UD Q2 Q1 Q0 Q2.D Q1.D Q0.D
1 0 0 0 1 1 1 1 0 0 1 0 0 0 1 0 1
0 0 0 1 1 0 1 1 0 1 0 1 1 0 0 0
1 1 1 1 0 1 1 0 0 1 1 1 0 1 0 1 1
1 1 1 1 1 0
0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 1
0 0 1 1 0 0 1 1 1 0 0 0 1 0 0 1
0 1 0 1 0 1 1 1 0 0 1 1 0 1 1 1 0
1 1 1 0 0 0
Up-Counter
Down-Counter
22Up-Down Counter
Q1 Q0
00
01
11
10
UD Q2
00
01
11
10
Make Karnaugh maps for Q2.D, Q1.D, and Q0.D
23Counters
- Ripple Counter
- Synchronous Binary Counters
- Design with D Flip-Flops
- Design with J-K Flip-Flops
- Counters in VHDL
24Synchronous Binary Counters
J-K Flip Flop Design of a Binary Up Counter
25Synchronous Binary Counters
J-K Flip Flop Design of a Binary Up Counter
26Synchronous Binary Counters
J-K Flip Flop Design of a Binary Up Counter
27Synchronous Binary Counters
J-K Flip Flop Design of a Binary Up Counter
284 - Bit Counter Logic Diagram
29Counters
- Ripple Counter
- Synchronous Binary Counters
- Design with D Flip-Flops
- Design with J-K Flip-Flops
- Counters in VHDL
30(No Transcript)
314-Bit Binary Counter with Reset