Docsity

input output asjdh asd, Thesis of Microcomputers

Partial preview of the text

Download input output asjdh asd and more Thesis Microcomputers in PDF only on Docsity!

I/O Modules

Programmed I/O

Interrupt-Driven I/O

DMA (Direct Memory Access) I/O Channels and Processors. The External Interface: FireWire and InfiniBand

Input/output Module

 (^) External devices are not generally connected directly into the bus structure of the computer.  (^) I/O module is an interface for the external devices (peripherals) to CPU and Memory System Bus  (^) A system bus is a single computer bus that connects the major components of a computer system

Programmed I/O

 (^) Programmed I/O (PIO) refers to data transfers initiated by a CPU under driver software control to access registers or memory on a device.  (^) The CPU issues a command then waits for I/O operations to be complete  (^) As CPU is faster than the I/O module,  (^) Problem with programmed I/O: CPU has to wait a long time for the I/O module to become ready for either receiving or transmission of data.  (^) The CPU, while waiting, must frequently check the status of the I/O module, and this process is known as Polling  (^) As a result, the performance of the entire system is

Programmed I/O

 (^) Programmed I/O basically works as follows:  (^) CPU requests I/O operation  (^) I/O module performs operation  (^) I/O module sets status bits  (^) CPU checks status bits periodically  (^) I/O module does not inform CPU directly  (^) I/O module does not interrupt CPU  (^) CPU may wait or come back later

Interrupt

 (^) Memory-mapped and DMA-capable devices usually generate interrupts to tell the system that they are done with the buffer.  (^) Memory-mapped I/O : when an address is accessed by the CPU, it may refer to a portion of physical RAM, or it can instead refer to memory of the I/O device  (^) Thus, the CPU instructions used to access the memory can also be used for accessing devices.  (^) Although Interrupt relieves the CPU of having to wait for the devices,  (^) But it is still inefficient in data transfer of large amount because the CPU has to transfer the data

Interrupt

 (^) Below are the basic operations of Interrupt:  (^) CPU issues read command  (^) I/O module gets data from peripheral whilst CPU does other work  (^) I/O module interrupts CPU  (^) CPU requests data  (^) I/O module transfers data

Direct Memory Access (DMA)

 (^) Direct Memory Access needs a special hardware called DMA controller (DMAC) that manages the data transfers and arbitrates access to the system bus  (^) The controllers are programmed with source and destination pointers (where to read/write the data),  (^) Counters to track the number of transferred bytes, and settings, which includes I/O and memory types, interrupts and states for the CPU cycles.

Direct Memory Access (DMA)

 (^) DMA increases system concurrency by allowing the CPU to perform tasks while the DMA system transfers data via the system and memory busses  (^) Hardware design is complicated because the DMA controller must be integrated into the system, and the system must allow the DMA controller to be a bus master.  (^) Cycle stealing may also be necessary to allow the CPU and DMA controller to share use of the memory bus.

I/O Processors (IOP)

 (^) An input-output processor is a processor with direct memory access capability  (^) Computer system is divided into a memory unit and number of processors.  (^) Each IOP controls and manage the input-output tasks  (^) The IOP is similar to CPU except that it handles only the details of I/O processing  (^) The IOP can fetch and execute its own instructions  (^) These IOP instructions are designed to manage I/O transfers only.  (^) A more advanced I/O processor may also have built in memory, allowing it to perform actions and

Block Diagram Of IOP

InfiniBand (IB)

 (^) InfiniBand is a computer-networking communications standard used in high-performance computing that features very high throughput and very low latency.  (^) It is used for data interconnect both among and within computers  (^) InfiniBand is also used as either a direct or switched interconnect between servers and storage systems