CMPUT 329 - Computer Organization and Architecture II1 CMPUT329 - Fall 2003 TopicJ: Counters José Nelson Amaral.

Slides:



Advertisements
Similar presentations
Ch 8. Sequential logic design practices 1. Documentation standards ▶ general requirements : signal name, logic symbol, schematic logic - state machine.
Advertisements

Digital Digital: Chapter 8. Sequential Logic Design Practices 1 Chapter 8. Sequential Logic Design Practices.
Counter Circuits and VHDL State Machines
Sequential Circuit - Counter -
8.4 Counters NextReturn Any clocked sequential circuit whose state diagram contains a single cycle is called a counter. The number of states in the cycle.
CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2003 TopicJ: Counters José Nelson Amaral.
Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Chapter #7: Sequential Logic Case Studies 7.1, 7.2 Counters.
Registers & Counters Registers. Shift Registers: Counters:
Sequential PLD timing Registers Counters Shift registers
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.
Sistemas Digitais I LESI - 2º ano Lesson 8 - Sequential Design Practices U NIVERSIDADE DO M INHO E SCOLA DE E NGENHARIA Prof. João Miguel Fernandes
Sequential Circuit Introduction to Counter
EET 1131 Unit 11 Counter Circuits  Read Kleitz, Chapter 12, skipping Sections and  Homework #11 and Lab #11 due next week.  Quiz next week.
Lab 5 :JK Flip Flop and Counter Fundamentals:
1 Digital Design: Sequential Logic Blocks Credits : Slides adapted from: J.F. Wakerly, Digital Design, 4/e, Prentice Hall, 2006 C.H. Roth, Fundamentals.
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 9 Counters.
Lecture 21 Overview Counters Sequential logic design.
Digital Fundamentals with PLD Programming Floyd Chapter 10
A presentation on Counters
Counters.
Registers and Counters
Chapter 1_4 Part II Counters
Sequential Circuit - Counter -
Mid3 Revision Prof. Sin-Min Lee. 2 Counters 3 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation.
Registers and Counters
Counters Clocked sequential circuit whose state diagram contains a single cycle. Modulus – number of states in the cycle. Counters with non-power of 2.
Registers and Counters
EE24C Digital Electronics Projects
Rabie A. Ramadan Lecture 3
Digital Design: Principles and Practices
P. 4.1 Digital Technology and Computer Fundamentals Chapter 4 Digital Components.
Counter Application (Part B) By : Pn Siti Nor Diana Ismail CHAPTER 3.
Synchronous Counters with SSI Gates
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
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 )
EE365 Adv. Digital Circuit Design Clarkson University Lecture #12 Registers and Counters.
Counters By Taweesak Reungpeerakul
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.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Chapter 1_4 Part III more on … Counters Chapter 1_4 Part III more on … Counters.
CSI-2111 Computer Architecture Ipage Control, memory and I/O v Objectives: –To define and understand the control units and the generation of sequences.
Counter Circuits and VHDL State Machines
Sequential logic circuits
Synchronous Counter with MSI Gates
Decade Counter (BCD Counter). Introduction A counter which is reset at the 10 th clock pulse is called decade counter. The decade counter is otherwise.
EE121 John Wakerly Lecture #9
Counters.
Basic Counters: Part I Section 7-6 (pp ).
ECE/CS 352 Digital System Fundamentals© T. Kaminski & C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Fall 2000 Chapter 5 – Part 2 Tom Kaminski & Charles.
SYEN 3330 Digital SystemsJung H. Kim 1 SYEN 3330 Digital Systems Chapter 7 – Part 2.
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.
THEME 6: Frequency dividers. Digital counters with reduced counting modulus. Programmable digital counters. If the input pulses are more than K, the counter.
Digital Design: Sequential Logic Blocks
Synchronous Counter with MSI Gates
EKT 221 – Counters.
EKT 221 : Digital 2 COUNTERS.
Sequential Circuit: Counter
Synchronous Counters with MSI Gates
Synchronous Counters with MSI Gates
CSE 370 – Winter Sequential Logic-2 - 1
Chapter 8 Counters Changjiang Zhang
Outline Registers Counters 5/11/2019.
Counters.
Presentation transcript:

CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2003 TopicJ: Counters José Nelson Amaral

CMPUT Computer Organization and Architecture II2 Reading Material Section 8.4 of Wakerly.

CMPUT Computer Organization and Architecture II3 General Structure A counter is a sequential circuit whose state diagram contains a single cycle. The modulus of a counter is the number of states in the cycle. A counter with m states is called a module-m counter or a divide-by-m counter. Sm S1 S2 S3 S4 S5

