Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters...
-
date post
15-Jan-2016 -
Category
Documents
-
view
227 -
download
2
Transcript of Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters...
![Page 1: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/1.jpg)
Counters
Mano & Kime
Sections 5-4, 5-5
![Page 2: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/2.jpg)
Counters
• Ripple Counter
• Synchronous Binary Counters– Design with D Flip-Flops– Design with J-K Flip-Flops
• Counters in VHDL
![Page 3: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/3.jpg)
Counters ---
![Page 4: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/4.jpg)
A 4-bit Ripple Counter
Recall...
Less SignificantBit output is Clockfor Next Significant Bit!(Clock - active low)
![Page 5: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/5.jpg)
J-K Flip-Flop from a D Flip-Flop
DQ = J & !Q # !K & Q
DQ = Q
DQ = 0
DQ =!Q # Q = 1
DQ = !Q
![Page 6: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/6.jpg)
![Page 7: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/7.jpg)
![Page 8: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/8.jpg)
![Page 9: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/9.jpg)
![Page 10: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/10.jpg)
Counters
• Ripple Counter
• Synchronous Binary Counters– Design with D Flip-Flops– Design with J-K Flip-Flops
• Counters in VHDL
![Page 11: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/11.jpg)
CLK
D Q
!Q
CLK
D Q
!Q
CLK
D Q
!Q
Q0Q0.D
Q1
Q2
Q1.D
Q2.D
s0 0 0 0 0 0 1s1 0 0 1 0 1 0s2 0 1 0 0 1 1s3 0 1 1 1 0 0s4 1 0 0 1 0 1s5 1 0 1 1 1 0s6 1 1 0 1 1 1s7 1 1 1 0 0 0
State Q2 Q1 Q0 Q2.D Q1.D Q0.D
Divide-by-8 Counter
![Page 12: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/12.jpg)
s0 0 0 0 0 0 1s1 0 0 1 0 1 0s2 0 1 0 0 1 1s3 0 1 1 1 0 0s4 1 0 0 1 0 1s5 1 0 1 1 1 0s6 1 1 0 1 1 1s7 1 1 1 0 0 0
State Q2 Q1 Q0 Q2.D Q1.D Q0.D
Divide-by-8 Counter
Q2
Q1 Q000 01 11 10
0
1 1 11
1
Q2.D
Q2.D = !Q2 & Q1 & Q0 # Q2 & !Q1 # Q2 & !Q0
![Page 13: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/13.jpg)
s0 0 0 0 0 0 1s1 0 0 1 0 1 0s2 0 1 0 0 1 1s3 0 1 1 1 0 0s4 1 0 0 1 0 1s5 1 0 1 1 1 0s6 1 1 0 1 1 1s7 1 1 1 0 0 0
State Q2 Q1 Q0 Q2.D Q1.D Q0.D
Divide-by-8 Counter
Q2
Q1 Q000 01 11 10
0
1
1
11
1
Q1.D
Q1.D = !Q1 & Q0 # Q1 & !Q0
![Page 14: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/14.jpg)
s0 0 0 0 0 0 1s1 0 0 1 0 1 0s2 0 1 0 0 1 1s3 0 1 1 1 0 0s4 1 0 0 1 0 1s5 1 0 1 1 1 0s6 1 1 0 1 1 1s7 1 1 1 0 0 0
State Q2 Q1 Q0 Q2.D Q1.D Q0.D
Divide-by-8 Counter
Q2
Q1 Q000 01 11 10
0
1
1
11
1
Q0.D
Q0.D = ! Q0
![Page 15: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/15.jpg)
CUPL SimulationOutput File
![Page 16: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/16.jpg)
CLK
D Q
!Q
CLK
D Q
!Q
CLK
D Q
!Q
Q0Q0.D
Q1
Q2
Q1.D
Q2.D
s0 0 0 0 1 1 1s1 0 0 1 0 0 0s2 0 1 0 0 0 1s3 0 1 1 0 1 0s4 1 0 0 0 1 1s5 1 0 1 1 0 0s6 1 1 0 1 0 1s7 1 1 1 1 1 0
State Q2 Q1 Q0 Q2.D Q1.D Q0.D
3-Bit Down Counter
![Page 17: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/17.jpg)
3-Bit Down Counter
Q2
Q1 Q000 01 11 10
0
1 1 11
1
Q2.D
Q2.D = !Q2 & !Q1 & !Q0 # Q2 & Q1 # Q2 & Q0
s0 0 0 0 1 1 1s1 0 0 1 0 0 0s2 0 1 0 0 0 1s3 0 1 1 0 1 0s4 1 0 0 0 1 1s5 1 0 1 1 0 0s6 1 1 0 1 0 1s7 1 1 1 1 1 0
State Q2 Q1 Q0 Q2.D Q1.D Q0.D
![Page 18: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/18.jpg)
3-Bit Down Counter
Q2
Q1 Q000 01 11 10
0
1
1
11
1
Q1.D
Q1.D = !Q1 & !Q0 # Q1 & Q0
s0 0 0 0 1 1 1s1 0 0 1 0 0 0s2 0 1 0 0 0 1s3 0 1 1 0 1 0s4 1 0 0 0 1 1s5 1 0 1 1 0 0s6 1 1 0 1 0 1s7 1 1 1 1 1 0
State Q2 Q1 Q0 Q2.D Q1.D Q0.D
![Page 19: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/19.jpg)
3-Bit Down Counter
Q2
Q1 Q000 01 11 10
0
1
1
11
1
Q0.D
Q0.D = ! Q0
s0 0 0 0 1 1 1s1 0 0 1 0 0 0s2 0 1 0 0 0 1s3 0 1 1 0 1 0s4 1 0 0 0 1 1s5 1 0 1 1 0 0s6 1 1 0 1 0 1s7 1 1 1 1 1 0
State Q2 Q1 Q0 Q2.D Q1.D Q0.D
![Page 20: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/20.jpg)
Up-Down Counter
Up-DownCounter
Q0
Q1
Q2
clock
UD
UD = 0: count upUD = 1: count down
![Page 21: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/21.jpg)
Up-Down Counter
1 0 0 0 1 1 11 0 0 1 0 0 01 0 1 0 0 0 11 0 1 1 0 1 01 1 0 0 0 1 11 1 0 1 1 0 01 1 1 0 1 0 11 1 1 1 1 1 0
UD Q2 Q1 Q0 Q2.D Q1.D Q0.D
0 0 0 0 0 0 10 0 0 1 0 1 00 0 1 0 0 1 10 0 1 1 1 0 00 1 0 0 1 0 10 1 0 1 1 1 00 1 1 0 1 1 10 1 1 1 0 0 0
UD Q2 Q1 Q0 Q2.D Q1.D Q0.D
Up-Counter Down-Counter
![Page 22: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/22.jpg)
UD Q2
Q1 Q000 01 11 10
00
01
11
10
Up-Down Counter
Make Karnaugh maps for Q2.D, Q1.D, and Q0.D
![Page 23: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/23.jpg)
Counters
• Ripple Counter
• Synchronous Binary Counters– Design with D Flip-Flops– Design with J-K Flip-Flops
• Counters in VHDL
![Page 24: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/24.jpg)
J-K Flip Flop Design of a Binary Up Counter
Synchronous Binary Counters
![Page 25: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/25.jpg)
J-K Flip Flop Design of a Binary Up Counter
Synchronous Binary Counters
![Page 26: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/26.jpg)
J-K Flip Flop Design of a Binary Up Counter
Synchronous Binary Counters
![Page 27: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/27.jpg)
J-K Flip Flop Design of a Binary Up Counter
Synchronous Binary Counters
![Page 28: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/28.jpg)
4 - Bit CounterLogic Diagram
![Page 29: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/29.jpg)
Counters
• Ripple Counter
• Synchronous Binary Counters– Design with D Flip-Flops– Design with J-K Flip-Flops
• Counters in VHDL
![Page 30: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/30.jpg)
![Page 31: Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.](https://reader035.fdocuments.in/reader035/viewer/2022062322/56649d435503460f94a1fd58/html5/thumbnails/31.jpg)
4-Bit Binary Counter with Reset