hardware i/o organization

21
I Begin With The Name Of Allah

Upload: fariakhan

Post on 18-Dec-2014

94 views

Category:

Education


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Hardware  I/O organization

I Begin With The Name Of Allah

Page 2: Hardware  I/O organization

HARDWARE I/O ORGANIZATION

Chapter 10I/O Device Management

Page 3: Hardware  I/O organization

What is Hardware?

The physical components of computers.

We can touch and see the hardware.

Monitor,Mouse,Keyboard,hard drive etc are the hardware devices.

Page 4: Hardware  I/O organization

Stands for Input/output devices

Input:

The instruction given to the computer. A hardware component is used to enter data in computer such as keyboard etc

Output:

A hardware component used to display information to the user such as printer etc

What are I/O Devices?

Page 5: Hardware  I/O organization

SINGLE-BUS ARCHITECTURE

It is used by simplest Computers.

Can process one instruction at a time.

all units are connected in the same bus.

Only two devices can communicate with each other at one time.

Protocol is required to control the communication.

Time is broken in to clock cycle.

A special device decides which device will communicate in the next class called Bus Arbitor.

Page 6: Hardware  I/O organization

Input Output Memory Processor

Single-Bus Architecture

Page 7: Hardware  I/O organization

Advantages or Disadvantages

Advantages or Disadvantages

Advantages

Simplicity

Low cost

Disadvantages

Limited speed

The bus can became a major bottleneck.

Page 8: Hardware  I/O organization

Multiple-Buses Architecture

Can Process two instructions at a time.

Parallelism

• multiple communications are possible at the same time with multiple buses.

• For example CPU can communicate with port or disk wants to communicate with memory on another bus.

Page 9: Hardware  I/O organization

Performance Tuning

Peripheral Component Interconnect bus is used to connect devices

Special memory bus is used for optimized communication between CPU & memory.

Industry Standard Architecture bus is connected to PCI to provide backward capability for older ISA devices.

Page 10: Hardware  I/O organization

I/O Control

In the simple I/O Control Model, CPU communicates with I/O devices Directly.

CPU controls all details of device operation.

This communication used in specialized, Microprocessor-controlled, embedded system.

In pc model, CPU communicates with a device controller.

Each I/O controller is designed to handle a particular kind of device.

Page 11: Hardware  I/O organization

I/O channel

I/O control unit

Execute channel programs

Programs loaded in memory or

channels memory

Page 12: Hardware  I/O organization

Ports and Memory-Mapped I/O

1)Port I/O

2)memory-mapped I/O

Port I/O

Limited numbers of instructions provide I/O capability in it.

One instruction operands is an I/O port number.

Memory Mapped I/O

Any instruction that access memory can access an I/O module.

A part of memory Space is allocated to I/O modules.

Page 13: Hardware  I/O organization

Module Registers

Different modules have different types of numbers and registers.

A simple module for input device may have only two registers ,one for data and one for control information.

The data register stores the value.

Control registers contains bits to command module.

Page 14: Hardware  I/O organization

Busy Wait I/O

It is a protocol for communication between I/O modules and CPU.

CPU issues a signal to I/O module to start I/O operation.

It is inefficient because processes can make no headway while CPU waits for the completion of I/O operation.

Page 15: Hardware  I/O organization

POLLED I/O

CPU continues to execute different processes in the system after starting operation in it.

Polling is more efficient.

CPU checks for the completion of I/O operation after brief intervals.

The disadvantage is that the processes are interrupted when CPU checks for the completion of I/O operation.

Page 16: Hardware  I/O organization

Interrupt I/O

An interrupt can be sent to CPU when I/O operation is completed.

In this way CPU, continues to executes until it gets interrupt from I/O module.

It provides parallelism but adds complexity in the code.

Page 17: Hardware  I/O organization

Direct Memory Access (DMA)

• DMA is a technique that is used to send data directly from a device to the memory.

• CPU is not involved in this transformation that results in speeding up the overall computer operation.

• a specified portion of memory is designed for DMA.

• DMA is required when a large amount of data is moved

Page 18: Hardware  I/O organization

CPU I/O Memory DMA

CPU issues a command to DMA module when it requires to read or write a block of data .It sends the following information to DMA module1. Types of operation required such as read or write 2. The address I/O device involved3. The starting location in memory to read from or

write to.4. The numbers of words to be written or read .

Page 19: Hardware  I/O organization

Working

• The CPU then continues with other work.

• It has delegated I/O operation to the DMA module .

• DMA module will then transfer the entire block of data one word at a time directly to or from memory without going through CPU.

• DMA module sends an interrupt signal to CPU when the transfer is complete.

• CPU is only involved at the beginning and at the end of data transfer.

• DMA works while CPU is idle and is not using the system bus,.

• It is called cycle stealing.

Page 20: Hardware  I/O organization

Faria Shakoor

Presented by

Page 21: Hardware  I/O organization