Lecture 13.

Slides:



Advertisements
Similar presentations
Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
Advertisements

The 8051 Microcontroller and Embedded Systems
Memory Address Decoding
Interrupts Disclaimer: All diagrams and figures in this presentation are scanned from the book “Microprocessors and Programmed Logic” authored by Kenneth.
I/O Unit.
Chapter 6 Computer Architecture
CSCI 4717/5717 Computer Architecture
Thursday, June 08, 2006 The number of UNIX installations has grown to 10, with more expected. The UNIX Programmer's Manual, 2nd Edition, June, 1972.
1 What is a Process ? The activity of program execution. Also called a task or job Has associated with it: Code Data Resources A State An executing set.
Introduction An interrupt is an event which informs the CPU that its service (action) is needed. Sources of interrupts: internal fault (e.g.. divide by.
1 Interrupts INPUT/OUTPUT ORGANIZATION: Interrupts CS 147 JOKO SUTOMO.
Introduction to Interrupts
CDA 3103 Computer Organization Review Instructor: Hao Zheng Dept. Comp. Sci & Eng. USF.
Computer Memory Basic Concepts
Lecture 18 Last Lecture Today’s Topic Instruction formats
MIPS I/O and Interrupt. SPIM I/O and MIPS Interrupts The materials of this lecture can be found in A7-A8 (3 rd Edition) and B7-B8 (4 th Edition).
Interrupts  Interrupt is a process where an external device can get the attention of the microprocessor.  The process starts from the I/O device  The.
MARIE: An Introduction to a Simple Computer
Interrupts. What Are Interrupts? Interrupts alter a program’s flow of control  Behavior is similar to a procedure call »Some significant differences.
Interrupts Signal that causes the CPU to alter its normal flow on instruction execution ◦ frees CPU from waiting for events ◦ provides control for external.
MICROPROCESSOR INPUT/OUTPUT
Faculty of Computer Science © 2006 CMPUT 229 Input and Output Devices Pooling and Interrupts.
Basic Architecture Lecture 15. In general, if the number of bits is n, then the number of different combinations of 0s and 1s that can be made is 2 n.
I/O management is a major component of operating system design and operation Important aspect of computer operation I/O devices vary greatly Various methods.
MEMORY ORGANIZTION & ADDRESSING Presented by: Bshara Choufany.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
Lecture 14 Today’s topics MARIE Architecture Registers Buses
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
CSNB374: Microprocessor Systems Chapter 5: Procedures and Interrupts.
CSE 241 Computer Engineering (1) هندسة الحاسبات (1) Lecture #3 Ch. 6 Memory System Design Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering.
Microprocessor. Interrupts The processor has 5 interrupts. CALL instruction (3 byte instruction). The processor calls the subroutine, address of which.
Chapter 4 MARIE: An Introduction to a Simple Computer.
By Fernan Naderzad.  Today we’ll go over: Von Neumann Architecture, Hardware and Software Approaches, Computer Functions, Interrupts, and Buses.
Chapter 6: Computer Components Dr Mohamed Menacer Taibah University
Lecture Overview Introduction Instruction processing A simple program
I/O Organization Competency – C6. Important facts to remember when I/O devices are to be connected to CPU There is a vast variety of I/O devices. Some.
ECE 353 Introduction to Microprocessor Systems Michael J. Schulte Week 11.
بسم الله الرحمن الرحيم MEMORY AND I/O.
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
Multiplex of Data and Address Lines in 8088 Address lines A0-A7 and Data lines D0-D7 are multiplexed in These lines are labelled as AD0-AD7. –By.
INTERRUPTS. Topics to be discussed  8088/86 Hardware Interrupts pins 8088/86 Hardware Interrupts pins   Pin description Pin description.
Embedded Real-Time Systems Processing interrupts Lecturer Department University.
Dr. ClincyLecture Slide 1 CS Chapter 4 (Sec 5.1 &5.2) 1 of 5 Dr. Clincy Professor of CS.
Unit Microprocessor.
An Interrupt is either a Hardware generated CALL (externally derived from a hardware signal) OR A Software-generated CALL (internally derived from.
Dr.Faisal Alzyoud 5/9/2018 Datapath and Control.
MICROPROCESSOR BASED SYSTEM DESIGN
MIPS I/O and Interrupt.
Computer Architecture
Interrupts In 8085 and 8086.
The 8051 Microcontroller and Embedded Systems
Computer System Overview
Cover a section of Ch 4 Review both Exam 2 and Exam 3
Dr. Michael Nasief Lecture 2
CS703 - Advanced Operating Systems
MIPS I/O and Interrupt.
YOVI 2008 Core Interrupt Controller (INTC)
Subject Name: Microprocessors Subject Code:10EC46 Department: Electronics and Communication Date: /20/2018.
University of Gujrat Department of Computer Science
BIC 10503: COMPUTER ARCHITECTURE
Lecture 9: TI MSP430 Interrupts & Low Power Modes
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
CS Chapter 4 Dr. Clincy Professor of CS TODAY’S AGENDA
Process Description and Control
CNET 315 Microprocessor & Assembly Language
Chapter 13: I/O Systems “The two main jobs of a computer are I/O and [CPU] processing. In many cases, the main job is I/O, and the [CPU] processing is.
Presentation transcript:

Lecture 13

Memory Write a word to memory: An address is asserted on 𝑆 0 and 𝑆 1 . Write enable (WE) is set to high. The decoder using 𝑆 0 and 𝑆 1 enables only one AND gate, selecting a given word in memory. The line selected in Step 3 combines with the clock and WE select only one word. The write gate enabled in Step 4 drives the clock for the selected word. When the clock pulses, the word on the input lines is loaded into the D flip-flop.

Memory Organization Computer memory consists of a linear array of addressable storage cells that are similar to registers. Memory can be byte-addressable, or word-addressable, where a word typically consists of two or more bytes. Memory is constructed of RAM (random access memory) chips, often referred to in terms of length  width. e.g., 4M  16: 4M ( 2 2 × 2 20 = 2 22 ) items and each item is 16 bits width. This requires 2 22 different addresses to uniquely identify 2 22 items. In general, unsigned numbers are used for memory addresses. 2 22 items are indexed from 0 to 2 22 −1 in memory. Indexing 𝑀 items requires log 2 𝑀 bits (address lines) to represent the address.

Address Interleaving Physical memory usually consists of more than one RAM chip. Access is more efficient when memory is organized into banks of chips with the addresses interleaved across the chips low-order interleaving: the low order bits of the address specify which memory bank contains the address of interest. High-order interleaving: the high order address bits specify the memory bank.

Exercise Assume a memory consisting of 16 2K x 8 bit chips. Memory is 32K = 25  210 = 215 15 bits are needed for each address. 4 bits to select the chip, and 11 bits for the offset into the chip that selects the byte. In high-order interleaving the high-order 4 bits select the chip. In low-order interleaving the low-order 4 bits select the chip.

Memory Organization Exercise

Memory Organization Exercise

Exercise which means it uses 8 memory banks; 8 = 2 3 EXAMPLE 4.1 Suppose we have a 128-word memory that is 8-way low-order interleaved which means it uses 8 memory banks; 8 = 2 3 So we use the low-order 3 bits to identify the bank. Because we have 128 words, we need 7 bits for each address (128 = 2 7 ).

Interrupts The normal execution of a program is altered when an event of higher-priority occurs. The CPU is alerted to such an event through an interrupt. Interrupts can be triggered by I/O requests, arithmetic errors (such as division by zero), or when an invalid instruction is encountered. Interrupt handling: Each interrupt is associated with a procedure that directs the actions of the CPU when an interrupt occurs. Interrupts are classified: Maskable: disabled or ignored Nonmaskable interrupts are high-priority interrupts that cannot be disabled and must be acknowledged.

Exercise Suppose a system has a byte-addressable memory size of 256MB. How many bits are required for each address? Suppose that a 32MB system memory is built from 32 1MB RAM chips. How many address lines are needed to select one of the memory chips? Suppose that a system uses 32-bit memory words and its memory is built from 16 1M × 8 RAM chips. How many address bits are required to uniquely identify each memory word? Suppose that a system uses 16-bit memory words and its memory is built from 32 1M × 8 RAM chips. How many address bits are required to uniquely identify each memory word? Suppose that a system uses 32-bit memory words and its memory is built from 16 1M × 16 RAM chips. How large, in words, is the memory on this system? Suppose we have a 1024-word memory that is 16-way low-order interleaved. What is the size of the memory address offset field? Given a number of 2048 bytes consisting of several 64x8 RAM chips and assuming byte-addressable memory, how many bits are required for chip selection and how many bits are required for each address on chip?