School of Computer Science G51CSA 1 Input / Output.

Slides:



Advertisements
Similar presentations
External Memory.
Advertisements

Computer System Overview
CSCI 4717/5717 Computer Architecture
CS-334: Computer Architecture
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
1 Computer System Overview OS-1 Course AA
1 CSIT431 Introduction to Operating Systems Welcome to CSIT431 Introduction to Operating Systems In this course we learn about the design and structure.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
TECH CH03 System Buses Computer Components Computer Function
Chapter 7 Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats.
CHAPTER 9: Input / Output
Group 7 Jhonathan Briceño Reginal Etienne Christian Kruger Felix Martinez Dane Minott Immer S Rivera Ander Sahonero.
CS-334: Computer Architecture
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 10: Input / Output Devices Dr Mohamed Menacer Taibah University
Input/OUTPUT [I/O Module structure].
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.
Computer System Overview Chapter 1. Operating System Exploits the hardware resources of one or more processors Provides a set of services to system users.
CHAPTER 9: Input / Output
MICROPROCESSOR INPUT/OUTPUT
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.
Top Level View of Computer Function and Interconnection.
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.
2 nd Year - 1 st Semester Asst. Lect. Mohammed Salim Computer Architecture I 1.
COMPUTER ORGANIZATIONS CSNB123. COMPUTER ORGANIZATIONS CSNB123 Expected Course Outcome #Course OutcomeCoverage 1Explain the concepts that underlie modern.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
EEE440 Computer Architecture
ECEG-3202 Computer Architecture and Organization Chapter 3 Top Level View of Computer Function and Interconnection.
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.
L/O/G/O Input Output Chapter 4 CS.216 Computer Architecture and Organization.
Chapter 6: Computer Components Dr Mohamed Menacer Taibah University
Dr Mohamed Menacer College of Computer Science and Engineering, Taibah University CE-321: Computer.
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 Organization and Architecture + Networks Lecture 6 Input/Output.
Computer System Overview
Chapter 3 Top Level View of Computer Function and Interconnection
Computer System Overview
BIC 10503: COMPUTER ARCHITECTURE
Computer System Overview
Computer System Overview
Presentation transcript:

School of Computer Science G51CSA 1 Input / Output

School of Computer Science G51CSA 2 Overview JI/O module is the third key element of a computer system. (others are CPU and Memory) JAll computer systems must have efficient means to receive input and deliver output JWe will look at.I/O module and their interface to the system.I/O mechanisms.Example interfaces

School of Computer Science G51CSA 3 I/O modules JEach I/O module interfaces to the system bus and controls one or more peripheral devices. JExternal devices are generally not connected directly to the bus structure of the computer systems -.Wide variety of devices require different logic interfaces - impractical to expect the CPU to know how to control each device.Mismatch of data rates.Different data representation

School of Computer Science G51CSA 4 I/O modules

School of Computer Science G51CSA 5 I/O modules JThe I/O modules.Not just simple mechanical connectors.Contain “intelligence” - logic for performing communication functions between the peripherals and the bus..Provide standard interfaces to the CPU and the bus.Tailored to specific I/O devices and their interfaces requirement.Relieve CPU of the the management of I/O devices.Interfaces consist of.Control.Status and.Data signals

School of Computer Science G51CSA 6 I/O Module Diagram Data Register Status/Control Register External Device Interface Logic External Device Interface Logic Input Output Logic Data Lines Address Lines Data Lines Data Status Control Data Status Control Systems Bus InterfaceExternal Device Interface

School of Computer Science G51CSA 7 Input Output Techniques: Programmed JI/O operation in which the CPU issues the I/O command to the I/O module JCPU is in direct control of the operation.Sensing status,.Read/write commands,.Transferring data

School of Computer Science G51CSA 8 Input Output Techniques: Programmed JCPU waits until the I/O operation is completed before it can perform other tasks JCompletion indicated by a change in the status bits JCPU must periodically poll the module to check its status bits JThe speed of the CPU and peripherals can differ by orders of magnitude, programmed I/O waste huge amount of CPU power JVery inefficient JCPU slowed to the speed of peripherals

School of Computer Science G51CSA 9 Input Output Techniques: Programmed ¶Programmed I/O Operation ¶Simple to implement. Requires very little special software or hardware

School of Computer Science G51CSA 10 Input Output Techniques: Programmed JAddressing I/O Devices.Under programmed I/O data transfer is very like memory access (CPU viewpoint).Each device given unique identifier.CPU commands contain identifier (address)

School of Computer Science G51CSA 11 Input Output Techniques: Programmed JMemory mapped I/O.Devices and memory share an address space.I/O looks just like memory read/write.No special commands for I/O.Large selection of memory access commands available JIsolated I/O.Separate address spaces.Need I/O or memory select lines.Special commands for I/O.Limited set

School of Computer Science G51CSA 12 Input Output Techniques: Programmed

School of Computer Science G51CSA 13 Input Output Techniques: Programmed

School of Computer Science G51CSA 14 Interrupts (Mechanism by which other modules (e.g. I/O) may interrupt normal sequence of processing (Program e.g. overflow, division by zero (Timer Generated by internal processor timer (I/O from I/O controller (Hardware failure e.g. memory parity error

School of Computer Science G51CSA 15 Interrupt Program Flow

School of Computer Science G51CSA 16 Interrupt Cycle JProcessor checks for interrupt lIndicated by an interrupt signal (a control signal) JIf no interrupt, fetch next instruction JIf interrupt pending: lSuspend execution of current program lSave context lSet PC to start address of interrupt handler routine lProcess interrupt lRestore context and continue interrupted program

School of Computer Science G51CSA 17 Input Output Techniques: Interrupt Driven JTo reduce the time spent on I/O operation, 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 JCPU recognizes and responds to interrupts at the end of an instruction execution cycle JA wide variety devices use interrupt for I/O

School of Computer Science G51CSA 18 Input Output Techniques: Interrupt Driven Interrupt driven I/O operation

School of Computer Science G51CSA 19 Input Output Techniques: Interrupt Driven CPU’s Response to an Interrupt

School of Computer Science G51CSA 20 Input Output Techniques: Interrupt Driven Process keyboard Input

School of Computer Science G51CSA 21 Input Output Techniques: Interrupt Driven Regulate output flow: Using a print handler interrupt

School of Computer Science G51CSA 22 Multiple Interrupts dDisable interrupts.Processor will ignore further interrupts whilst processing one interrupt.Interrupts remain pending and are checked after first interrupt has been processed.Interrupts handled in sequence as they occur gDefine priorities.Low priority interrupts can be interrupted by higher priority interrupts.When higher priority interrupt has been processed, processor returns to previous interrupt

School of Computer Science G51CSA 23 Multiple Interrupts

School of Computer Science G51CSA 24 Input Output Techniques: DMA JDMA - Direct Memory Access JBoth programmed and interrupt driven I/O require the continue involvement of the CPU in on going I/O operation JDMA take the CPU out of the task except for the initialization of the process JLarge amount of data can be transferred without severely impacting CPU performance

School of Computer Science G51CSA 25 JDMA operation require additional hardware - DMA Controller module JDMA process.CPU initializes DMA module.Define read or write operation.I/O device involved.Start address of memory block.Number of words to be transferred.CPU then continues with other work JIn practice, DMA uses the bus when the CPU is not using it..No impact on the CPU performance Input Output Techniques: DMA

School of Computer Science G51CSA 26 Input Output Techniques: DMA

School of Computer Science G51CSA 27 Input Output Techniques: DMA Transfer a block of data from memory to disk