Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania 18042 ECE 313 - Computer Organization Lecture 22 - Input/Output.

Slides:



Advertisements
Similar presentations
IT253: Computer Organization
Advertisements

Disk Storage SystemsCSCE430/830 Disk Storage Systems CSCE430/830 Computer Architecture Lecturer: Prof. Hong Jiang Courtesy of Yifeng Zhu (U. Maine) Fall,
Lecture 21Comp. Arch. Fall 2006 Chapter 8: I/O Systems Adapted from Mary Jane Irwin at Penn State University for Computer Organization and Design, Patterson.
1  1998 Morgan Kaufmann Publishers Interfacing Processors and Peripherals.
CS61C L13 I/O © UC Regents 1 CS 161 Chapter 8 - I/O Lecture 17.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Lecture 13 - A Verilog.
CPE 442 io.1 Introduction To Computer Architecture CpE 442 I/O Systems.
CSCE 212 Chapter 8 Storage, Networks, and Other Peripherals Instructor: Jason D. Bakos.
Interfacing Processors and Peripherals Andreas Klappenecker CPSC321 Computer Architecture.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Lecture 19 - Pipelined.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Lecture 14 - Multi-Cycle.
1  1998 Morgan Kaufmann Publishers Chapter 8 Storage, Networks and Other Peripherals.
Processor Design 5Z0321 Processor Design 5Z032 Chapter 8 Interfacing Processors and Peripherals Henk Corporaal.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Lecture 20 - Memory.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Lecture 23 - Course.
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.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania Computer Organization Pipelined Processor Design 1.
1 Interfacing Processors and Peripherals I/O Design affected by many factors (expandability, resilience) Performance: — access latency — throughput — connection.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania Computer Organization Pipelined Processor Design 3.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Lecture 2 - Technology.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Lecture 3 - Instruction.
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 8: Part II Storage, Network and Other Peripherals.
1 CS222: Principles of Database Management Fall 2010 Professor Chen Li Department of Computer Science University of California, Irvine Notes 01.
I/0 devices.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Memory Hierarchy 2.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Lecture 17 - Pipelined.
Presented By Chandra Shekar Reddy.Y 11/5/20081Computer Architecture & Design.
Introduction to Database Systems 1 The Storage Hierarchy and Magnetic Disks Storage Technology: Topic 1.
CENG334 Introduction to Operating Systems Erol Sahin Dept of Computer Eng. Middle East Technical University Ankara, TURKEY URL:
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
Storage & Peripherals Disks, Networks, and Other Devices.
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 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.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Multi-Cycle Processor.
CS2100 Computer Organisation Input/Output (AY2010/2011) Semester 2 Adapted from.
I/O Computer Organization II 1 Introduction I/O devices can be characterized by – Behavior: input, output, storage – Partner: human or machine – Data rate:
Lecture 35: Chapter 6 Today’s topic –I/O Overview 1.
August 1, 2001Systems Architecture II1 Systems Architecture II (CS ) Lecture 9: I/O Devices and Communication Buses * Jeremy R. Johnson Wednesday,
Computer Organization. This module surveys the physical resources of a computer system.  Basic components  CPU  Memory  Bus  I/O devices  CPU structure.
CS2100 Computer Organisation Input/Output – Own reading only (AY2015/6) Semester 1 Adapted from David Patternson’s lecture slides:
Csci 136 Computer Architecture II – IO and Storage Systems Xiuzhen Cheng
Adapted from Computer Organization and Design, Patterson & Hennessy ECE232: Hardware Organization and Design Part 17: Input/Output Chapter 6
1 Lecture 1: Computer System Structures We go over the aspects of computer architecture relevant to OS design  overview  input and output (I/O) organization.
Chapter 6 Storage and Other I/O Topics. Chapter 6 — Storage and Other I/O Topics — 2 Introduction I/O devices can be characterized by Behaviour: input,
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.
1 Ó1998 Morgan Kaufmann Publishers Chapter 8 I/O Systems.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Lecture 16 - Multi-Cycle.
ECE 456 Computer Architecture Lecture #9 – Input/Output Instructor: Dr. Honggang Wang Fall 2013.
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.
1  2004 Morgan Kaufmann Publishers Page Tables. 2  2004 Morgan Kaufmann Publishers Page Tables.
Mohamed Younis CMCS 411, Computer Architecture 1 CMCS Computer Architecture Lecture 25 I/O Systems May 2,
CMSC 611: Advanced Computer Architecture I/O & Storage Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted.
CSCE 385: Computer Architecture Spring 2014 Dr. Mike Turi I/O.
Lecture 2. A Computer System for Labs
Morgan Kaufmann Publishers Storage and Other I/O Topics
Operating Systems (CS 340 D)
Introduction to Computing
CS703 - Advanced Operating Systems
Disks and Files DBMS stores information on (“hard”) disks.
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.
Introduction I/O devices can be characterized by I/O bus connections
CSE 153 Design of Operating Systems Winter 2018
Input-output I/O is very much architecture/system dependent
Persistence: I/O devices
CSC3050 – Computer Architecture
Chapter 11: Mass-Storage Systems
Presentation transcript:

Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Lecture 22 - Input/Output Fall 2004 Reading: Ch. 8 (Skim) Portions of these slides are derived from: Textbook figures © 1998 Morgan Kaufmann Publishers all rights reserved Tod Amon's COD2e Slides © 1998 Morgan Kaufmann Publishers all rights reserved Dave Patterson’s CS 152 Slides - Fall 1997 © UCB Rob Rutenbar’s Slides - Fall 1999 CMU other sources as noted

