University of Technology

Similar documents
Ripple Counters. Lecture 30 1

Computer Architecture: Part III. First Semester 2013 Department of Computer Science Faculty of Science Chiang Mai University

Chapter 10. Counters (a short discussion)

EECS150 - Digital Design Lecture 20 - Finite State Machines Revisited

In the previous lecture, we examined how to analyse a FSM using state table, state diagram and waveforms. In this lecture we will learn how to design

In the previous lecture, we examined how to analyse a FSM using state table, state diagram and waveforms. In this lecture we will learn how to design

General Purpose Programmable Peripheral Devices. Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar

CS/EE Homework 7 Solutions

Chapter 5 Registers & Counters

ECE 574: Modeling and Synthesis of Digital Systems using Verilog and VHDL. Fall 2017 Final Exam (6.00 to 8.30pm) Verilog SOLUTIONS

Spiral 1 / Unit 6. Flip-flops and Registers

Lecture-55 System Interface:

Outcomes. Spiral 1 / Unit 6. Flip Flops FLIP FLOPS AND REGISTERS. Flip flops and Registers. Outputs only change once per clock period

Sequential Circuit Design: Principle

EE 3170 Microcontroller Applications

Philadelphia University Department of Computer Science. By Dareen Hamoudeh

DIGITAL LOGIC DESIGN VHDL Coding for FPGAs

EC4205 Microprocessor and Microcontroller

Last Lecture: Divide by 3 FSM

VERILOG: FLIP-FLOPS AND REGISTERS

ECE 551: Digital System *

EE 109L Final Review

8254 is a programmable interval timer. Which is widely used in clock driven digital circuits. with out timer there will not be proper synchronization

Injntu.com Injntu.com Injntu.com R16

HANSABA COLLEGE OF ENGINEERING & TECHNOLOGY (098) SUBJECT: DIGITAL ELECTRONICS ( ) Assignment

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

CPE/EE 421 Microcomputers

Sequential Statement

Sequential Circuit Design: Principle

Modeling Synchronous Logic Circuits. Debdeep Mukhopadhyay IIT Madras

Modeling Sequential Circuits in Verilog

Sequential Logic - Module 5

Outcomes. Spiral 1 / Unit 6. Flip Flops FLIP FLOPS AND REGISTERS. Flip flops and Registers. Outputs only change once per clock period

L5: Simple Sequential Circuits and Verilog

EE 109L Review. Name: Solutions

Graduate Institute of Electronics Engineering, NTU. Lecturer: Chihhao Chao Date:

Hours / 100 Marks Seat No.

The Memory Component

Note: Closed book no notes or other material allowed, no calculators or other electronic devices.

Last Lecture. Talked about combinational logic always statements. e.g., module ex2(input logic a, b, c, output logic f); logic t; // internal signal

von Neumann Architecture Basic Computer System Early Computers Microprocessor Reading Assignment An Introduction to Computer Architecture

Basic Computer System. von Neumann Architecture. Reading Assignment. An Introduction to Computer Architecture. EEL 4744C: Microprocessor Applications

BUILDING BLOCKS OF A BASIC MICROPROCESSOR. Part 1 PowerPoint Format of Lecture 3 of Book

EECS150 - Digital Design Lecture 17 Memory 2

ELCT 501: Digital System Design

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK NAME OF THE SUBJECT: EE 2255 DIGITAL LOGIC CIRCUITS

In this lecture, we will focus on two very important digital building blocks: counters which can either count events or keep time information, and

ECE 331: N0. Professor Andrew Mason Michigan State University. Opening Remarks

Lecture 25 March 23, 2012 Introduction to Serial Communications

ECE 341 Midterm Exam

Implementing Synchronous Counter using Data Mining Techniques

L5: Simple Sequential Circuits and Verilog

Copyright 2011 R.S.R. Electronics, Inc. All rights reserved. 04/11. Ver. 1.0web

Summer 2003 Lecture 21 07/15/03

EECS150 Homework 2 Solutions Fall ) CLD2 problem 2.2. Page 1 of 15

Microcomputers. Outline. Number Systems and Digital Logic Review

L5: Simple Sequential Circuits and Verilog

Philadelphia University Student Name: Student Number:

L5: Simple Sequential Circuits and Verilog

Principles of Digital Techniques PDT (17320) Assignment No State advantages of digital system over analog system.

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

Question Total Possible Test Score Total 100

The 8255A: Programmable Peripheral Interface

Testbenches for Sequential Circuits... also, Components

INTERFACING INTERFACING. Richa Upadhyay Prabhu. NMIMS s MPSTME February 25, 2016

Laboratory Exercise 3 Davide Rossi DEI University of Bologna AA

Laboratory Exercise 7

Control in Digital Systems

EE 459/500 HDL Based Digital Design with Programmable Logic. Lecture 6 Combinational and sequential circuits

3. The high voltage level of a digital signal in positive logic is : a) 1 b) 0 c) either 1 or 0

