Top Banner
Presented By Chandra Shekar Reddy.Y 11/5/2008 1 Computer Architecture & Design
12

Presented By Chandra Shekar Reddy.Y 11/5/20081Computer Architecture & Design.

Dec 22, 2015

Download

Documents

Barnaby Kennedy
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Presented By Chandra Shekar Reddy.Y 11/5/20081Computer Architecture & Design.

Presented ByChandra Shekar Reddy.Y

11/5/2008 1Computer Architecture & Design

Page 2: Presented By Chandra Shekar Reddy.Y 11/5/20081Computer Architecture & Design.

IntroductionI/O systems generally place greater

emphasis on dependability & cost.

I/O systems must also plan for expandability

and diversity of devices.

Performance plays a small role for I/O

systems.

11/5/2008 2Computer Architecture & Design

Page 3: Presented By Chandra Shekar Reddy.Y 11/5/20081Computer Architecture & Design.

Diversity of I/O systemsThree characteristics are useful in organizing

the wide variety of I/O systems.Behavior : Input (read once), Output (write

only) or storage Partner : Either Human or a machine at the

end of the I/O device.Data rate : The peak rate at which the data

can be transferred between the i/o devices and main memeory or processor.

Ex : A key board, i/p device used by a human with data rate about 10 bytes per second.

11/5/2008 3Computer Architecture & Design

Page 4: Presented By Chandra Shekar Reddy.Y 11/5/20081Computer Architecture & Design.

A typical collection of I/O devices

11/5/2008 4Computer Architecture & Design

Page 5: Presented By Chandra Shekar Reddy.Y 11/5/20081Computer Architecture & Design.

Typical I/O devices

11/5/2008 5Computer Architecture & Design

Page 6: Presented By Chandra Shekar Reddy.Y 11/5/20081Computer Architecture & Design.

Interfacing I/O devices to processor memory and operating systemsGiving Commands to i/o devicesBasically two techniques are used to address the

devices.

1.Memory-mapped I/O : An i/o scheme in which portions of address space are assigned to i/o devices.

Ex : Simple printer has 2 i/o device registers.

a.Status register : It contains done bit and error bit.

b.Data register : The data to be printed is put into this register.

11/5/2008 6Computer Architecture & Design

Page 7: Presented By Chandra Shekar Reddy.Y 11/5/20081Computer Architecture & Design.

2. Alternative method is to use dedicated i/o

instructions in the processor.

These specify both the device no. and command

word.

The processor communicates via a set of wires

normally included as a part of i/o bus.

Commands can be transmitted over data lines in

the bus.

Ex : Intel IA32, IBM 370.

11/5/2008 7Computer Architecture & Design

Page 8: Presented By Chandra Shekar Reddy.Y 11/5/20081Computer Architecture & Design.

Communicating with the processor.

Polling : The process of periodically checking the status

of the i/o devices to determine the need to service the

devices.

Disadvantage : Waste of processor time.

Interrupt Driven i/o Systems : It employs i/o interrupts to

indicate the processor that an i/o device needs attention.

A system can use either vector interrupts or an

exception cause register.

11/5/2008 8Computer Architecture & Design

Page 9: Presented By Chandra Shekar Reddy.Y 11/5/20081Computer Architecture & Design.

The status register determines who can interrupt the computer.

A more refined blocking of interrupts is available in the interrupt mask field.

There is a bit in the mask corresponding each bit in the pending interrupt field of cause register.

11/5/2008 9Computer Architecture & Design

Page 10: Presented By Chandra Shekar Reddy.Y 11/5/20081Computer Architecture & Design.

Transferring the data between a device and memory Polling and i/o interrupts are the basic

methods for implementing data transfer.

Direct Memory Access : A mechanism that

provides a driver controller the ability to

transfer the data directly to or from memory

with out involving the processor.

11/5/2008 10Computer Architecture & Design

Page 11: Presented By Chandra Shekar Reddy.Y 11/5/20081Computer Architecture & Design.

ConclusionI/O systems are evaluated on several different

characteristics : Dependability ,variety of i/o

devices supported , cost .

These goals lead to widely varying schemes

for interfacing i/o devices.

11/5/2008 11Computer Architecture & Design

Page 12: Presented By Chandra Shekar Reddy.Y 11/5/20081Computer Architecture & Design.

References

Computer Organization & Design – David Patterson John L. Hennessy.

http://www.pcguide.comhttp://en.wikipedia.org/wikihttp://www.amigau.com/aig

11/5/2008 12Computer Architecture & Design