Chapter 10 Input/Output Organization

Slides:



Advertisements
Similar presentations
INPUT-OUTPUT ORGANIZATION
Advertisements

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.
Chapter 10 Input / Output Organization CS 147 Yueyang Zhou.
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.
Lecture 1: Intro to Computers Yoni Fridman 6/28/01 6/28/01.
Input-Output Problems L1 Prof. Sin-Min Lee Department of Mathematics and Computer Science.
9/20/6Lecture 3 - Instruction Set - Al Hardware interface (part 2)
Input/Output and Communication
Practical Session No. 10 Input &Output (I/O). I/O Devices Input/output (I/O) devices provide the means to interact with the “outside world”. An I/O device.
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.
CHAPTER 5 I/O PRINCIPLE Understand the principles of System Bus
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,
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
Input/Output 2 What is I/O? How we get the CPU to communicate with devices From the computer’s point of view, it’s just 1’s and 0’s Gets interpreted.
C o n f i d e n t i a l 1 Course: BCA Semester: III Subject Code : BC 0042 Subject Name: Operating Systems Unit number : 1 Unit Title: Overview of Operating.
PPI-8255.
I/O: Input-Output By: Tommy Zeng. What is I/O? I/O – short for “Input – Output” How a computer interacts with its users Input – gets information from.
Computer Organization and Design
Computer Architecture and Number Systems
Computer Organization
Unit Microprocessor.
OPERATING SYSTEM CONCEPT AND PRACTISE
ASYNCHRONOUS DATA TRANSFER
Interconnection Structures
Department of Computer Science and Engineering
Chapter 6 Input/Output Organization
COURSE OUTCOMES OF Microprocessor and programming
16.317: Microprocessor System Design I
Microprocessor Systems Design I
Input/Output and Communication
Presented By: Navneet Kaur Randhawa Lect. I.T. Deptt. GPC,Amritsar
Chapter 7.2 Computer Architecture
Diagram of microprocessor interface with IO devices
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.
Introduction of microprocessor
CS 286 Computer Organization and Architecture
Chapter 3 Top Level View of Computer Function and Interconnection
COMP2121: Microprocessors and Interfacing
E3165 DIGITAL ELECTRONIC SYSTEM
CS703 - Advanced Operating Systems
Microcomputer Architecture
Overview Peripheral Devices Input-Output Interface
INPUT-OUTPUT ORGANIZATION
Chapter 8 Input/Output I/O basics Keyboard input Monitor output
Computer Architecture
Computer Organization and Design
CSCI 315 Operating Systems Design
8255.
Operating Systems Chapter 5: Input/Output Management
Overview of Computer Architecture and Organization
82C55 Programmable Peripheral Interface
Chapter 8 I/O.
COMPUTER PERIPHERALS AND INTERFACES
Components of a CPU AS Computing - F451.
Overview of Computer Architecture and Organization
Chapter 8 I/O.
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
Jazan University, Jazan KSA
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
William Stallings Computer Organization and Architecture
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:

Chapter 10 Input/Output Organization Victor Cheung Pages 422 - 437

Why do we need I/O? Computers need some way to interact with the outside world. I/O allows a computer to communicate with devices such as a monitor, keyboard, mouse, disk drives, etc.

Special Terms Source - CPU/main computer Destination - a peripheral or device Strobe - an oscillating signal/clock

2 Types of Data Transfers -Synchronous -Asynchronous Programmed I/O Introduction 2 Types of Data Transfers -Synchronous -Asynchronous Programmed I/O

Synchronous Data Transfers Recall that an I/O device and CPU communicate via address bus, data bus, and control bus.

Synchronous Interface The I/O device reads in the address bus from the CPU The data bus is bi-directional, or data my flow in one direction. The control bus may only have data flowing in one direction.

Connections between a CPU and I/O device with a synchronous data transfer

Synchronous data transfers are used when peripherals are located within the same computer as the CPU. This allows them to share a common clock, and physically shortens the time that data has to travel because of their close proximity to the CPU.

Asynchronous Data Transfers Use control signals and their hardware to move data. This does not require the source and destination to use the same clock. 4 types of asynchronous data transfers: -Source Initiated -Destination Initiated -Handshaking -Non-handshaking

Asynchronous Data Transfers: Source-Initiated Data Transfer w/o handshaking In this mode: 1. The source outputs data 2. Source strobes a control signal for a set time 3. Destination reads in data 4. Source deasserts the strobe The destination device does not send any information back to the source, so the destination device can never confirm that the data was received.

This is analogous to having a teacher (the source) write an assignment on the blackboard (the data) and the students (the destination) read the blackboard without letting the teacher know if they understood what the teacher wrote.

Asynchronous Data Transfers: Source-Initiated Data Transfer w/o handshaking

Asynchronous Data Transfers: Destination-Initiated Data Transfer w/o handshaking In this mode: 1. The destination device outputs data to the source 2. Source makes data available after delay 3. Destination reads in data 4. Destination deasserts the strobe This causes the source to stop transmitting valid data

This is similar to having a student (the destination) ask a teacher (the source) a question. The teacher gives the student an answer (the data) and then continues lecturing without confirming whether or not the student heard the answer.

Asynchronous Data Transfers: Destination-Initiated Data Transfer w/o handshaking

Usefulness These types of data transfers are only useful for low cost devices that do not have to confirm receipt of data, and have transfers that occur periodically. But some other devices do not require periodic data transfers. These type of devices may use handshaking to coordinate their transfers instead.

Handshaking Handshaking uses another control signal to confirm that data has been read in or that data is ready.

Asynchronous Data Transfers: Source-Initiated Data Transfer w/ handshaking In this mode: 1. The source sets a data request 2. Source makes valid data available 3. Destination reads in data after delay 4. Destination sends a data acknowledge signal to the source (This tells the source that the device has read in the data, and that the data is no longer needed.) 5. The source stops sending data 6. Destination resets acknowledge signal

This is analogous to having a teacher write something on a blackboard and then waits for the students to say that they have copied down what he has written. After the students confirm that they have copied down everything, the teacher erases the information on the blackboard and continues lecturing.

Asynchronous Data Transfers: Source-Initiated Data Transfer w/ handshaking

Asynchronous Data Transfers: Destination-Initiated Data Transfer w/ handshaking In this mode: 1. The destination device outputs data to the source 2. Source makes valid data available 3. Destination reads in data after delay 4. Destination sends a data ready signal to the source 5. The source stops sending data 6. Destination resets ready signal

This is similar to having the students ask the teacher a question This is similar to having the students ask the teacher a question. The teacher answers the question by writing the answer on the blackboard. The students copy the answer in their notes and let the teacher know that they are done writing it down. The teacher then erases the blackboard and continues the lecture.

Asynchronous Data Transfers: Destination-Initiated Data Transfer w/ handshaking

Programmed I/O All I/O devices require software for the CPU to input and output data. This software is called a driver.

Drivers Drivers are usually written in Assembly or C. Programmers use these languages because they have more access to memory manipulation. A language such as Java, cannot write driver software because the compiler does not allow the programmer to manipulate the memory.

Improvements to I/O There are several methods to improve I/O performance, such as interrupts, direct memory access, and I/O processors. The two popular I/O interfaces today are the RS-232-C serial interface and the universal serial bus (USB).

THE END