Registers and Counters Chapter 6. Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback.

Slides:



Advertisements
Similar presentations
CSE 205: Digital Logic Design
Advertisements

Registers and Counters
CENG 241 Digital Design 1 Lecture 11
RIPPLE COUNTERS A register that goes through a prescribed sequence of states upon the application of input pulses is called a counter. The input pulses.
Registers and Counters
Logic and Computer Design Fundamentals Registers and Counters
COE 202: Digital Logic Design Sequential Circuits Part 4 KFUPM Courtesy of Dr. Ahmad Almulhem.
Sequential Circuit Introduction to Counter
C HAPTER S IX R EGISTERS AND C OUNTERS 1. A clocked sequential circuit consists of a group of flip-flops and combinational gates connected to form a feedback.
KU College of Engineering Elec 204: Digital Systems Design
A.Abhari CPS2131 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:
Mantıksal Tasarım – BBM231 M. Önder Efe
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.
Counters  A counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship.
Registers and Counters
Chapter 1_4 Part II Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Registers and Counters
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
Registers & Counters M. Önder Efe
Registers CPE 49 RMUTI KOTAT.
1 Registers and Counters A register consists of a group of flip-flops and gates that affect their transition. An n-bit register consists of n-bit flip-flops.
Registers and Counters
Rabie A. Ramadan Lecture 3
Chapter 6 Registers and Counter
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
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.
1 Registers & Counters Logic and Digital System Design - CS 303 Erkay Savaş Sabancı University.
ENG241 Digital Design Week #8 Registers and Counters.
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.
Chapter 6 Registers and Counters
REGISTER A register is a group of flip-flops. Each flip- flop is capable of storing one bit of informa­ tion. An n-bit register consists of a group of.
Registers Page 1. Page 2 What is a Register?  A Register is a collection of flip-flops with some common function or characteristic  Control signals.
CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.
C HAPTER S IX R EGISTERS AND C OUNTERS 1. A clocked sequential circuit consists of a group of flip-flops and combinational gates connected to form a feedback.
Digital Electronics.
Counters.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
SYEN 3330 Digital SystemsJung H. Kim 1 SYEN 3330 Digital Systems Chapter 7 – Part 2.
Chap 5. Registers and Counters
DIGITAL COMPONENTS. MULTIPLEXERS A multiplexer is a combinational circuit that receives binary information from one of 2 n input data lines and directs.
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.
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.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
FIGURE 6.1 Four‐bit register
EKT 221 – Counters.
EKT 221 : Digital 2 COUNTERS.
SLIDES FOR CHAPTER 12 REGISTERS AND COUNTERS
Registers and Counters
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.
COE 202: Digital Logic Design Sequential Circuits Part 4
29-Nov-18 Counters Chapter 5 (Sections ).
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Registers and Register Transfers
Computer Architecture and Organization: L02: Logic design Review
6. Registers and Counters
Switching Theory and Logic Design Chapter 5:
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Registers and Register Transfers
Outline Registers Counters 5/11/2019.
Digital Electronics and Logic Design
Presentation transcript:

Registers and Counters Chapter 6

Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback path Flip-flops +Combinational gates (essential) (optional) Register: a group of flip-flops gates that determine how the information is transferred into the register Counter: a register that goes through a predetermined sequence of states

Digital Circuits Registers A n-bit register n flip-flops capable of storing n bits of binary information 4-bit register

Digital Circuits 4 4-bit register with parallel load

Digital Circuits Shift Registers Shift register a register capable of shifting its binary information in one or both directions Simplest shift register

Digital Circuits 6 Serial transfer vs. Parallel transfer Serial transfer Information is transferred one bit at a time shifts the bits out of the source register into the destination register Parallel transfer: All the bits of the register are transferred at the same time

Digital Circuits 7 Example: Serial transfer from reg A to reg B

Digital Circuits 8 Serial addition using D flip-flops

Digital Circuits 9 Serial adder using JK flip-flops J Q = x y K Q = x y = (x + y) S = x  y  Q

Digital Circuits 10 Circuit diagram J Q = x y K Q = x y = (x + y) S = x  y  Q

Digital Circuits 11 Universal Shift Register Unidirectional shift register Bidirectional shift register Universal shift register: has both direction shifts & parallel load/out capabilities

Digital Circuits 12 Capability of a universal shift register: 1.A clear control to clear the register to 0. 2.A clock input to synchronize the operations. 3.A shift-right control to enable the shift right operation and the serial input and output lines associated w/ the shift right. 4.A shift-left control to enable the shift left operation and the serial input and output lines associated w/ the shift left. 5.A parallel-load control to enable a parallel transfer and the n parallel input lines associated w/ the parallel transfer. 6.n parallel output lines. 7.A control state that leaves the information in the register unchanged in the presence of the clock.

