Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.

Slides:



Advertisements
Similar presentations
©2004 Brooks/Cole FIGURES FOR CHAPTER 12 REGISTERS AND COUNTERS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter.
Advertisements

Unit 11 Latches and Flip-Flops Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Unit 13 Analysis of Clocked Sequential Circuits Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2003 TopicJ: Counters José Nelson Amaral.
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.
Logic and Computer Design Fundamentals Registers and Counters
ENGIN112 L27: Counters November 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 27 Counters.
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
ECE 331 – Digital System Design Counters (Lecture #19) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design,
Digital Logic Design Lecture 24. Announcements Homework 8 due today Exam 3 on Tuesday, 11/25. – Topics for exam are up on the course webpage.
Sequential Circuit Introduction to Counter
Unit 11 Latches and Flip-Flops Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Registers and Counters
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Chapter 1_4 Part II Counters
Flip-Flop Applications Registers.  a register is a collection of flip-flops  basic function is to hold information  a shift register is a register.
Counter Section 6.3.
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Unit 11 Latches and Flip-Flops Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Mid3 Revision Prof. Sin-Min Lee. 2 Counters 3 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Registers and Counters
ECE 301 – Digital Electronics Flip-Flops and Registers (Lecture #15)
EE24C Digital Electronics Projects
CSI-2111 Computer Architecture Ipage Sequential circuits, 2nd part v Objectives: To recognize and know to use the principal types of sequential.
CHAPTER 12 REGISTERS AND COUNTERS
CHAPTER 6 MODULAR SQUENTIAL CIRCUITS & APPLICATIONS
CHAPTER 14 Digital Systems.
Rabie A. Ramadan Lecture 3
Counters Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty of Information Technology The Islamic University.
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
Princess Sumaya Univ. Computer Engineering Dept. Chapter 6:
Department of Communication Engineering, NCTU 1 Unit 2 Reviews on Logic Elements.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
BZUPAGES.COM1 Chapter 9 Counters. BZUPAGES.COM2 BzuPages.COM Please share your assignments/lectures & Presentation Slides on bzupages which can help your.
Digital Design Lectures 11 & 12 Shift Registers and Counters.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
Registers and Counters Chapter 6. Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback.
Chap 5. Registers and Counters. Chap Definition of Register and Counter l a clocked sequential circuit o consist of a group of flip-flops & combinational.
1 Register A register is a sequential circuit that can be set to a specific state and retain that state until externally changed. –State is a combination.
Unit 13 Analysis of Clocked Sequential Circuits Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
Sequential logic circuits
Synchronous Counter Design
Chapter 8 Solving Larger Sequential Problems.
Chap 5. Registers and Counters
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
Logic Design (CE1111 ) Lecture 6 (Chapter 6) Registers &Counters Prepared by Dr. Lamiaa Elshenawy 1.
CHAPTER 14 Digital Systems. Figure 14.1 RS flip-flop symbol and truth table Figure
1 CS 352 Introduction to Logic Design Lecture 6 Ahmed Ezzat Latches, Flip/Flops, Registers, and Counters Ch-11 + Ch-12.
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
1 CHAPTER 12 REGISTERS AND COUNTERS This chapter in the book includes: Objectives Study Guide 12.1Registers and Register Transfers 12.2Shift Registers.
Chapter 35 Sequential Logic Circuits. Objectives After completing this chapter, you will be able to: –Describe the function of a flip-flop –Identify the.
Lecture 11 Registers and Counters
FIGURE 6.1 Four‐bit register
EKT 221 : Digital 2 COUNTERS.
Figure 12-13: Synchronous Binary Counter
SLIDES FOR CHAPTER 12 REGISTERS AND COUNTERS
Dr. Clincy Professor of CS
University of Maryland Baltimore County Department of Computer Science and Electrical Engineering   CMPE 212 Laboratory (Discussion 12) Hasib Hasan
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
Switching Theory and Logic Design Chapter 5:
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
14 Digital Systems.
ANALYSIS OF SEQUENTIAL CIRCUIT LOGIC DIAGRAM
Outline Registers Counters 5/11/2019.
Digital Electronics and Logic Design
Presentation transcript:

Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University

22004/05/10Registers and Counters Outline 12.1Registers and Register Transfers 12.2Shift Registers 12.3Design of Binary Counters 12.4Counters for Other Sequences 12.5Counter Design Using S-R and J-K Flip-Flops Flip-Flops 12.6Derivation of Flip-Flop Input Equations -- Summary -- Summary

32004/05/10Registers and Counters Shift Registers A shift register Store binary data Store binary data The data can be shifted to the left or right The data can be shifted to the left or right Bits shifted out one end May be lost May be lost May be shifted back in the other end May be shifted back in the other end

42004/05/10Registers and Counters Right-Shift Register

52004/05/10Registers and Counters 8-Bit Serial-in, Serial-out Shift Register

62004/05/10Registers and Counters Timing Diagram for Shift Register

72004/05/10Registers and Counters Parallel-in, Parallel-out Right Shift Register

82004/05/10Registers and Counters Shift Register Operation

92004/05/10Registers and Counters Next-state Equations Q 3 + = Sh’ · L’ · Q 3 + Sh’ · L · D 3 + Sh · SI Q 2 + = Sh’ · L’ · Q 2 + Sh’ · L · D 2 + Sh · Q 2 Q 1 + = Sh’ · L’ · Q 1 + Sh’ · L · D 1 + Sh · Q 1 Q 0 + = Sh’ · L’ · Q 0 + Sh’ · L · D 0 + Sh · Q 0

102004/05/10Registers and Counters Timing Diagram for Shift Register

112004/05/10Registers and Counters Shift Register with Inverted Feedback

122004/05/10Registers and Counters Outline 12.1Registers and Register Transfers 12.2Shift Registers 12.3Design of Binary Counters 12.4Counters for Other Sequences 12.5Counter Design Using S-R and J-K Flip-Flops Flip-Flops 12.6Derivation of Flip-Flop Input Equations -- Summary -- Summary

132004/05/10Registers and Counters Binary Counters Synchronous counters Synchronized by a common clock pulse Synchronized by a common clock pulse State changes simultaneously State changes simultaneously Ripple counters The state change of one flip-flop triggers the next flip-flop in line. The state change of one flip-flop triggers the next flip-flop in line. Not discussed in this text Not discussed in this text

142004/05/10Registers and Counters Synchronous Binary Counter Using Three T flip-flops

152004/05/10Registers and Counters Synchronous Binary Counter The state of the counter is 011 Flip-flop C is in state 0 Flip-flop C is in state 0 Flip-flop B is in state 1 Flip-flop B is in state 1 Flip-flop A is in state 1 Flip-flop A is in state 1 Initially, assume that all flip-flops are set to 0 state.

162004/05/10Registers and Counters Synchronous Binary Counter Initially

172004/05/10Registers and Counters Synchronous Binary Counter 1st clock pulse

182004/05/10Registers and Counters Synchronous Binary Counter 2nd clock pulse

192004/05/10Registers and Counters Synchronous Binary Counter 3rd clock pulse

202004/05/10Registers and Counters Synchronous Binary Counter 4th clock pulse

212004/05/10Registers and Counters Synchronous Binary Counter The sequence of flip-flop states in CBA = 000, 001, 010, 011, 100, 101, 110, 111, 000, … The sequence repeats…. The sequence repeats….

222004/05/10Registers and Counters Synchronous Binary Counter Design the counter By inspection of the counting sequence By inspection of the counting sequence By a systematic procedure By a systematic procedure State table Karnaugh maps

232004/05/10Registers and Counters Synchronous Binary Counter

242004/05/10Registers and Counters Karnaugh Maps for Binary Counter

252004/05/10Registers and Counters Binary Counter with D Flip-Flops

262004/05/10Registers and Counters Karnaugh Maps for D Flip-Flops

272004/05/10Registers and Counters D Input Equations D A = A + = A ’ D B = B + = BA ’ + BA ’ = B  A D C = C + = C ’ BA + CB ’ + CA ’ = C ’ BA + C(BA) ’ = C ’ BA + C(BA) ’ = C  BA = C  BA

282004/05/10Registers and Counters An Up-Down Binary Counter U = 1, D = 0 The counter counts up. The counter counts up. U = 0, D = 1 The counter counts down. The counter counts down. U = 0, D = 0 The counter state does not change. The counter state does not change. U = 1, D = 1 Not allowed. Not allowed.

292004/05/10Registers and Counters An Up-Down Binary Counter

302004/05/10Registers and Counters An Up-Down Binary Counter

312004/05/10Registers and Counters Binary Up-Down Counter

322004/05/10Registers and Counters A Loadable Counter Two control signals Ld (load) and Ct (count) Ld (load) and Ct (count) Ld = 1, Ct = 0 Binary data is loaded into the counter Binary data is loaded into the counter Ld = 0, Ct = 1 The counter is incremented The counter is incremented Ld = Ct = 0 The counter holds its present value. The counter holds its present value. Ld = Ct = 1 Load overrides count Load overrides count

332004/05/10Registers and Counters Counter Operation

342004/05/10Registers and Counters Implementation