Modulo-N Counters According to how they handle input transitions –Synchronous –Asynchronous.

Slides:



Advertisements
Similar presentations
COUNTERS Counters with Inputs Kinds of Counters Asynchronous vs
Advertisements

CSE 205: Digital Logic Design
Registers and Counters
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Computing Machinery Chapter 5: Sequential Circuits.
1 Sequential Circuits Dr. Pang. 2 Outline Introduction to sequential circuits Basic latch Gated SR latch and gated D latch D flip-flop, T flip-flop, JK.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Chapter #7: Sequential Logic Case Studies 7.1, 7.2 Counters.
Registers and Counters
Sequential Logic Design
Shift Registers and Shift Register Counters
Chapter 7 -- Modular Sequential Logic. Serial-in, Serial-out Shift Register.
Sequential Circuit Introduction to Counter
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:
Registers and Counters
Digital Fundamentals Floyd Chapter 9 Tenth Edition
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.
Three Other Types of Counters (BCD Counter, Ring Counter, Johnson Counter) Hun Wie (Theo) SJSU, 2011 Spring Prof: Dr. Sin-Min Lee CS147 Computer Organization.
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
Counters.
Registers and Counters
Chapter 1_4 Part II Counters
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Counters Clocked sequential circuit whose state diagram contains a single cycle. Modulus – number of states in the cycle. Counters with non-power of 2.
Last Mod: March 2014  Paul R. Godin Shift Registers Registers 1.1.
CHAPTER 12 REGISTERS AND COUNTERS
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
Digital Design Lectures 11 & 12 Shift Registers and Counters.
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
Registers and Counters Chapter 6. Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback.
Lecture #27 Page 1 ECE 4110– Sequential Logic Design Lecture #27 Agenda 1.Counters Announcements 1.HW #12 due.
CHAPTER 8 - COUNTER -.
Computer Organization & Programming Chapter 5 Synchronous Components.
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Latches & Flip-Flops.
Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –
Sequential logic circuits
Digital Fundamentals Tenth Edition Floyd Chapter 9.
Counters and Registers Synchronous Counters. 7-7 Synchronous Down and Up/Down Counters  In the previous lecture, we’ve learned how synchronous counters.
COUNTERS Why do we need counters?
Hardwired Control Department of Computer Engineering, M.S.P.V.L Polytechnic College, Pavoorchatram. A Presentation On.
Chap 5. Registers and Counters
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
Lecture #27 Page 1 ECE 4110–5110 Digital System Design Lecture #27 Agenda 1.Counters Announcements 1.Finish reading Wakerly sections 8.1, 8.2, 8.4, 8.5.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
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.
CSE260 Revision Final. MSI a) Implement the following function with 8:1 mux F(A,B,C,D) =∑(0,1,3,4,8,9,15) b) Construct AND, OR and NOT gates using 2:1.
CHAPTER 14 Digital Systems. Figure 14.1 RS flip-flop symbol and truth table Figure
Counters In digital logic and computing, a counter is a device which stores (and sometimes displays) the number of times a particular event or process.
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.
Shift Register Counters
Hun Wie (Theo) SJSU, 2011 Spring Prof: Dr. Sin-Min Lee
Registers and Counters
EKT 124 / 3 DIGITAL ELEKTRONIC 1
EKT 221 : Digital 2 COUNTERS.
Sequential Logic Counters and Registers
Figure 12-13: Synchronous Binary Counter
FIGURE 5.1 Block diagram of sequential circuit
Sequential Circuit: Counter
University of Maryland Baltimore County Department of Computer Science and Electrical Engineering   CMPE 212 Laboratory (Discussion 12) Hasib Hasan
Instructor: Alexander Stoytchev
Lecture Part A Combinational Logic Design & Flip Flop
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Switching Theory and Logic Design Chapter 5:
14 Digital Systems.
Hun Wie (Theo) SJSU, 2011 Spring Prof: Dr. Sin-Min Lee
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Digital Electronics and Logic Design
Presentation transcript:

Modulo-N Counters According to how they handle input transitions –Synchronous –Asynchronous

General Modulo-N asynchronous Counter Number of flip-flops? Number of states? Why the name “Modulo” Which state does the logic detect?

Asynchronous BCD counter –Which is the last stable output?

Asynchronous BCD counter State diagram –Counter passes through intermediate transient states (small circles) between the steady states (the large circles) Which is the last unstable output and why?

Constructing asynchronous Modulo-N counters from binary Asynchronously resetting modulo-13 counter What are the problems with asynchronous design?

Synchronous Modulo-13 counter Which state should the reset logic of a synchronous Modulo-N counter sense?

Shift registers as counters Number of storage elements (FFs)? Number of states? Bit patterns? Where is a ring counter useful?

Ring counter Schematic Transition diagram

Ring counter equivalent Can use a small counter plus a decoder Why?

Is the clear synchronous or asynchronous? What is the drawback of this circuit? Ring counter equivalent

Twisted Ring counter AKA Johnson Counter How does it work? Number of unique states? State sequence? Advantages over ring counter?

Twisted Ring counter Number of unique states? –2n (n is # of flip- flops) Advantages over ring counter? –Half the number of flip-flops

Twisted Ring counter example

Desired timing diagram Using ring counter – 2n states = 16; n =8 Choose 8-bit shift register SN74164 and an inverter for the twist Figure out the decoding logic for the functions

Twisted Ring counter example

Logic diagram of the circuit

Twisted Ring counter example Timing diagram of the circuit

Alternative implementations 1) Using a ring counter 2) Using a straight binary counter What are advantages and disadvantages of each? –Twisted vs. non-twisted: Half the Flip-Flops Decode logic –Straight binary vs. ring Exponentially fewer flip-flops for the straight counter More logic

Fractional rate multiplier –Clock drives an n-bit binary counter with outputs X 1 …X n –Produce non-overlap pulse trains P 1 …P n

Fractional rate multiplier –The separation between the output pulses obtained by the fractional multiplier will vary –They are synchronized with the input clock

Fractional rate multiplier Why don’t P i overlap? –What is the product P i P j ? How many pulses does each P i generate per 2 n clocks? –X1 is on ½ of the time –X2 is on ¼ of the time