Computer Architecture

Slides:



Advertisements
Similar presentations
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
Advertisements

Input and Output CS 215 Lecture #20.
CS-334: Computer Architecture
Lecture Objectives: 1)Explain the limitations of flash memory. 2)Define wear leveling. 3)Define the term IO Transaction 4)Define the terms synchronous.
Input-output and Communication Prof. Sin-Min Lee Department of Computer Science.
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
9/20/6Lecture 3 - Instruction Set - Al Hardware interface (part 2)
1/21/2010CSCI 315 Operating Systems Design1 Computer System Structures Notice: The slides for this lecture have been largely based on those accompanying.
Copyright ©: Nahrstedt, Angrave, Abdelzaher
INPUT-OUTPUT ORGANIZATION
INPUT/OUTPUT ARCHITECTURE By Truc Truong. Input Devices Keyboard Keyboard Mouse Mouse Scanner Scanner CD-Rom CD-Rom Game Controller Game Controller.
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
General System Architecture and I/O.  I/O devices and the CPU can execute concurrently.  Each device controller is in charge of a particular device.
Input and Output Computer Organization and Assembly Language: Module 9.
Input/ Output By Mohit Sehgal. What is Input/Output of a Computer? Connection with Machine Every machine has I/O (Like a function) In computing, input/output,
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
2007 Oct 18SYSC2001* - Dept. Systems and Computer Engineering, Carleton University Fall SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices.
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.
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
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 Organization. This module surveys the physical resources of a computer system.  Basic components  CPU  Memory  Bus  I/O devices  CPU structure.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 4 Computer Systems Review.
Lecture 1: Review of Computer Organization
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.
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
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.
Input Output Techniques Programmed Interrupt driven Direct Memory Access (DMA)
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
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.
Computer Organization and Architecture + Networks Lecture 6 Input/Output.
Computer Organization and Design
Input / Output Chapter 9.
Computer Architecture and Number Systems
I/O Management.
Chapter 2: Computer-System Structures(Hardware)
Chapter 2: Computer-System Structures
I/O SYSTEMS MANAGEMENT Krishna Kumar Ahirwar ( )
Chapter 10 Input/Output Organization
Operating Systems (CS 340 D)
I/O Memory Interface Topics:
Input/Output.
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
CS 286 Computer Organization and Architecture
CS703 - Advanced Operating Systems
Microcomputer Architecture
Overview Peripheral Devices Input-Output Interface
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
BIC 10503: COMPUTER ARCHITECTURE
CSCI 315 Operating Systems Design
Computer-System Architecture
Module 2: Computer-System Structures
Operating Systems Chapter 5: Input/Output Management
Module 2: Computer-System Structures
Chapter 5 Computer Organization
Chapter 2: Computer-System Structures
Chapter 2: Computer-System Structures
Module 2: Computer-System Structures
Module 2: Computer-System Structures
Chapter 13: I/O Systems.
Microprocessor I 7/18/2019.
Chapter 5 Input/Output Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved
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:

Computer Architecture Part IV-A: Input/Output (I/O)

I/O Devices I/O devices can be thought of as having 2 parts: The actual I/O device itself The device controller, which provides a common interface for each device (e.g. IDE, video adapters, etc.) To communicate, the CPU and the I/O devices use the bus

Common I/O Devices Input Storage Output Keyboard Mouse Scanner Magnetic Disks Optical Disks Magnetic Tapes Output Terminals Printers

Magnetic Disks Importance For long-term, non-volatile storage of files A level below MM (in the memory hierarchy) used for VM during program execution

Magnetic Disk Terms Platter Cylinder Track Sector

Disk Data Access Seek time Rotational latency/delay Disk bandwidth Time to get to the track/cylinder containing the sector Rotational latency/delay Time to get to the desired sector Disk bandwidth Number of bytes transferred per unit time Also referred to as transfer rate or transfer time

Buffer Cache Same as that as the CPU cache, but it is located between a device and main memory

I/O Device Identification To support multiple I/O devices, there must be a method to uniquely identify each device Two methods of I/O addressing Separate address space Memory-mapped I/O

Separate Address Space Each device is given an address different from the address space for memory Needs separate instructions for I/O Ideal for separate CPU-memory and I/O busses

Memory-Mapped I/O I/O devices are given addresses which are part of the memory address space I/O devices make use of the same instructions as that of memory Ideal for single bus (CPU, memory and I/O) architecture

CPU-I/O Synchronization I/O devices are slower than the CPU Without synchronization, information may be lost when the CPU sends data to a device which is not yet ready 2 Methods of synchronization Polling Interrupts

Polling CPU tests if a device is ready to receive information Constantly polling a device until it is ready is called busy waiting

Interrupts Signal generated by hardware or software that tells the CPU to immediately execute a priority operation called an interrupt handler An I/O device generates a hardware interrupt when it is ready to receive information

DMA Interrupt-driven I/O relieves the CPU from waiting for every I/O event, but there is still wasted CPU cycles in transferring data I/O events have a lot of block transfers (e.g. transfer of 2048 words might need 2048 loads and 2048 stores) DMA allows transfer of words without intervention by CPU

DMA Specialized processor that transfers data between memory and I/O while the CPU is busy doing something else The CPU initiates the transfer then leaves rest to DMA controller which signals an interrupt when it is done Very useful for large I/O transfers

I/O Transfer Modes Parallel Serial Data is transferred in appropriate units (words, blocks, bytes, etc.) as a whole Requires that the width of the bus is as long as the unit of transfer Serial Data is transferred one bit at a time Data line is one bit wide

I/O Transfer Modes Synchronous I/O transfers require the exchange of signals and parameters (device status, addresses) through some protocol Protocol exchanges occur in conjunction with a clock common to both the CPU and I/O device

I/O Transfer Modes Asynchronous Makes use of handshaking Handshaking - protocol exchanges occur in a stimulus-response fashion with a number of acknowledgements