Registers and Counters

Slides:



Advertisements
Similar presentations
Lecture 23: Registers and Counters (2)
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
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °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.
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
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.
Counters.
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.
CHAPTER 12 REGISTERS AND COUNTERS
Registers & Counters M. Önder Efe
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
P. 4.1 Digital Technology and Computer Fundamentals Chapter 4 Digital Components.
Chapter 6 Registers and Counter
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
Princess Sumaya Univ. Computer Engineering Dept. Chapter 6:
Registers and Counters by Dr. Amin Danial Asham. References  Digital Design 5 th Edition, Morris Mano.
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.
Chapter 1_4 Part III more on … Counters Chapter 1_4 Part III more on … 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.
Arithmetic Circuits. Half Adder ABSumCarry
CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.
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.
Counters and Registers Synchronous Counters. 7-7 Synchronous Down and Up/Down Counters  In the previous lecture, we’ve learned how synchronous counters.
Digital Electronics.
Counters.
Basic Counters: Part I Section 7-6 (pp ).
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.
CHAPTER 14 Digital Systems. Figure 14.1 RS flip-flop symbol and truth table Figure
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.
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.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
Registers and Counters
FIGURE 6.1 Four‐bit register
EKT 221 – Counters.
EKT 221 : Digital 2 COUNTERS.
Copyright Joanne DeGroat, ECE, OSU
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.
29-Nov-18 Counters Chapter 5 (Sections ).
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
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
Outline Registers Counters 5/11/2019.
Digital Electronics and Logic Design
Presentation transcript:

Registers and Counters Chapter 6

Registers and Counters A register is a group of flip-flops Each flip-flop stores one bit of info A counter is a register that goes through a predetermined sequence of binary states

Registers 4-bit register with D Flip-flops Common clock input Common clear input; when Clear=0 flip-flops reset asynchronous

Register with parallel load Exercise: Explain how this register works. Why is it necessary to feed 𝐴 𝑛 back to the combinational input circuit? What if this was not done?

Shift Registers What happens with every clock pulse?

Serial transfer

Serial addition Exercise: Describe how you add two binary numbers by hand. How do you apply this to design a serial adder? Assume you have two n-bit shift registers. Design a circuit that adds one bit at a time and stores the result in one of the shift registers. How do you handle the carries? Hint: you may need one additional flip-flop. Indicate the clock connections of the shift registers and the flip-flop.

Serial adder

Serial adder

Serial adder 𝐽 𝑄 =𝑥𝑦 𝐾 𝑄 = 𝑥 ′ 𝑦 ′ =(𝑥+𝑦)′ 𝑆=𝑥⨁𝑦⊕𝑄 𝐾 𝑄 = 𝑥 ′ 𝑦 ′ =(𝑥+𝑦)′ 𝑆=𝑥⨁𝑦⊕𝑄 Exercise: Explain how this circuit works. Obtain the excitation/input equations for the JK Flip-flop and the equation for the sum 𝑆. Run an example sum assuming the circuit uses two 3-bit shift registers.

Universal shift register Clear control to clear register to 0 Clock input to synchronize operations Shift-right control to enable operation and associated input and output lines Shift-left control to enable operation and associated input and output lines Parallel-load control to enable parallel transfer and the n input lines n parallel output lines Control state to leave information in the register unchanged

Universal shift register Exercise: explain how this universal shift register works

Universal shift register

Universal shift register

Counters A counter is a register that goes through a prescribed sequence of states upon the application of input pulses Two types of counters Ripple counters Synchronous counters

Ripple Counters 4-bit ripple binary counter with T Flip-flops Exercise: Obtain the state table.

Ripple counters 4-bit binary ripple counter with D flip-flops Exercise: Explain how this counter works.

Ripple Counters

State diagram of a decimal BCD counterr BCD ripple counter State diagram of a decimal BCD counterr

BCD ripple counter Exercise: Obtain the excitation equation and the state table. Explain how this counter works.

Three-decade decimal BCD counter

Synchronous Counters Simple design procedure Least significant digit Flip-flop is complemented with every clock pulse A flip-flop in any other position is complemented when all the bits in the lower significant positions are equal to 1

Synchronous Counters Exercise: Using the excitation tables for the JK flip-flops explain how this counter works.

Up-down binary counter Countdown binary counter: Least significant bit is complemented with each clock pulse A bit in any other position is complemented is all lower significant bits are all equal to 0

BCD counter Flip-flop input equations are simplified using maps 𝑇 𝑄1 =1 𝑇 𝑄2 = 𝑄′ 8 𝑄 1 𝑇 𝑄4 = 𝑄 2 𝑄 1 𝑇 𝑄8 = 𝑄 8 𝑄 1 + 𝑄 4 𝑄 2 𝑄 1 𝑦= 𝑄 8 𝑄 1

Binary counter with parallel load Exercise: Explain how this counter works: When Load is high/low; When Clear is high/low; When Count is high/low; How should Load and Clear be for counting?

Binary counter with parallel load

BCD counter implemented with counter with parallel load

Other Counters Counter with unused states

Other Counters Counter with unused states

Ring counter

Johnson counter Connecting complemented LSB to ring counter input doubles the number of states of ring counter. What happens if counter starts from an unused state?

Homework Assignment 6.4 6.6 6.9 (a) 6.18 6.21 6.23 6.26