ECE 341 Midterm Exam

[VARIABLE declaration] BEGIN. sequential statements

ECE 2300 Digital Logic & Computer Organization. More Sequential Logic Verilog

DESCRIPTION OF DIGITAL CIRCUITS USING VHDL

REGISTER TRANSFER LANGUAGE

DIGITAL ELECTRONICS. P41l 3 HOURS

Counters. Counter Types. Variations. Modulo Gray Code BCD (Decimal) Decade Ring Johnson (twisted ring) LFSR

EEL 4744C: Microprocessor Applications. Lecture 7. Part 1. Interrupt. Dr. Tao Li 1

Reading Assignment. Interrupt. Interrupt. Interrupt. EEL 4744C: Microprocessor Applications. Lecture 7. Part 1

Introduction to CPU Design

Altera FLEX 8000 Block Diagram

Logic design Ibn Al Haitham collage /Computer science Eng. Sameer

L11: Major/Minor FSMs

CS 2630 Computer Organization. Meeting 13: Faster arithmetic and more operations Brandon Myers University of Iowa

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING EC6302 DIGITAL ELECTRONICS

R10. II B. Tech I Semester, Supplementary Examinations, May

Digital System Design with SystemVerilog

SHRI ANGALAMMAN COLLEGE OF ENGINEERING. (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI

CS232 VHDL Lecture. Types

Rensselaer Polytechnic Institute Computer Hardware Design ECSE 4770

Chapter 7. Storage Components

Pin Description, Status & Control Signals of 8085 Microprocessor

Lectures 11 & 12: Synchronous Sequential Circuits Minimization

EE178 Lecture Verilog FSM Examples. Eric Crabill SJSU / Xilinx Fall 2007

Mark Redekopp, All rights reserved. EE 352 Unit 8. HW Constructs

Code No: R Set No. 1

Register Map for the PCM-QUAD02

Programmable Interval Timer CEN433 King Saud University Dr. Mohammed Amer Arafah

To Interface The 8085 Microprocessor

CPE/EE 421/521 Fall 2004 Chapter 4 The CPU Hardware Model. Dr. Rhonda Kay Gaede UAH. The CPU Hardware Model - Overview

Transcription:

University of Technology Lecturer: Dr. Sinan Majid Course Title: microprocessors 4 th year

Lecture 13 Counters

Overview Counters are important components in computers The increment or decrement by one in response to input Two main types of counters Ripple (asynchronous) counters Synchronous counters Ripple counters Flip flop output serves as a source for triggering other flip flops Synchronous counters All flip flops triggered by a clock signal Synchronous counters are more widely used in industry.

Counters Counter: A register that goes through a prescribed series of states Binary counter Counter that follows a binary sequence N bit binary counter counts in binary from n to 2 n-1 Ripple counters triggered by initial Count signal Applications: Watches Clocks Alarms Web browser refresh

Binary Ripple Counter Reset signal sets all outputs to Count signal toggles output of low-order flip flop Low-order flip flop provides trigger for adjacent flip flop Not all flops change value simultaneously Lower-order flops change first Focus on D flip flop implementation

Another Asynchronous Ripple Counter Similar to T flop example on previous slide

Asynchronous Counters Each FF output drives the CLK input of the next FF. FFs do not change states in exact synchronism with the applied clock pulses. There is delay between the responses of successive FFs. Ripple counter due to the way the FFs respond one after another in a kind of rippling effect. A 3 A 2 1 1 1 1 A 1 1 1 A 1 1 1 1

Synchronous counters Synchronous(parallel) counters All of the FFs are triggered simultaneously by the clock input pulses. All FFs change at same time Remember If J=K=, flop maintains value If J=K=1, flop toggles Most counters are synchronous in computer systems. Can also be made from D flops Value increments on positive edge

Synchronous counters Synchronous counters Same counter as previous slide except Count enable replaced by J=K=1 Note that clock signal is a square wave Clock fans out to all clock inputs

Circuit operation Count value increments on each negative edge Note that low-order bit (A) toggles on each clock cycle

Synchronous UP/Down counters Up/Down Counter can either count up or down on each clock cycle Up counter counts from to 1111 and then changes back to Down counter counts from 1111 to and then back to 1111 Counter counts up or down each clock cycle Output changes occur on clock rising edge

Counters with Parallel Load Counters with parallel load can have a preset value Load signal indicates that data (I 3 I ) should be loaded into the counter Clear resets counter to all zeros Carry output could be used for higher-order bits

Counters with Parallel Load Clear Clk Load Count Function X X X Clear to 1 1 X Load inputs 1 1 Count 1 No Change Function Table If Clear is asserted (), the counter is cleared If Load is asserted data inputs are loaded If Count asserted counter value is incremented

Binary Counter with Parallel Load and Preset Presettable parallel counter with asynchronous preset. If PL =, load P into flops

Binary Counter with Parallel Load and Preset Commercial version of binary counter