CMPUT Computer Organization and Architecture II4 n-bit binary ripple counter In a ripple counter, the carry information ripples from the less significant to the more significant bits. Assume that the propagation delay from T to Q in the flip-flops on the right is 10ns. How long do we have to wait after a clock input to read the value of the counter? Is the waiting time dependent on the modulus of the counter?

CMPUT Computer Organization and Architecture II5 Synchronous Counters In a synchronous counter, all flip-flops are connected to a common clock so that all the outputs change approximately at the same time. However this synchronous counter has a serial enable logic that limits the speed of the clock. A synchronous counter with serial enable logic is called a synchronous serial counter.

CMPUT Computer Organization and Architecture II6 Synchronous Counters A synchronous counter with a parallel enable logic drives each EN input with a dedicated AND gate. A synchronous counter with parallel enable logic is called a synchronous parallel counter.

CMPUT Computer Organization and Architecture II7 The 74x163 The 74x163 is a synchronous 4-bit binary counter with:  active low load input  active low clear input When the load input is active and the clear input is not active, then the value in the inputs A, B, C, and D is loaded into the counter. RCO is the Ripple Carry Output. It is 1 when all outputs QA, QB, QC, QD are 1 and the enable input ENT is asserted.

CMPUT Computer Organization and Architecture II8 74x163

CMPUT Computer Organization and Architecture II9 74x163

CMPUT Computer Organization and Architecture II10 A free-running 74x163 A counter is free-running when it counts continuously independent of enable or clear inputs. The following connections convert the 74x163 into a free-running, divide-by-16 counter Quiz: How do you use the 74x163 to implement a free-running divide-by-8 counter?

CMPUT Computer Organization and Architecture II11 Free-running divide-by-16 counter waveforms

CMPUT Computer Organization and Architecture II12 A Counter Quiz Quiz: Use the 74x163 and any additional logic that you need to implement a free-running divide-by-8 counter.

CMPUT Computer Organization and Architecture II13 Counter Quiz #2 Quiz: Use the 74x163 and any additional logic that you need to implement a free-running modulo-11 counter that counts the sequence 5, 6,..., 14, 15, 5, 6,..., 14, 15, 5, 6,....

CMPUT Computer Organization and Architecture II14 Counter Quiz #2 Quiz: Use the 74x163 and any additional logic that you need to implement a free-running modulo-11 counter that counts the sequence 5, 6,..., 14, 15, 5, 6,..., 14, 15, 5, 6,....

CMPUT Computer Organization and Architecture II15 Counter Quiz #3 Quiz: Use the 74x163 and any additional logic that you need to implement a free-running modulo-11 counter that counts the sequence 0, 1,..., 9, 10, 0, 1,..., 9, 10, 0, 1,....

CMPUT Computer Organization and Architecture II16 Counter Quiz #3 Quiz: Use the 74x163 and any additional logic that you need to implement a free-running modulo-11 counter that counts the sequence 0, 1,..., 9, 10, 0, 1,..., 9, 10, 0, 1,....

CMPUT Computer Organization and Architecture II17 Cascading Counters CLOCK, RESET_L, and LOAD_L are connected in parallel.

CMPUT Computer Organization and Architecture II18 Cascading Counters A master count-enable (CNTEN) is connect to the low order 74x163.

CMPUT Computer Organization and Architecture II19 Cascading Counters The RC04 output is asserted if and only if the low-order ‘163 is in state15 and CNTEN is asserted. Cascading counters has the same ripple effect as a serial counter. The maximum counting speed is limited by the propagation delay.

CMPUT Computer Organization and Architecture II20 Quiz #4 Design a module-193 counter that counts from 63 to 255. This counter should start counting when a GO_L input is asserted. When the counter reaches 255, it should stop and should not re-start until GO_L is asserted again.

CMPUT Computer Organization and Architecture II21 A module-193 Go-Counter. When MAXCNT is asserted, GO_L controls the counter

CMPUT Computer Organization and Architecture II22 A module-193 Go-Counter. If GO_L is asserted, The counter is reloaded with 63. which de-assert MAXCNT

CMPUT Computer Organization and Architecture II23 Counting Direction Sometimes we want to be able to select the direction of counting. Design a module-4 counter with an up/dn input that controls the direction of counting. If up/dn = 1 the counter counts up otherwise it counts down up/dn=1 up/dn=0

CMPUT Computer Organization and Architecture II24 Counting Direction The 74x169 is a module-16 up/down counter

CMPUT Computer Organization and Architecture II25 Decoding Binary-Counter States By combining a binary counter with a decoder, we obtain a set of 1-out-of-m coded states.

CMPUT Computer Organization and Architecture II26 Function Hazards Different delays in the 138 cause glitches in the output

CMPUT Computer Organization and Architecture II27 Glitch-free 1-out-of-m coded signals