L-7 (InputOutput)
L-7 (InputOutput)
Computer Architecture
• DMA
• I/O Channel
• Infini Band
External Devices : Types
• Human readable
– Screen, printer, keyboard
• Machine readable
– HDD
• Communication
– Modem
– Network Interface Card (NIC)
Classification : I/O Devices
• Block devices
– Information is stored in fixed size blocks
– Block sizes range from 128-1024 bytes
– I/O is done by reading/writing blocks
– Hard disks, floppies, CD ROMS, tapes are in this
category
• Character devices
– I/O is done as characters (ie., stream of bits)
– Terminals, printers, mouse, joysticks are in this
category
IO Interface
• I/O devices can not directly communicate with the CPU
due to various differences between them.
• Major issues :-
– Wide variety of peripherals
• Different data formats
• Different control logics
– Differs in speed with CPU / RAM
– Un-necessary to build all the different control logics
into a Processor, thus complicating it.
• Therefore there is a need for I/O modules
• IO interface provides a method for transferring
information between Processor , Memory and external
I/O devices.
I/O Module Function
• Provide interfaces for communication between the
CPU / Memory and I/O devices:-
– Internal : Processor and Memory
– External : I/O devices
• Control & Timing
– Generate address for each I/O device.
– Synchronize timing for I/O op.
– Contains logic specific to each device it controls.
• Data Buffering
• Error Detection
Memory control signals used to control I/O control signals are used to
Read & Write I/O operations control Read & Write I/O operations
Memory Instructions are used. Special Instructions are used like IN,
OUT.
Arithmetic and logic operations can be Arithmetic and logic operations can
performed on data. not be performed on data.
Processor involved I/O :
Between Memory and
External Devices
Input Output : Types
• I/O to Memory transfer through CPU :-
– Programmed I/O
– Interrupt driven I/O
The number of required bus cycles can be cut by integrating the DMA and I/O
functions.
In both of these cases (Figures7.13b and c), the system bus that the DMA
module shares with the processor and memory is used by the DMA module
only to exchange data with memory.
The exchange of data between the DMA and I/O modules takes place off the
system bus.
Alternative DMA Configurations
I/O Channel
The I/O channel represents an extension of the DMA concept. An
I/O channel has the ability to execute I/O instructions, which gives
it complete control over I/O operations. In a computer system with
such devices, the CPU does not execute I/O instructions.