ECE 313 Fall 2004Lecture 22 - Input / Output2 Roadmap for the term: major topics  Overview / Abstractions and Technology  Instruction sets  Logic & arithmetic  Performance  Processor Implementation  Single-cycle implemenatation  Multicycle implementation  Pipelined Implementation  Memory systems  Input/Output 

ECE 313 Fall 2004Lecture 22 - Input / Output3 Outline - Input-Output  Overview  I/O Performance Metrics  Types and Characteristics of I/O Devices  Buses  Interfacing I/O Devices

ECE 313 Fall 2004Lecture 22 - Input / Output4 Overview - Input Output  I/O is a critical part of computer systems  I/O has greater impact as processor performance increases (remember Amdahl’s law?) Figure 8.1 Cache Memory - I/O Bus Processor Main Memory I/O Controller I/O Controller I/O Controller Disk Graphics Network Interrupts

ECE 313 Fall 2004Lecture 22 - Input / Output5 Measuring I/O Performance  Individual transactions  Response time (Latency)  Bandwidth (Throughput) How much data can move through system in given time? … OR How many I/O operations can we do per unit time?  Overall Performance - Benchmarks for  Supercomputer I/O  Transaction Processing  File System I/O  Appropriate measure depends on application

ECE 313 Fall 2004Lecture 22 - Input / Output6 Characterizing I/O Devices  I/O Device Characteristics  Behavior: input only, output only, or storage  Partner: who or what is using the interface? Machine? Human Being?  Data Rate: peak rate of data transfer  Typical I/O Devices: See Fig. 8.2, p. 568, old p. 644

ECE 313 Fall 2004Lecture 22 - Input / Output7 Hard Disk Components Image Source: Seagate Technolgy LLC Platters Spindle Arm Actuator Interface Connector (SCSI or EIDE) Electronics Head

ECE 313 Fall 2004Lecture 22 - Input / Output8 Hard Disk Organization Platters (2 sides each) Track Sector  Typical numbers (depending on the disk size):  500 to 2,000 tracks per surface  32 to 128 sectors per track A sector is the smallest unit that can be read or written  Traditionally all tracks have the same number of sectors:  Outer tracks record at lower bit density than inner tracks  Recent change: constant bit density, data rate varies with track

ECE 313 Fall 2004Lecture 22 - Input / Output9 Hard Disk Performance Factors  Seek Time  move head to desired track  today’s drives: 5-15ms  Rotational Latency  today’s drives: ,000RPM  average: 0.5 * ( 1 / RPM )  Transfer Time  time to transfer a sector (1KB)  today’s drives: 10-30MB/Sec  Controller Time  Overhead from on-drive electronics  added value: caching, prefetching Sector Track Head Platter Cylinder

ECE 313 Fall 2004Lecture 22 - Input / Output10 Hard Disk Examples Characteristics IBM 3090 IBM UltraStarIntegral 1820 Disk diameter (inches) Formatted data capacity (MB)22,700 4, MTTF (hours)50,000 1,000, ,000 Number of arms/box Rotation speed (RPM) 3,600 7,200 3,800 Transfer rate (MB/sec) Power/box (watts) 2, MB/watt Volume (cubic feet) MB/cubic feet See also book Fig. 8.4

ECE 313 Fall 2004Lecture 22 - Input / Output11 Buses  Goal: connect I/O Devices to Processor, Memory  Use shared wires for economic reasons  Challenging design problem due to physical constraints  length of bus  number of devices  Buses are specialized depending on purpose  Processor-Memoryshort / high-speed  Backplanemed. length / med. speed  I/Olong / low speed

ECE 313 Fall 2004Lecture 22 - Input / Output12 Buses Cache Processor Main Memory I/O Controller I/O Controller I/O Controller Disk Graphics Network Control Data  Bus Structure  Bus Operation  Control signals - used to start a transaction (input/output)  Data signals - used to transmit data (including addresses)

ECE 313 Fall 2004Lecture 22 - Input / Output13 Bus Variations  Synchronous vs. Asynchronous  Single master vs. multiple masters  Narrow vs. wide  Long vs. short

ECE 313 Fall 2004Lecture 22 - Input / Output14 Example Buses  Processor / Memory  Proprietary microprocessor buses - Max bandwidth 422 MByte/sec  Backplane  PCI - Max bandwidth 133 MByte/sec  ISA (obsolete, but still there in many systems)  I/O  SCSI - Max bandwidth 40 MByte/sec (60MByte/sec for 2.0)  USB - Max bandwidth 12 MByte/sec  FireWire (IEEE 1394) - Max bandwidth 50 Mbyte/sec (100MByte/sec for Firewire 800)

ECE 313 Fall 2004Lecture 22 - Input / Output15 Example - Buses on a Modern PC See also book Fig

ECE 313 Fall 2004Lecture 22 - Input / Output16 Interfacing I/O - Processor-Device Communication  Processor accesses registers in device  Control Register  Status Register  Data Register  Connection styles  Memory-Mapped I/O registers mapped to memory locations accessed using load/store  I/O Instructions registers mapped to “device numbers” accessed using I/O instructions Processor Device Data Status Control

ECE 313 Fall 2004Lecture 22 - Input / Output17 Interfacing I/O - Processor-Device Communcation  Communicating w/ Processor  Polling processor checks device status register problem: wastes processor time  Interrupt-Driven I/O - initiated by device device interrupts processor processor interrupt handler processes input often combined with buffering  Direct Memory Access (DMA) Device takes over bus for block transfer Device interrupts processor when complete Cache issues: what if we transfer memory that’s stored in cache?

ECE 313 Fall 2004Lecture 22 - Input / Output18 I/O Summary  I/O has growing impact on performance  Wide range of I/O devices  Buses provide pathways for I/O connection  Software ultimately has to deal with I/O, too