L/O/G/O www.themegallery.com Input Output Chapter 4 CS.216 Computer Architecture and Organization.

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

I/O Organization popo.
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
Chapter 10 Input/Output Organization. Connections between a CPU and an I/O device Types of bus (Figure 10.1) –Address bus –Data bus –Control bus.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Processor support devices Part 1:Interrupts and shared memory dr.ir. A.C. Verschueren.
I/O Unit.
COMPUTER ORGANIZATION CHAPTER SUBSYSTEM INTERCONNECTION.
CS-334: Computer Architecture
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
1 Pertemuan 12 Input/Output Matakuliah: H0344/Organisasi dan Arsitektur Komputer Tahun: 2005 Versi: 1/1.
University College Cork IRELAND Hardware Concepts An understanding of computer hardware is a vital prerequisite for the study of operating systems.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
Chapter 7 Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats.
1 COSC 3P92 Cosc 3P92 Week 11 Lecture slides Violence is the last refuge of the incompetent. Isaac Asimov, Salvor Hardin in "Foundation"
Group 7 Jhonathan Briceño Reginal Etienne Christian Kruger Felix Martinez Dane Minott Immer S Rivera Ander Sahonero.
2. Methods for I/O Operations
INPUT/OUTPUT ARCHITECTURE By Truc Truong. Input Devices Keyboard Keyboard Mouse Mouse Scanner Scanner CD-Rom CD-Rom Game Controller Game Controller.
Lecture 12 Today’s topics –CPU basics Registers ALU Control Unit –The bus –Clocks –Input/output subsystem 1.
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
Chapter 7 Input/Output Luisa Botero Santiago Del Portillo Ivan Vega.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
Chapter 10: Input / Output Devices Dr Mohamed Menacer Taibah University
Input/OUTPUT [I/O Module structure].
I/O Sub-System CT101 – Computing Systems.
Cis303a_chapt06_exam.ppt CIS303A: System Architecture Exam - Chapter 6 Name: __________________ Date: _______________ 1. What connects the CPU with other.
CHAPTER 9: Input / Output
MICROPROCESSOR INPUT/OUTPUT
1. Introduction 2. Methods for I/O Operations 3. Buses 4. Liquid Crystal Displays 5. Other Types of Displays 6. Graphics Adapters 7. Optical Discs 10/01/20151Input/Output.
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.
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
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 ORGANIZATIONS CSNB123 NSMS2013 Ver.1Systems and Networking1.
Input/Output Computer component : Input/Output I/O Modules External Devices I/O Modules Function and Structure I/O Operation Techniques I/O Channels and.
I/O Computer Organization II 1 Interconnecting Components Need interconnections between – CPU, memory, I/O controllers Bus: shared communication channel.
School of Computer Science G51CSA 1 Input / Output.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
Modes of transfer in computer
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.
The computer system’s I/O architecture is its interface to the outside world. This architecture provides a systematic means of controlling interaction.
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.
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,
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)
بسم الله الرحمن الرحيم MEMORY AND I/O.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Amdahl’s Law & I/O Control Method 1. Amdahl’s Law The overall performance of a system is a result of the interaction of all of its components. System.
Computer Architecture Chapter (7): Input / Output
Chapter 7 Input/Output and Storage Systems. 2 Chapter 7 Objectives Understand how I/O systems work, including I/O methods and architectures. Become familiar.
Computer Organization and Architecture + Networks Lecture 6 Input/Output.
I/O SYSTEMS MANAGEMENT Krishna Kumar Ahirwar ( )
Operating Systems (CS 340 D)
BIC 10503: COMPUTER ARCHITECTURE
Created by Vivi Sahfitri
Chapter 13: I/O Systems.
I/O subsystem Overview Peripheral Devices and IO Modules
Presentation transcript:

L/O/G/O Input Output Chapter 4 CS.216 Computer Architecture and Organization

Overview (1/2) Input / Output modules are the third critical element of the computer system (others are the CPU and the memory) All computer systems must have efficient means to receive input and deliver output –Failure to address I/O concerns has doomed many otherwise good systems

Overview (2/2) We will look at –I/O modules and their interface to the rest of the system –I/O mechanisms –Example interfaces Reading: Text, Chapter 6

I/O Modules (1/5) External devices are not generally connected directly into the bus structure of the computer –Wide variety of devices require different logic interfaces -- impractical to expect CPU to “know how” to control each device –Mismatch of data rates –Different data representations

I/O Modules (2/5) The I/O module –Provides a standard interface to the CPU and the bus –Tailored to specific I/O device and its interface requirements –Relieves the CPU of the management of the I/O devices –Interface consists of Control Status and Data signals

I/O Modules (3/5)

I/O Modules (4/5)

I/O Modules (5/5)

Programmed I/O (1/3) I/O operation in which CPU issues the I/O command to the I/O module CPU is in direct control of the operation –CPU waits until the I/O operation is completed before it can perform other tasks –Completion indicated by a change in the module status bits –CPU must periodically poll the module to check its status

