Professional Documents
Culture Documents
To form a working computer, individual components must be connected in an organized way. The
collection of path connecting components is called the interconnection structure. The design of
this structure is depends on the exchanges that must be made between modules.
When a word of data is transferred between modules, all its bits are transferred in parallel.
A group of wires that connects several devices is called a bus.
The simplest way to interconnect functional units of a computer is to use a single system
bus. System bus consists of:-
This bus is time shared. Only two units can communicate at any given instant.
Data Bus:- The data lines provide a path for moving data between system modules. These lines,
collectively are called the data bus. Data lines are bidirectional.
Address Bus:- Every device connected to bus has an address. A memory unit is given block of
addresses, depending on number of words in it. For example, if the CPU wishes t read a word of
data from memory, it puts the address of the desired word on the address lines. The address lines
are always unidirectional.
Control Bus:- Control lines are used to control the various units like memory and I/O, processor
uses control signals to control various modules. Control signals transmit both command and
timing information. Control signals specify operation to be performed. Typical control signals
include:- memory read & write, I/O read & write, bus request and bus grant.
The operation of the Bus:- if one module wishes to send data to other, it must do the following:
If a greater number of devices are connected to the bus, performance will suffer due to following
reasons:-
The principle use of the system bus is high-speed data transfer between the CPU and memory.
Most I/O devices are slower than memory and they are put on the local bus. These devices are
connected to the system bus via interface circuit called I/O controller.
There is a dedicated bus between all pairs of components that need to communicate. The general
case in which n units must be connected in possible ways need n*(n-1)/2 dedicated buses. There
will not be any delay due to busy connection. This system will be more reliable as a link failure
effects only two units connected to that link. These units may still be able to communicate via
other units. The main drawback of dedicated buses is their high cost.
The simplest measure of program performance is its turn around time, which includes:-
When two components try to get into communication, one initiating, the communication gets the
control of the bus and is known as master & other is known as slave. Master is responsible for
initiate & terminates the communication. Slave has to respond to each operation initiated by
master.
Bus Controller:-
A central arbitration scheme uses a bus controller. It decides about the processor to be granted
access of the bus among requesting processors. The bus controller may be separate module or can
be constructed as the part of the CPU. For example, I/O processor may need control of the bus for
transferring data to memory. Similarly CPU also needs the bus for various activities. Therefore,
the system buses have I/O processor and CPU that need control of bus for data transfer. This is up
to bus controller to resolve the simultaneous data transfer requests on the bus. Completing
requests must be arbitrated on the basis of fairness or priority.
Bus Arbitration:- The process of selecting a processor among requesting processors is known
as arbitration. A selection process must be based on fairness or priority bases. There are three
schemes:-
1) Daisy Chaining:- It is characterized by Bus Grant signal connected serially from master to
master. The process involves three control signals Bus Busy, Bus Request and Bus grant.
The bus controller responds to Bus request signal only if Bus Busy is inactive. Bus Busy
signal remains active during the period it is being used by any of the processors.
All processor are connected to the Bus request line. A Processor must
request by activating it. The bus controller responds to the bus request signal by placing
the Bus Grant signal on the bus grant line. This device then block further propagation of
signal, activates Bus Busy signal and starts using the bus.
When a non-requesting processor receives the Bus Grant signal, it forwards the signal to
next processor. Selection priority is determined by the proximity of the requesting
processor from the controller.
Advantages:-
Disadvantages:-
Priority can be changed by changing the sequence of the generation of addresses on the
poll count lines.
Failure of one master will not effect other.
Disadvantages:-
Register A
The control function specifies the control condition and timing sequence for executing the
listed micro-operations.
The micro operations specify the elementary operations to be performed on the
information stored in registers. These micro-operations can be classified into four
categories:-
a) Inter register Transfer:- Information moves from one register to other.
b) Arithmetic:- Performed on numbers stored in registers.
c) Logic:- AND, OR, NOT is performed on information stored in registers.
d) Shift:- Micro-operations specify operations for shift registers.
Bus Transfer:- A Bus consists of number of lines, each line carries 1 bit of data. A common bus
system is used to reduce the wiring density. Binary information can be transferred from one
register to another register using the bus. For parallel transfer, the number of lines in the bus is
equal to the number of bits in the register. A common bus system can be constructed using
multiplexers. Destination register can be selected by means of decoder.
Each memory transfer operation should specify the address of the memory (M) location and the
control signal R (Read) for reading or W (write) for writing.
Fig. 1.48
Address of memory location can be stored in MAR (memory address register). Buffer register
MBR (memory buffer register) can be used to transfer data into and out of memory.
The read operation transfers a data from the selected memory location into MBR. Read operation
can be written as:
R: MBR M[MAR]
Control function R initiates the read operation. This causes a transfer of information into MBR
from the selected memory location of M specified by the address in MAR. Write operation can be
written as :
W: M[MAR} MBR
Control function W initiates the write operation. This causes a transfer of information from MBR
into the memory location specified by the address in MAR