Professional Documents
Culture Documents
Part 2-UNIT V Input-Output Org
Part 2-UNIT V Input-Output Org
Single Bus
Processor Memory
Bus
The bus protocol determines when a device may place information on the bus,
when it may load the data on the bus into one of its registers, and so on.
One control line, usually labelled R/W, specifies whether a Read or a Write
operation is to be performed.
As the label suggests, it specifies Read when set to 1 and Write when set to 0.
The bus control lines also carry timing information.
In any data transfer operation, one device plays the role of a master.
This is the device that initiates data transfers by issuing Read or Write
commands on the bus. Normally, the processor acts as the master, but other
devices may also become masters as we will see in the device addressed by the
master is referred to as a slave.
Buses
Types of Buses:
• DMA controller requests the control of the bus by asserting the Bus
Request (BR) line.
• BBSY signal is 0, it indicates that the bus is busy. When BBSY becomes
1, the DMA controller which asserted BR can acquire control of the bus.
Distributed arbitration
All devices waiting to use the bus share the responsibility of
carrying out the arbitration process.
Arbitration process does not depend on a central arbiter and hence
distributed arbitration has higher reliability.
Each device is assigned a 4-bit ID number.
All the devices are connected using 5 lines, 4 arbitration lines to
transmit the ID, and one line for the Start-Arbitration signal.
To request the bus a device:
Asserts the Start-Arbitration signal.
Places its 4-bit ID number on the arbitration lines.
The pattern that appears on the arbitration lines is the logical-OR of
all the 4-bit device IDs placed on the arbitration lines.
Advantages of asynchronous bus:
Eliminates the need for synchronization between the sender and the
receiver.
Can accommodate varying delays automatically, using the Slave-
ready signal.
Disadvantages of asynchronous bus:
Data transfer rate with full handshake is limited by two-round trip
delays.
Data transfers using a synchronous bus involves only one round
trip delay, and hence a synchronous bus can achieve faster rates.
Interface circuits
I/O interface consists of the circuitry required to connect an I/O device to
a computer bus.
Side of the interface which connects to the computer has bus signals for:
Address,
Data
Control
Side of the interface which connects to the I/O device has:
Datapath and associated controls to transfer data between the interface
and the I/O device.
This side is called as a “port”.
Ports can be classified into two:
Parallel port
Serial port
18
Interface circuits
Parallel port transfers data in the form of a number of bits, normally 8 or 16 to or from the device.
Processor communicates with the bus in the same way, whether it is a parallel port or a serial port.
Conversion from the parallel to serial and vice versa takes place inside the interface circuit.
Parallel port uses a multiple pin connector between the device and the processor, and a cable with as
many wires as the number of bits transferred simultaneously.
Serial port uses a single pin connector to between the device and the processor:
19
Parallel port
Data
Address
D A T AIN
Data
Encoder
R / W and K e yboard
Processor SIN
debouncing switches
•Processor is 32-bits and uses memory-mapped I/O and the asynchronous bus protocol.
Data
Address
D AT AIN Data
Encoder
R / W and K e yboard
Processor SIN
debouncing switches
Master -ready circuit
V alid
Input
Sla v e-ready
interf ace
Address Data
D A T A OUT
R / W SOUT
Processor
CPU V alid Printer
Master -ready
Output Idle
Sla v e-ready interf ace
Address Data
D A TA OUT
R / W SOUT
Processor
CPU V alid Printer
Master -ready
Output Idle
Sla v e-ready interf ace
data lines.
Serial port
Serial port is used to connect the processor to I/O devices that
require transmission of data one bit at a time.
Motherboard usually provides another bus that can support more devices.
Processor bus and the other bus (called as expansion bus) are
interconnected by a circuit called “bridge”.
28
Standard I/O interfaces (contd..)
Main
Processor
memory
Bridge circuit translates
signals and protocols from
Processor b us processor bus to PCI bus.
Bridge
PCI b us
Expansion bus on
the motherboard
Additional SCSI Ethernet USB ISA
memory controller interf ace controller interf ace
SCSI b us
IDE
disk
V ideo
Disk CD-R OM
controller controller
CD-
Disk 1 Disk 2 R OM K e yboard Game
29
A number of standards have been developed for the
expansion bus.
These expansion boards are normally plugged into expansion slots on the
motherboard.
The PCI cards get installed into PCI expansion slots which are generally on your
motherboard.
SCSI [Small Computer System Interface]
In this, the computer system is divided into a memory unit and number of
processors.
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.
Block Diagram Of I/O Processor
Block Diagram Of I/O Processor
The memory unit occupies the central position and can communicate with each
processor.
The CPU processes the data required for solving the computational tasks. The IOP
provides a path for transfer of data between peripherals and memory. The CPU
assigns the task of initiating the I/O program.
The IOP operates independent from CPU and transfer data between peripherals
and memory.
The communication between the IOP and the devices is similar to the program control method
of transfer. And the communication with the memory is similar to the direct memory access
method.
In large scale computers, each processor is independent of other processors and any processor
can initiate the operation.
The CPU can act as master and the IOP act as slave processor. The CPU assigns the task of
initiating operations but it is the IOP, who executes the instructions, and not the CPU. CPU
instructions provide operations to start an I/O transfer. The IOP asks for CPU through
interrupt.
Instructions that are read from memory by an IOP are also called commands to distinguish them
from instructions that are read by CPU. Commands are prepared by programmers and are
stored in memory. Command words make the program for IOP. CPU informs the IOP where
to find the commands in memory.
Thank You…