CSC 220: Computer Organization

Slides:



Advertisements
Similar presentations
Registers and Counters
Advertisements

Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Sequential Circuit Introduction to Counter
What is shift register? A shift register is a digital memory circuit found in calculators, computers, and data-processing systems. Bits (binary digits)
Design of Counters ..
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
A presentation on Counters
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Chapter 1_4 Part II Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
CS1104 – Computer Organization Aaron Tan Tuck Choy School of Computing National University.
Rabie A. Ramadan Lecture 3
Digital Design: Principles and Practices
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
Counters. November 5, 2003 Introduction: Counters  Counters are circuits that cycle through a specified number of states.  Two types of counters: 
Counters - I. Outline  Introduction: Counters  Asynchronous (Ripple) Counters  Asynchronous Counters with MOD number < 2 n  Asynchronous Down Counters.
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
Sequential logic circuits
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.
Registers and Counters
Counters and Registers Synchronous Counters. 7-7 Synchronous Down and Up/Down Counters  In the previous lecture, we’ve learned how synchronous counters.
Basic terminology associated with counters Technician Series
Chapter 1_0 Registers & Register Transfer. Chapter 1- Registers & Register Transfer  Chapter 7 in textbook.
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.
1 Homework Reading –Tokheim Chapter 9.1 – 9.6 Machine Projects –Continue on mp3 Labs –Continue in labs with your assigned section.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Shift Register Counters
Date: 01/12/2014 Asynchronous (Ripple) Counters Patel Siddhi P rd SEM Computer Science and Engneering B.M.C.E.T Subject Name: Digital Electronics.
CS1104 – Computer Organization Aaron Tan Tuck Choy School of Computing National University.
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Registers and Counters
EET 1131 Unit 11 Counter Circuits
Asynchronous Counters with SSI Gates
EKT 124 / 3 DIGITAL ELEKTRONIC 1
EKT 221 – Counters.
Prof. Hsien-Hsin Sean Lee
EKT 221 : Digital 2 COUNTERS.
Sequential Logic Counters and Registers
Sequential Circuit: Counter
Principles & Applications
Sequential Circuit - Counter -
D Flip-Flop.
University of Maryland Baltimore County Department of Computer Science and Electrical Engineering   CMPE 212 Laboratory (Discussion 12) Hasib Hasan
Chapter 11 Sequential Circuits.
Registers and Counters
Digital Fundamentals with PLD Programming Floyd Chapter 10
EET 1131 Unit 12 Shift Registers
Asynchronous Counters with SSI Gates
Counters and Registers
Registers and Register Transfers
Unit 7 Sequential Circuits (Flip Flop)
Unit 5 COMBINATIONAL CIRCUITS-1
CSE 370 – Winter Sequential Logic-2 - 1
EET107/3 DIGITAL ELECTRONICS 1
Chapter 8 Counters Changjiang Zhang
CSC 220: Computer Organization
CHAPTER 4 COUNTER.
Registers.
CSC 220: Computer Organization
CSC 220: Computer Organization COMBINATIONAL CIRCUITS-2
Unit 3 Simplification and K-map
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
Basic terminology associated with counter and sequential circuits.
Outline Registers Counters 5/11/2019.
Counters.
Presentation transcript:

CSC 220: Computer Organization College of Computer and Information Sciences Department of Computer Science CSC 220: Computer Organization Unit 9 Counters & RAM

Overview Asynchronous (Ripple) Counters A complex Counter Unit 9: Counters and RAM Overview Asynchronous (Ripple) Counters A complex Counter Introduction to RAM Size Reading a RAM Writing to a RAM Chapter-6, 7 M. Morris Mano, Charles R. Kime and Tom Martin, Logic and Computer Design Fundamentals, Global (5th) Edition, Pearson Education Limited, 2016. ISBN: 9781292096124

Asynchronous (Ripple) Counters Example: 2-bit ripple binary counter. Output of one flip-flop is connected to the clock input of the next more-significant flip-flop. 4 3 2 1 CLK Q0 Q1 Timing diagram 00  01  10  11  00 ... Asynchronous (Ripple) Counters

Asynchronous (Ripple) Counters Example: 3-bit ripple binary counter. 4 3 2 1 CLK Q0 Q1 8 7 6 5 Q2 Recycles back to 0 Asynchronous (Ripple) Counters

Asyn. Counters with MOD no. < 2n Decade counters (or BCD counters) are counters with 10 states (modulus-10) in their sequence. They are commonly used in daily life (e.g.: utility meters, odometers, etc.). Design an asynchronous decade counter. D CLK HIGH K J C CLR Q B A (A.C)' Asynchronous Counters with MOD number < 2^n

Asynchronous Down Counters So far we are dealing with up counters. Down counters, on the other hand, count downward from a maximum value to zero, and repeat. Example: A 3-bit binary (MOD-23) down counter. K J Q1 Q0 C Q2 (MSB) CLK 1 Q Q' 3-bit binary up counter K J Q1 Q0 C Q2 (MSB) CLK 1 Q Q' 3-bit binary down counter Asynchronous Down Counters

Asyn. Counters with MOD no. < 2n Exercise: How to construct an asynchronous MOD-5 counter? MOD-7 counter? MOD-12 counter? Question: The following is a MOD-? counter? K J Q CLR C B A D E F All J = K = 1. E F Asynchronous Counters with MOD number < 2^n

Asynchronous (Ripple) Counters Propagation delays in an asynchronous (ripple-clocked) binary counter. If the accumulated delay is greater than the clock pulse, some counter states may be misrepresented! 4 3 2 1 CLK Q0 Q1 Q2 tPLH (CLK to Q0) tPHL (CLK to Q0) tPLH (Q0 to Q1) tPHL (Q0 to Q1) tPLH (Q1 to Q2) Asynchronous (Ripple) Counters

4-bit Ring Counter A “CLEAR” signal is firstly applied to all the flip-flops together in order to “RESET” their outputs to a logic “0” level and then a “PRESET” pulse is applied to the input of the first flip-flop ( FFA ) before the clock pulses are applied. This then places a single logic “1” value into the circuit of the ring counter. So on each successive clock pulse, the counter circulates the same data bit between the four flip-flops over and over again around the “ring” every fourth clock cycle. But in order to cycle the data correctly around the counter we must first “load” the counter with a suitable data pattern as all logic “0’s” or all logic “1’s” outputted at each clock cycle would make the ring counter invalid.

Dr Mohamed A Berbar

Dr Mohamed A Berbar

Dr Mohamed A Berbar

Dr Mohamed A Berbar

Dr Mohamed A Berbar

Dr Mohamed A Berbar

Dr Mohamed A Berbar

RTL and Memory While memory transfers are similar to register transfers, we usually identify them differently. Specifically, memory to register transfers are called read operations, while register to memory transfers are called write operations. Both require specification of the memory location to be used (which can be done through a special register or a special bus) and a storage location which will hold the result of a read or which holds the data to be written.

RTL expressions for a Read operation, assuming the use of an address registers: RTL expressions for a Write operation, assuming use of a data register:

Register to Memory Transfers are denoted using square brackets surrounding the memory address. e.g. DR  M[AR] (Read operation) e.g. M[AR]  DR (Write operation)