Programmed I/O (2/3) As a result of the speed difference between a CPU and the peripheral devices (orders of magnitude), programmed I/O wastes an enormous amount of CPU processing power –Very inefficient –CPU slowed to the speed of the peripheral Advantages –Simple to implement –Requires very little special software or hardware

Figure 7.5a Three Techniques for Input of a Block of Data

I/O addressing (1/3) Isolated (standard) I/O –Address space of the I/O modules is isolated from the memory address space –Separate instructions in the instruction set are used to perform I/O –Typical control lines include the read/write lines plus an IO/M line to switch address reference between memory space and I/O space

I/O addressing (2/3) Memory mapped I/O –I/O devices are integrated into the normal memory address space –All of the memory accessing instructions can be used to access the I/O peripherals –“Cost” is the loss of “real” memory addresses Not a big problem today with the huge address spaces in current systems

I/O addressing (3/3)

Interrupt-Driven I/O (1/11) To reduce the time spent on I/O operations, the CPU can use an interrupt-driven approach –CPU issues I/O command to the module –CPU continues with its other tasks while the module performs its task –Module signals the CPU when the I/O operation is finished (the interrupt) –CPU responds to the interrupt by executing an interrupt service routine and then continues on with its primary task

Interrupt-Driven I/O (2/11) CPU recognizes and responds to interrupts at the end of an instruction execution cycle Interrupt technique is used to support a wide variety of devices

Interrupt-Driven I/O (3/11) Figure 7.5b Three Techniques for Input of a Block of Data

Interrupt-Driven I/O (4/11)

Figure 7.8a Changes in Memory and Registers for an Interrupt

Figure 7.8b Changes in Memory and Registers for an Interrupt

Interrupt-Driven I/O (7/11) Design issues -- with multiple modules and thus multiple interrupts –How does the CPU determine which device caused the interrupt? –If multiple interrupts occur at the same time, which is processed first ?

Interrupt-Driven I/O (8/11) Interrupt determination –Provide multiple interrupt signal lines for a system Practical only for small numbers of interrupts –Use 1 interrupt for more than 1 device Must perform some sort of device polling to determine which requested service Requesting device can place an ID on the bus - - vectored interrupts Bus arbitration and vectored interrupts

Interrupt-Driven I/O (9/11) Determination scheme prioritizes multiple interrupts –Centralize Interrupt Control Intel 8259 –Distributed Interrupt Control Daisy Chain EI EO EI EO EI EO EI EO Daisy Chain ‘1’ Int ‘0’ ‘1’ ‘0’ ‘1’ ‘0’

Intel 8259 Interrupt Controller

Direct Memory Access (1/9) Both programmed and interrupt driven I/O require the continued involvement of the CPU in ongoing I/O operations Direct memory accessing takes the CPU out of the task except for initialization of the operation

Direct Memory Access (2/9) Large amounts of data can be transferred between memory and the peripheral w/o severely impacting CPU performance –CPU initializes DMA module Read or write operation defined I/O device involved Starting address of memory block Number of words to be transferred –CPU then continues with other work

Direct Memory Access (3/9) Figure 7.5c Three Techniques for Input of a Block of Data

Direct Memory Access (4/9)

Direct Memory Access (5/9)

Direct Memory Access (6/9) DMA operates by “stealing” bus cycles from the CPU –In theory, it uses the bus when the CPU is not using it -- no impact on the CPU performance –In practice, it steals cycle when CPU is go to use bus. –Accesses memory to retrieve a data word –Forwards the word to the I/O peripheral

Direct Memory Access (7/9)

Direct Memory Access (8/9)

External Interface (1/9) The external interface, made with the I/O module, must be tailored to the nature and operation of the peripheral –Parallel vs. serial data transfers –Data format conversions –Transfer rates –Number of devices supported

External Interface (2/9) Examples –RS-232 serial ports –Game ports –High speed I/O buses Support external mass storage devices and multimedia devices

External Interface (3/9)

External Interface (4/9)

External Interface (5/9) Small Computer System Interface (SCSI) –Introduced by Apple in 1984 –Used to interface a wide variety of high speed devices to the computer system –While called a “bus” it is really a mechanism to daisy chain devices together

External Interface (6/9) –SCSI-1 Used 8-bit data bus width 5 MHz clock -- transfer rate of 5 MB/sec Supported up to 7 devices (compare to the 2 of a typical IDE configuration) –SCSI-2 Current standard Expands the bus width to 16 or 32 bits Clock rate of 10 MHz Supports wide variety of device types, making I/O software in the host simplier

External Interface (7/9)

External Interface (8/9) P1394 High Performance Serial Bus –High speed, low cost serial link –Gaining support in consumer electronics products as well as computer systems –Deliberately move away from parallel connections with associated high cable and connector costs

External Interface (9/9) –Provide high speed serial link ( Mbps) that is able to connect to many devices –Daisy chain up to 63 devices together on 1 bus, interconnect up to 1022 buses together through bridging techniques –Communication is based on a 3-layer protocol Physical layer Link layer Transaction layer

L/O/G/O Question! Do you have any