Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

Chapter 6 External Memory.
Interrupts Chapter 8 – pp Chapter 10 – pp Appendix A – pp 537 &
CS-334: Computer Architecture
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
CSS 372 Lecture 1 Course Overview: CSS 372 Web page Syllabus Lab Ettiquette Lab Report Format Review of CSS 371: Simple Computer Architecture Traps Interrupts.
Computer System Overview
Computer System Overview
Chapter 7 Interupts DMA Channels Context Switching.
Chapter 9 & 10 Subroutines and Interrupts. JSR Instruction: JSR offset (11 bit) xxxxxxxxxxx [PC ]  R7, JMP Offset Jump to Subroutine at offset.
CSS 372 Oct 2 nd - Lecture 2 Review of CSS 371: Simple Computer Architecture Chapter 3 – Connecting Computer Components with Buses Typical Bus Structure.
Chapter 7 Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats.
TCSS 372A Computer Architecture. Getting Started Get acquainted (take pictures) Review Web Page (
Midterm Wednesday 11/19 Overview: 25% First Midterm material - Number/character representation and conversion, number arithmetic - DeMorgan’s Law, Combinational.
Unit-5 CO-MPI autonomous
Group 7 Jhonathan Briceño Reginal Etienne Christian Kruger Felix Martinez Dane Minott Immer S Rivera Ander Sahonero.
1 Computer System Overview Chapter 1 Review of basic hardware concepts.
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
The computer system’s I/O architecture is its interface to the outside world. This architecture provides a systematic means of controlling interaction.
Chapter 7 Input/Output Luisa Botero Santiago Del Portillo Ivan Vega.
System Calls 1.
Chapter 10: Input / Output Devices Dr Mohamed Menacer Taibah University
I/O Sub-System CT101 – Computing Systems.
1 Computer System Overview Chapter 1. 2 n An Operating System makes the computing power available to users by controlling the hardware n Let us review.
Chapter 1 Computer System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
2007 Oct 18SYSC2001* - Dept. Systems and Computer Engineering, Carleton University Fall SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
Ihr Logo Operating Systems Internals & Design Principles Fifth Edition William Stallings Chapter 1 Computer System Overview.
Computers Internal Communication. Basic Computer System MAIN MEMORY ALUCNTL..... BUS CONTROLLER Processor I/O moduleInterconnections BUS Memory.
2009 Sep 10SYSC Dept. Systems and Computer Engineering, Carleton University F09. SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices 7.2.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CE-321: Computer.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
© 2004, D. J. Foreman 1 Computer Organization. © 2004, D. J. Foreman 2 Basic Architecture Review  Von Neumann ■ Distinct single-ALU & single-Control.
ECEG-3202 Computer Architecture and Organization Chapter 3 Top Level View of Computer Function and Interconnection.
Organisasi Sistem Komputer Materi VIII (Input Output)
CH10 Input/Output DDDData Transfer EEEExternal Devices IIII/O Modules PPPProgrammed I/O IIIInterrupt-Driven I/O DDDDirect Memory.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
The computer system’s I/O architecture is its interface to the outside world. This architecture provides a systematic means of controlling interaction.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 2 Computer-System Structures Slide 1 Chapter 2 Computer-System Structures.
Lecture 1: Review of Computer Organization
Overview von Neumann Architecture Computer component Computer function
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
IT3002 Computer Architecture
Input Output Techniques Programmed Interrupt driven Direct Memory Access (DMA)
Group 1 chapter 3 Alex Francisco Mario Palomino Mohammed Ur-Rehman Maria Lopez.
بسم الله الرحمن الرحيم MEMORY AND I/O.
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Computer Systems Overview. Lecture 1/Page 2AE4B33OSS W. Stallings: Operating Systems: Internals and Design, ©2001 Operating System Exploits the hardware.
Computer System Overview
Module 2: Computer-System Structures
Created by Vivi Sahfitri
Module 2: Computer-System Structures
Module 2: Computer-System Structures
Jazan University, Jazan KSA
Presentation transcript:

Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory – RAM & DRAMS Systems, Data Transfer Timing, Coding - External memory – Magnetic Disks, RAID, Optical Memory Study Homework, Lecture Slides, Text

Chapter 7 Input/Output

Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU and RAM Need I/O Interfaces (modules) or channels

Generic Model of I/O Module

I/O Module Function Support single or multiple devices Hide or reveal device properties Provides: Control & Timing CPU Communication Device Communication Data Buffering Error Detection

I/O Module Diagram

Input Output Techniques Programmed Interrupt driven Direct Memory Access (DMA)

Programmed I/O CPU has direct control over I/O —Sensing status —Read/write commands —Transferring data CPU waits for I/O module to complete operation Usually not a good use of CPU time

Programmed I/O - detail CPU requests I/O operation I/O module performs operation I/O module sets status bits While CPU checks status bits periodically CPU may wait or come back later

Interrupt driven I/O - CPU Viewpoint Issue I/O command Do other work - Check for interrupt at end of each instruction cycle When interrupt is requested AND request is granted —Save context (registers: data & control) —Process interrupt –Execute “service routine” Continue other work

Interrupt Driven I/O – Device Perspective CPU issues I/O command (including enable interrupt) I/O module gets/puts data from/to peripheral while CPU does other work I/O module interrupts CPU (Interrupt request) Device serviced by CPU

Interrupt Physical Model CPU —General Purpose Registers –Program counter (PC) –Stack Pointer (SP) +User stack Pointer Storage +Supervisor Stack Pointer Storage —Program Status Word (PSW) – Includes –State – user/supervisor, priority, etc. –Program Priority –Condition Codes (CC) —Hardware to communicate over the BUS –Address, Data, and Data Control –Bus status and control Memory —User program —Interrupt Service Routine —Operating System —Interrupt Vector Table –Includes an entry that points to the Interrupt Service Routine (Interrupt vector #) Device —Status/Control Register(s) – Includes: –Interrupt Enable bit –Interrupt bit (sometimes called ready or done) —Priority Level for Interrupt Service Routine (In hardware or firmware) —Interrupt vector number (In hardware or firmware) —Hardware to communicate with CPU over the BUS

Interrupt Sequence 1)What does the programmer do? 2)What does the computer do?

Interrupt Sequence 1)Programmer Action: Enable Interrupts by setting “intr enable” bit in Device Status Reg 2)Enabling Mechanism for device: When device wants service, and its enable bit is set (,i.e, the I/O device has the right to request service), and its priority is higher than the priority of the presently running program, and execution of an instruction is complete, then the processor initiates the interrupt 4)Process to Service the Interrupt: The Processor saves the “state” of the program (has to be able to return) The Processor goes into Privileged or Supervisor Mode The Priority level is set (established by the interrupting device) The user SP is saved and the Supervisor SP loaded The (PC) and the (PSR) are PUSHED onto the Supervisor Stack The contents of the other registers are not saved. Why? The CC’s are cleared 5)The Processor Loads the PC from the Interrupt Vector Table 6)Interrupt Service Routine is executed It ends with an RTI 7)The stored user PSR (POP into PSR), PC (POP into PC), USP loaded And the next instruction fetched