11/17/2005Comp 120 Fall 20051 O Fortuna O Fortune, just as the moon you vary your state always increasing or decreasing; the detestable life now difficult.

Slides:



Advertisements
Similar presentations
Bus arbitration Processor and DMA controllers both need to initiate data transfers on the bus and access main memory. The device that is allowed to initiate.
Advertisements

IT253: Computer Organization
System Integration and Performance
1  1998 Morgan Kaufmann Publishers Interfacing Processors and Peripherals.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Processor support devices Part 1:Interrupts and shared memory dr.ir. A.C. Verschueren.
CSCE 212 Chapter 8 Storage, Networks, and Other Peripherals Instructor: Jason D. Bakos.
Interfacing Processors and Peripherals Andreas Klappenecker CPSC321 Computer Architecture.
1  1998 Morgan Kaufmann Publishers Chapter 8 Storage, Networks and Other Peripherals.
1 School of Computing Science Simon Fraser University CMPT 300: Operating Systems I Dr. Mohamed Hefeeda.
Processor Design 5Z0321 Processor Design 5Z032 Chapter 8 Interfacing Processors and Peripherals Henk Corporaal.
11/18/2004Comp 120 Fall November 3 classes to go No class on Tuesday 23 November Last 2 classes will be survey and exam review Interconnect and.
1  1998 Morgan Kaufmann Publishers Chapter 8 Interfacing Processors and Peripherals.
I/O Hardware n Incredible variety of I/O devices n Common concepts: – Port – connection point to the computer – Bus (daisy chain or shared direct access)
11/29/2005Comp 120 Fall November 4 to go! Questions? Interrupts and I/O devices.
04/16/2010CSCI 315 Operating Systems Design1 I/O Systems Notice: The slides for this lecture have been largely based on those accompanying an earlier edition.
L21 – OS and IO 1 Comp 411– Spring /24/08 Operating System The OS is JUST A PROGRAM but it runs in SUPERVISOR state access to PHYSICAL addresses.
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
1 COMP541 Interrupts, DMA, Serial I/O Montek Singh April 24, 2007.
COMP381 by M. Hamdi 1 Input/Output Systems. COMP381 by M. Hamdi 2 Motivation: Who Cares About I/O? CPU Performance: 60% per year I/O system performance.
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Storage & Peripherals Disks, Networks, and Other Devices.
Digital System Bus A bus in a digital system is a collection of (usually unbroken) signal lines that carry module-to-module communications. The signals.
CPU BASICS, THE BUS, CLOCKS, I/O SUBSYSTEM Philip Chan.
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.
1 (Based on text: David A. Patterson & John L. Hennessy, Computer Organization and Design: The Hardware/Software Interface, 3 rd Ed., Morgan Kaufmann,
I/O Systems I/O Hardware Application I/O Interface
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
I/O Example: Disk Drives To access data: — seek: position head over the proper track (8 to 20 ms. avg.) — rotational latency: wait for desired sector (.5.
Top Level View of Computer Function and Interconnection.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
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.
Interrupts, Buses Chapter 6.2.5, Introduction to Interrupts Interrupts are a mechanism by which other modules (e.g. I/O) may interrupt normal.
August 1, 2001Systems Architecture II1 Systems Architecture II (CS ) Lecture 9: I/O Devices and Communication Buses * Jeremy R. Johnson Wednesday,
EEE440 Computer Architecture
Programming for GCSE Topic 5.1: Memory and Storage T eaching L ondon C omputing William Marsh School of Electronic Engineering and Computer Science Queen.
ECEG-3202 Computer Architecture and Organization Chapter 3 Top Level View of Computer Function and Interconnection.
Organisasi Sistem Komputer Materi VIII (Input Output)
L/O/G/O Input Output Chapter 4 CS.216 Computer Architecture and Organization.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Chapter 13 – I/O Systems (Pgs ). Devices  Two conflicting properties A. Growing uniformity in interfaces (both h/w and s/w): e.g., USB, TWAIN.
L20 – OS and IO 1 Comp 411– Fall /09/09 Operating System The OS is JUST A PROGRAM but it runs in SUPERVISOR state access to PHYSICAL addresses access.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
Processor Memory Processor-memory bus I/O Device Bus Adapter I/O Device I/O Device Bus Adapter I/O Device I/O Device Expansion bus I/O Bus.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
Fall EE 333 Lillevik 333f06-l22 University of Portland School of Engineering Computer Organization Lecture 22 Project 6 Hard disk drive Bus arbitration.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 12: I/O Systems I/O hardwared Application I/O Interface Kernel I/O.
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
Interrupts and Exception Handling. Execution We are quite aware of the Fetch, Execute process of the control unit of the CPU –Fetch and instruction as.
10/15: Lecture Topics Input/Output –Types of I/O Devices –How devices communicate with the rest of the system communicating with the processor communicating.
CSCE 385: Computer Architecture Spring 2014 Dr. Mike Turi I/O.
DIRECT MEMORY ACCESS and Computer Buses
Computer Architecture
Virtual Memory Main memory can act as a cache for the secondary storage (disk) Advantages: illusion of having more physical memory program relocation protection.
Operating System The OS is JUST A PROGRAM
Operating System The OS is JUST A PROGRAM
Input-output I/O is very much architecture/system dependent
EE 108B Review Session Friday, March 9th, 2007.
Persistence: I/O devices
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Chapter 13: I/O Systems.
Presentation transcript:

11/17/2005Comp 120 Fall O Fortuna O Fortune, just as the moon you vary your state always increasing or decreasing; the detestable life now difficult and then easy with your games sharpens poverty, power dissolves like ice. Often great and empty, your revolving wheel, an evil state, vain health always dissolving, concealing and veiled you also strive for me now by game, a lost shirt I guiltily take because of you. Often my health and my virtue are now contrary for me, affected and defective always in torment; In this hour without delay take the pulse of my heart, which through fate, she overthrows my strength: weep all of you with me.

11/17/2005Comp 120 Fall November 5 classes to go No class on Tuesday 22 November Last 2 classes will be extra topics and exam review Interconnect and IO

11/17/2005Comp 120 Fall Final Exam Regular written examinations are required at the end of each term in all courses numbered below 200, except those whose nature makes written examination unnecessary. Exceptions must have advance approval of the Provost. A final examination schedule is announced each semester, and no examination (except for laboratory sections) may be held at any time other than specified. No instructor shall give a quiz or assign a paper that is not a part of the equivalent of a current daily recitation within one week (five class days) preceding the final examination period. Final examinations for a full course should ordinarily cover two hours but should not exceed a period of three hours. Each student is required to subscribe his or her name to the following pledge or its equivalent on every paper: "I hereby certify that during this examination I have neither given nor received aid." The instructor will not report a grade for any student whose examination paper lacks this pledge. Instead, he or she will register "no pledge" on the class grade report that is sent to the Office of the University Registrar.

11/17/2005Comp 120 Fall So…Doh! Our Final Exam will be Saturday 17 December from 4PM to 7PM in (I guess) Ph 265. Dean of Students says notify your Community Director if you need to stay late in the dorms

11/17/2005Comp 120 Fall Interconnect: Busses

11/17/2005Comp 120 Fall Goals of Interconnect 1.Modularity Everything doesn’t fit on a single chip (yet) Where to draw the lines? Minimize communication? Minimize cost? Maximize expandability? 2.Expansion More processors More memory More devices

11/17/2005Comp 120 Fall Backplane Bus

11/17/2005Comp 120 Fall Issues in Interconnect Physical Interface –Single wire –Multiple wires –Radio –Light Protocol –Sync/Async –Master/Slave –Access Control Time-Division Multiple Access Frequency-Division Multiple Access Code-Division Multiple Access

11/17/2005Comp 120 Fall Dawn of the Dumb Bus: ISA & EISA ISA (Original IBM PC Bus) Just take control and data signals from the CPU chip, buffer, and call it a bus

11/17/2005Comp 120 Fall Smarter Buses The function that buses serve is simple: –They allow movement of data from point to point via transactions –They define rules for initiating and completing these transactions (PROTOCOLS) Terminology –BUS MASTER: a module who initiates a bus transaction –BUS SLAVE: a module who responds to a bus request –BUS CYCLE: The period from when a transaction is requested until it is served

11/17/2005Comp 120 Fall Typical Synchronous Bus Timing Why an asymmetric clock? 1.Double duty – data transitions on one edge, sampled on the other 2.Assures “hold times” 3.Asymmetric high/low phases maximizes transmission interval 4.Allows for several “round-trip” bus delays so that ringing can die down

11/17/2005Comp 120 Fall A Simple Bus Transaction Master 1.Acquires bus 2.Asserts start, operation, and address 3.Waits for bus to answer Slaves 1.Monitors every start 2.Check address 3.If meant for me a.Look at bus operation b.Do operation c.Signal finish of cycle Bus 1.Monitors start 2.Count down 3.If no one answers before counter reaches 0, then “time out”

11/17/2005Comp 120 Fall Multiple Bus Masters Problem: Acquiring the bus. How to become a bus master? Example: “Daisy Chain” Arbitration

11/17/2005Comp 120 Fall Bus Arbitration Issues Fairness – Given uniform requests, bus cycles should be divided evenly among modules Bounded wait – There should be an upper bound on how long a module as to wait between requesting and receiving a grant Utilization – Arbitration scheme should allow for maximum bus performance Scalability – Fixed-cost per module (both in terms of arbitration H/W and arbitration time

11/17/2005Comp 120 Fall Ethernet

11/17/2005Comp 120 Fall USB Universal Serial Bus Provides power and signal A single host connects to multiple devices Devices are given 7 bit addresses when plugged in Controller polls them round-robin 1.5Mbit/s for USB 1, up to 486Mbit/s for USB 2. Hot pluggable Plug and Play

11/17/2005Comp 120 Fall Firewire IEEE 1394 Serial bus plus power Multiple masters Up to 800Mbit/s Hot pluggable Plug and Play

11/17/2005Comp 120 Fall Interrupts How does the CPU manage SLOW I/O devices? 1.Programmed I/O 2.Interrupt Driven I/O

11/17/2005Comp 120 Fall Polling Advantages Simple No surprises Processor in full control Disadvantages Polling can waste lots of time

11/17/2005Comp 120 Fall Interrupt Driven I/O Advantage CPU only bothered when actually needed Disadvantage Can occur at surprising or inconvenient times Have to save and restore state

11/17/2005Comp 120 Fall MIPS Exceptions Reset Hardware Errors (Check, Bus Error, Cache Error) External Interrupt (6 inputs) Address Error Reserved Instruction TLB Miss System Call Breakpoint Trap Integer Overflow Floating Point Error Timer And a few more

11/17/2005Comp 120 Fall Exception Processing 1.EPC gets address of faulty instruction or of next instruction depending on type of exception 2.Switch to kernel mode 3.Jump to a new location based on type of exception PC  FFFF FFFF BFC for Reset PC  FFFF FFFF BFC for Hardware error PC  FFFF FFFF BFC for external interrupts PC  FFFF FFFF BFC for … 4.Save registers 5.Examine the “cause” register to find out why you came here 6.Branch to code to do the right thing

11/17/2005Comp 120 Fall Magnetic Disk Long term, nonvolatile storage Large, inexpensive, and slow Rotating platter(s) coated with magnetic material Use a movable read/write head to access

11/17/2005Comp 120 Fall Magnetic Disk Organization Cylinder: All tracks under head with arm in a fixed position Read/Write time has 3 components Seek time to move the arm Rotational latency: wait for the desired sector to come by Transfer time: transfer bits

11/17/2005Comp 120 Fall Typical Disk Times Average Seek: 8ms to 12ms –Sum of all possible seek / number of possible seeks –Locality reduces this to maybe only 25% of average number Rotational Latency: –At 5400 RPM  11 ms –At 7200 RPM  8 ms –At RPM  6ms Transfer time depends on: –Transfer size (typical 512 bytes) –Rotation speed –Recording density –Diameter –Typical values: 10 to 30MBytes per second

11/17/2005Comp 120 Fall Classes to go 4