Registers and Counters

Slides:



Advertisements
Similar presentations
Lecture 23: Registers and Counters (2)
Advertisements

CSE 205: Digital Logic Design
Registers and Counters
CENG 241 Digital Design 1 Lecture 11
Registers and 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.
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
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:
What is shift register? A shift register is a digital memory circuit found in calculators, computers, and data-processing systems. Bits (binary digits)
REGISTER A Register is a group of binary storage cells suitable for holding binary information. A group of flip-flops constitutes a register, since each.
Mantıksal Tasarım – BBM231 M. Önder Efe
Registers and Counters
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.
CSI-2111 Computer Architecture Ipage Sequential circuits, 2nd part v Objectives: To recognize and know to use the principal types of sequential.
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
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.
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.
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.
Sequential logic circuits
Registers and Counters
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.
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.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
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.
Digital Design: With an Introduction to the Verilog HDL, 5e M. Morris Mano Michael D. Ciletti Copyright ©2013 by Pearson Education, Inc. All rights reserved.
Registers and Counters
EKT 221 : Digital 2 COUNTERS.
Sequential Logic Counters and Registers
Instructor: Alexander Stoytchev
Digital System Design Review.
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
Dr. Clincy Professor of CS
Registers and Register Transfers
Computer Architecture and Organization: L02: Logic design Review
Registers.
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
14 Digital Systems.
Registers and Register Transfers
Outline Registers Counters 5/11/2019.
Registers and Counters
Reference Chapter 7 Moris Mano 4th Edition
Counters.
Digital Electronics and Logic Design
Presentation transcript:

Registers and Counters Mano & Ciletti Chapter 6 By Suleyman TOSUN Ankara University

Outline Registers Shift registers Ripple counters Synchronous counters Other counters

Registers A group of flip-flops Each is capable of storing one bit of information n-bit registers can store n bits (n flip-flops) At each clock, the binary data available at the inputs of flip-flops are transferred to the registers. When Clear=0, all flip-flops are reset It clears the registers making all stored values as 0’s. When Clear=1, input data can be stored in the registers.

Registers with Parallel Load Synchronous systems have a master clock. All operations are synchronized with it. If we want to select the registers to execute, a separate control must be used: The transfer of new info to the registers is called loading or updating. If all the flip-flops are loaded simultaneously, loading is done in parallel.

Clock Gating If we do not want to change the content of a register: The inputs must be held constant OR Clock must be inhibited from the circuit (clock gating). Clock gating adds additional delay (propagation delay). Clock reaches unevenly to different part of the circuit. As a result, we loose the synchronous behavior. Use D inputs rather than C inputs of the flip-flops to control the register. 1 clock clock clock

Registers with Parallel Load Additional gates in the figure is two channel mux When load=1, data (Ii) goes to D input. Load the register When load=0, register outputs (Ai) goes to D input No change (do not load the register)

Shift Registers A register that is capable of shifting the binary information to the neighboring cell In a selected direction Chain of flip-flops Output of one register connected to the input of the next.

Serial Transfer In serial mode when information is transferred one bit at a time. Shifting the bits from source register to the destination register. Shifting can be controlled by controlling the clock (clock gating) Problematic

Serial Transfer from Reg. A to Reg. B

Serial Addition Parallel operations are faster Serial operations are slower BUT Requires less hardware Less silicon area on a chip

Serial Adder

Serial Adder with JK Flip-Flops Q represents Cin (present state) and Cout (next state) Design a 1-bit serial adder with JK flip-flops

Serial Adder with JK Flip-Flops

Universal Shift Registers The information entered serially to the registers They can be taken in parallel. Opposite is possible Information can be entered in parallel And can be taken in serially (shifting) Some shift registers have input/output terminals for parallel transfer. They also have shift-left and shift right capabilities.

Universal Shift Register

Universal Shift Register

Counters A register that goes through prescribed sequence of states. Input pulses can be Clock pulse OR External source Sequence can be Binary OR Any sequence we specify n-bit counter has n flip-flops It can count from 0 to 2n-1. Two types of counters Ripple Counters Synchronous counters

Ripple Counters Series of flip-flop connection Output of one is connected to C input (clock input) of the next. They can be implemented with JK flip-flops by tying up J and K inputs T flip-flops D flip-flops, by using complement output.

Ripple Counters Up ripple counter Down ripple counter Use negative edge triggered Down ripple counter Use positive edge triggered

BCD Ripple Counter Sequence of 10 states (from 0 to 9) Needs 4 flip-flops Similar to binary counter Except that the state after 1001 is 0000.

Decade Counter Q1 changes state after each clock pulse. Q2 complements every time Q1 goes from 1 to 0, AS LONG AS Q8=0. When Q8 becomes 1, Q2 remains at 0. Q4 complements every time Q2 goes from 1 to 0. Q8 remains at 0 as long as Q2 or Q4 is 0. When both Q2 and Q4 become 1, Q8 complements when Q1 goes from 1 to 0.

Three Decade Counter To count from 0 to 999 Use three decade counter Input to next decade counter is coming from Q8. When Q8 goes from 1 to 0, it triggers the next counter.

Synchronous Counters Clock pulses applied to the C inputs of all flip-flops All flip-flops triggered simultaneously. Flip-flops are complemented when J=1 and K=1 T=1

Binary Counter Least significant bit is always complemented. Others are complemented when ALL previous inputs are 1.

Up-down binary counter When up=1, count upwards When down=1 and up=0, count downwards When both are 0, do not change the count.

BCD counter

Counters with unused states