Chapter 11
Chapter 11
COA
Peripheral
• I/O devices attached to the computer are called peripheral.
• Common peripheral are:
keyboards, display unit, printers.
• That provides auxiliary storage are:
Magnetic disk and tapes
• They are electromechanical and electromagnetic device of some complexity.
Input-Output Interface
• Method for transferring information between internal storage and
external I/O device.
• For doing communication between CPU and peripheral
communication link is required to resolve the difference between
central computer and peripherals.
• Major difference are:
I/O BUS and Interface Modules
• To resolve the above issue interface unit is used.
• I/O bus consist of data line, address line and control line.
• Interface unit synchronize the data flow and supervise the transfer
between processor and peripheral.
• Each peripheral have their own controller.
• I/O bus connect processor to each interface.
• Four types of command interface may
received:
1.Control
2. Status,
3. Data Input and
4. Data Output
I/O vs Memory Bus
• Processor communicate with memory unit
• Memory bus contains: data, address, read/write control line.
• Three ways to use the computer bus to communicate with memory and I/O:
Isolated versus Memory mapped I/o
• Isolated I/O method: Configuration used to isolate all I/O interface addresses
from the addresses assigned to memory.
Separate set of read and write signal is used
• Memory- mapped: Used one set of read and write signals and do not
distinguish between memory and I/O addresses.
single set of read and write signal is used.
Asynchronous Data Transfer
• If CPU register and Interface register share a common clock then transfer
between the two unit is said to be synchronous.
• If each unit use its own private clock for internal register and it is independent
to each other then it is known as asynchronous data transfer.
• Data transfer between two unit is done with the help of control signal.
Following are the ways of doing asynchronous Data transfer.
• Strobe : Strobe pulse supply by one unit is used to indicate other unit when the
transfer has to occur.
• Handshaking: Data transfer accompany by control signal indicating presence of
data in the bus. After receiving data unit send another control signal as an
acknowledgement of received signal.
Strobe signal:
1. Source unit place the data on bus. 1. Destination unit activate the strobe pulse.
2. After setting down of data, activate the strobe signal. 2. DU inform the source unit to transfer the data.
3. Strobe signal inform the availability of data to destination unit. 3. Source unit response by placing the data on bus
4. After transmission, source remove the data from the bus. 4. After transmission, DU disable the strobe pulse and
SU remove the data from the bus.
Hand shaking
• Solve the problem of strobe signal.
• Use two wire control.
• One control line in the direction of source unit used to inform destination unit the
availability of validate data in the bus.
• Second control unit in opposite direction use to inform source unit whether
destination unit accept data.
Hand shaking
• Source unit placed data on bus only after receiving ‘ready for data’ signal
from destination unit.
• After receiving the signal , source unit place the data on bus and also
enable data valid control signal.
• After acceptance of data , DU disable the ready for data signal and SU
disable Data valid signal.
• Disadvantages
1. As it is a hardware unit, it would cost to implement a DMA controller in
the system.
2. Cache coherence problem can occur while using DMA controller.