Digital Circuits 13 Example: 4-bit universal shift register Parallel outputs A 3 A 2 A 1 A 0 I 3 I 2 I 1 I 0 Parallel inputs 4-bit universal shift register Clear s 1 s 2 Serial input for shift-right Serial input for shift-left CLK

Digital Circuits 14 Function table Clears 1 s 0 A 3 + A 2 + A 1 + A 0 + (operation) 0×× Clear 100A 3 A 2 A 1 A 0 No change 1010 A 3 A 2 A 1 Shift right 110A 2 A 1 A 0 0Shift left 111 I 3 I 2 I 1 I 0 Parallel load

Digital Circuits 15

Digital Circuits Ripple Counters Counter: a register that goes through a prescribed sequence of states upon the application of input pulses Input pulses: may be clock pulses or originate from some external source Timing: may occur at a fixed interval of time or at random The sequence of states: may follow the binary number sequence (  Binary counter) or any other sequence of states

Digital Circuits 17 Categories of counters 1.Ripple counters The flip-flop output transition serves as a source for triggering other flip-flops  no common clock pulse (not synchronous) 2.Synchronous counters: The CLK inputs of all flip-flops receive a common clock

Digital Circuits 18 Example: 4-bit binary ripple counter Binary count sequence: 3-bit A2A1A A2A1A

Digital Circuits 19

Digital Circuits 20 BCD ripple counter

Digital Circuits 21 The circuit

Digital Circuits 22 Three-decade BCD counter

Digital Circuits Synchronous Counters Sync counter A common clock triggers all flip-flops simultaneously Design procedure apply the same procedure of sync seq ckts Sync counter is simpler than general sync seq ckts

Digital Circuits 24 4-bit binary counter

Digital Circuits 25 4-bit up/down binary counter

Digital Circuits 26 BCD counters

Digital Circuits 27 4-bit binary counter w/ parallel load

Digital Circuits 28

Digital Circuits 29 Generate any count sequence: E.g.: BCD counter  Counter w/ parallel load

Digital Circuits Other Counters Counters: can be designed to generate any desired sequence of states Divide-by-N counter (modulo-N counter) a counter that goes through a repeated sequence of N states The sequence may follow the binary count or may be any other arbitrary sequence

Digital Circuits 31 n flip-flops  2 n binary states Unused states states that are not used in specifying the sequential ckt may be treated as don’t-care conditions or may be assigned specific next states Self-correcting counter Ensure that when a ckt enter one of its unused states, it eventually goes into one of the valid states after one or more clock pulses so it can resume normal operation.  Analyze the ckt to determine the next state from an unused state after it is designed

Digital Circuits 32 An example Two unused states: 011 & 111 The simplified flip-flop input eqs: J A = B, K A = B J B = C, K B = 1 J C = B, K C = 1

Digital Circuits 33 The logic diagram & state diagram of the ckt

Digital Circuits 34 Ring counter: a circular shift register w/ only one flip-flop being set at any particular time, all others are cleared (initial value = … 0 ) The single bit is shifted from one flip-flop to the next to produce the sequence of timing signals.

Digital Circuits 35 A 4-bit ring counter A2 A2A1A A2 A2A1A

Digital Circuits 36 Application of counters Counters may be used to generate timing signals to control the sequence of operations in a digital system. Approaches for generation of 2 n timing signals 1.a shift register w/ 2 n flip-flops 2.an n-bit binary counter together w/ an n-to-2 n -line decoder

Digital Circuits 37

Digital Circuits 38 Johnson counter Ring counter vs. Switch-tail ring counter Ring counter a k-bit ring counter circulates a single bit among the flip- flops to provide k distinguishable states. Switch-tail ring counter is a circular shift register w/ the complement output of the last flip-flop connected to the input of the first flip-flop a k-bit switch-tail ring counter will go through a sequence of 2k distinguishable states. (initial value = 0 0 … 0)

Digital Circuits 39 An example: Switch-tail ring counter

Digital Circuits 40 Johnson counter a k-bit switch-tail ring counter + 2k decoding gates provide outputs for 2k timing signals E.g.: 4-bit Johnson counter The decoding follows a regular pattern: 2 inputs per decoding gate

Digital Circuits 41 Disadv. of the switch-tail ring counter if it finds itself in an unused state, it will persist to circulate in the invalid states and never find its way to a valid state. One correcting procedure: D C = (A + C) B Summary: Johnson counters can be constructed for any # of timing sequences: # of flip-flops = 1/2 (the # of timing signals) # of decoding gates = # of timing signals 2-input per gate