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.

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.
Computer Architecture
INPUT-OUTPUT ORGANIZATION
Chapter 10 Input / Output Organization CS 147 Yueyang Zhou.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir.
I/O Unit.
CS-334: Computer Architecture
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
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.
DIRECT MEMORY ACCESS CS 147 Thursday July 5,2001 SEEMA RAI.
6-1 I/O Methods I/O – Transfer of data between memory of the system and the I/O device Most devices operate asynchronously from the CPU Most methods involve.
1 Pertemuan 12 Input/Output Matakuliah: H0344/Organisasi dan Arsitektur Komputer Tahun: 2005 Versi: 1/1.
04/16/2010CSCI 315 Operating Systems Design1 I/O Systems Notice: The slides for this lecture have been largely based on those accompanying an earlier edition.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
1 Interrupts INPUT/OUTPUT ORGANIZATION: Interrupts CS 147 JOKO SUTOMO.
Input-Output Problems L1 Prof. Sin-Min Lee Department of Mathematics and Computer Science.
Input/Output and Communication
INPUT/OUTPUT ORGANIZATION INTERRUPTS CS147 Summer 2001 Professor: Sin-Min Lee Presented by: Jing Chen.
Unit-5 CO-MPI autonomous
2. Methods for I/O Operations
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.
Chapter 7 Input/Output Luisa Botero Santiago Del Portillo Ivan Vega.
Chapter 10: Input / Output Devices Dr Mohamed Menacer Taibah University
MICROPROCESSOR INPUT/OUTPUT
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
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.
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:
Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization.
I/O management is a major component of operating system design and operation Important aspect of computer operation I/O devices vary greatly Various methods.
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.
I/O Computer Organization II 1 Interconnecting Components Need interconnections between – CPU, memory, I/O controllers Bus: shared communication channel.
Modes of transfer in computer
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.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
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)
I/O Organization Competency – C6. Important facts to remember when I/O devices are to be connected to CPU There is a vast variety of I/O devices. Some.
بسم الله الرحمن الرحيم 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.
Input / Output Chapter 9.
Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir. A.C. Verschueren Eindhoven University of Technology Section of Digital.
Input/Output and Communication
Chapter 10 Input/Output Organization
I/O Memory Interface Topics:
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Chapter 13: I/O Systems.
Presentation transcript:

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

Figure 10.1

10.1 Asynchronous data transfer Synchronous data transfer –It usually occur when peripherals are located within the same computers as the CPU. –It shares a common clock. –Data does not have to travel very far physically. Asynchronous data transfer –It is used when synchronous transfers are not viable. –It uses control signals and their associated hardware to coordinate the movement of data. –A common clock is not needed.

10.1 Asynchronous data transfer (continued) Types of asynchronous data transfer –Source-initiated data transfer –Destination-initiated data transfer –Handshaking –Destination-initiated data transfer with handshaking

Source-initiated data transfer The source outputs its data, then strobes a control signal for a set amount of time. The destination device reads in the data during this time. Example: Figure 10.2

Figure 10.2

Destination-initiated data transfer The destination device initiates data transfer The destination device transmits a data strobe signal to the source device and after a set delay, the destination device reads in this data and desserts the data strobe. Example: Figure 10.3

Figure 10.3

Source-initiated data transfer with handshaking It is useful when the time of data transfer between the destination device and the source device. It uses an additional control signal, data acknowledge signal. Figure 10.4

Destination-initiated data transfer with handshaking It is useful when the time of data transfer between the destination device and the source device. It uses an additional control signal, data- ready signal. Figure 10.5

10.2 Programmed I/O Programmed I/O –A program instruction causes CPU to input or output data. Input port –It makes data available to the CPU when the CPU would read the data from the data bus.

10.2 Programmed I/O(continued) Thermostat control example –Read temperature(T) from external sensor. –If (T  thermostat setting+2  ) turn on air conditioner –If (T  thermostat setting and air conditioner is on) turn off air conditioner –If (T  thermostat setting-2  ) turn on heater –If (T  thermostat setting and air heater is on) turn off heater. –Go to start of sequence

10.2 Programmed I/O(continued) Thermostat controller (program in Figure 10.7) –Memory mapped I/O 0FFFFH: input port (Figure 10.6) 0FFFEH: thermostat setting 0FFFDH: output port 01 = turn on air conditioning 02 = turn off air conditioning 03 = turn on heat 04=turn off heat 1000H: current status 00 = heat and air conditioning are both off FF = heat onFE=air conditioning off

Figure 10.6

Figure 10.7

10.2 Programmed I/O(continued) Isolated I/O instructions (Table 10.1) –INPT –OTPT Control Signal –IO/M’

10.2 Programmed I/O(continued) RTL of INPT instruction –INPT1: DR  M, PC  PC+1, AR  AR+1 –INPT2: TR  DR, DR  M, PC  PC+1 –INPT3: AR  DR,TR –INPT4: DR  input port –INPT5: AC  DR Figure 10.8 –States to implement the INPT execute routine Figure 10.9 –Hardware to generate the state signals for the INPT execute routine

Figure 10.8

Figure 10.9

10.3 Interrupts Interrupt –A mechanism for alleviating the delay for I/O. Polling (Refer to Figure 10.10) –The CPU sends a request to an I/O device. –The I/O device processes the request and sets a device- ready signal when it is ready. –The CPU reads in this signal via another I/O address and checks the value. –If the signal is set, it performs the data transfer. If not, it loops back.

10.3 Interrupts(continued) Polling is relatively straightforward in design and programming. But a slow device causes the CPU to remain in the polling loop. –To make use of this wasteful CPU time, interrupts were developed. Interrupt request signal Interrupt acknowledge signal

10.3 Interrupts(continued) Types of interrupt –External interrupts –Internal interrupts –Software interrupts

10.3 Interrupts(continued) Processing interrupt: by interrupt handler –Do nothing until the current instruction has been executed –Get the address of the handler routine(vector interrupts) –Invoke the handler routine

Figure 10.10

10.3 Interrupts(continued) Interrupt hardware and priority A non-vectored interrupt for a single device :Figure A vectored interrupt for a single device :Figure 10.12

Figure 10.11

Figure 10.12

Multiple Devices Non-vectored interrupts : Figure Vectored interrupts –Daisy chaining (Figure 10.14) –Parallel priority(Figure 10.15)

Figure 10.13

Figure 10.14

Figure 10.15

10.4 DMA(Direct Memory Access) DMA controller (Figure 10.17) –Bus request –Bus grant Internal configuration of DMA controller (Figure 10.18) –DMA address register –DMA data register –DMA counter –DMA control register –DMA status register

10.4 DMA(continued) DMA transfer mode –Block transfer mode(burst mode) –Cycle stealing –Transparent mode

Figure 10.17

Figure 10.18

I/O Processors I/O processor (Figure 10.21) –I/O processors are sometimes called as I/O controllers, channel controllers, or peripheral processing units(PPUs) –I/O commands Block transfer commands Control commands Arithmetic, logic, and branch operations

Figure 10.21

10.6 Serial Communication Serial communication basic –bps or baud rate –A sample transmission (Figure 10.22) –A synchronous transmission (HDLC): Figure 10.23

Figure 10.22

Figure 10.23

UART A computer system incorporatinf with a UART: Figure Internal configuration : Figure 10.25

Figure 10.24

Figure 10.25

10.7 Real World Example RS-232-C standard USB standard –USB packet formats (Figure 10.26)

Figure 10.26