Professional Documents
Culture Documents
KCS 302
By
SHIVANI AGARWAL
Department of Computer Science & Engineering
IMS Engineering College, Ghaziabad
BUS
A bus is a communication pathway connecting two or more devices.
A key characteristic of a bus is that it is a shared transmission
medium.
a b c
Multiple devices connect to the bus, and a signal transmitted by any
one device is available for reception by all other devices attached to
the bus. so that create garble(destroyed),so for that solution we use
arbitration.
A bus is a subsystem that is used to connect computer components
and transfer data between them. For example, an internal bus
connects computer internals to the motherboard.
A bus may be parallel or serial. Parallel buses transmit data across
multiple wires. Serial buses transmit data in bit-serial format.
Data is transmitted from one part of a computer to another,
connecting all major internal components to the CPU and memory,
by the means of Buses.
Types of Buses
Data Bus: It carries data among the memory unit, the I/O devices, and the
processor. the number of lines in data bus is known as width of data bus for ex :-
16,32,64 that means 16 bits data transfer at a time. each line carries one bit at a
time parallel.
Address Bus: It carries the address of data (not the actual data) between
memory and processor. The address lines are used to designate the source or
destination of the data on the data bus.
For example, on an 8-bit address bus, address 01111111 and below might
reference locations in a memory module (module 0) with 128 words of memory,
• For example:- 23 = 8 i.e. 3 address line is required to select 8 location, In general
2x = n
The operation of the bus is as follows. If one module wishes to send data to
another, it must do two things:
(1) obtain the use of the bus, and (2) transfer data via the bus.
If one module wishes to request data from another module, it must (1) obtain the
use of the bus, and (2) transfer a request to the other module over the
appropriate control and address lines. It must then wait for that second module
to send the data.
Basic bus types
1. Dedicated – assigned to a single function (e.g. address bus)
or a physical subset of components (e.g. I/O bus connects all
I/O modules).
1.1 Functional dedication:- means a separate bus for each
different function. For example transferring data in to another
bus, address in to another and control is also an another bus.
1.2 Physical Dedication:-Use of separate buses connecting
different system components that means each component
needs different buses .(for example:- address needs by two
components so both needs different address buses.)
Advantage of dedicated bus:- High Throughput, less waiting
time.
Disadvantage of dedicated bus:- High cost(larger bus circuitry)
Basic bus types
Multiplexed:- a common bus can be used for both
addresses and data for transmission.
In this case, an address valid control line(that means first
we validate the address then data) is needed to determine
whether the data is an address or data. Time multiplexing
is using the same lines for multiple purposes.
Example if we have three devices A,B,C those are
connected with common bus system and buses have
address signal activate then devices find out which device
address received ,when address validates then it
deactivates and data bus activate on this common bus
system.
Advantage:- due to few lines (less cost and space)
Disadvantage:- high complex circuitry.
Bus & Memory Transfer
A conventional digital computer system has many
registers and many number of wires used to transfer
information from one register to another.
The number of wires will be accessible if separate lines
are used. so to solve this problem defined a efficient
scheme known as common bus system.
A bus structure consist of common lines 1 for each bit of
a register, through which binary information is transferred
one at a time.
There are two ways of common bus system:-
1) Multiplexer 2) Decoder
Multiplexer
Consider an integer ‘m’, which is
constrained by the following relation:
m = 2n ,
where m and n are both integers.
A m-to-1 Multiplexer has
m Inputs: I0, I1, I2, ................ I(m-1)
one Output: Y
n Control inputs: S0, S1, S2, ...... S(n-1)
One (or more) Enable input(s)
2n * 1
2n MUX
Y
E-enable input
Example: A 4-to-1 Multiplexer
A 4-to-1 Multiplexer:
I0
22 inputs I1 Y
I2
1 output
I3
Enable (G) S0 S1
n control inputs
Characteristic Table of a Multiplexer
If the MUX is enabled,
s0 s1
0 0 Y I0
0 1 Y I1
1 0 Y I2
1 1 Y I3
Shift operations:-
1. Logical Shift left
2. Logical shift right
3. Arithmetic shift left
4. Arithmetic shift right
5. Rotate left
6. Rotate right
7. Rotate left with carry
8. Rotate right with carry
Program Control Instructions
When CPU process the data from consecutive memory
locations so each time one instruction is fetched from
memory and the program counter is incremented.
It has two types of instructions:-
1) Unconditional
2) Conditional
Unconditional:- An unconditional branch instruction
means control proceeds the next instruction in
sequence.
Conditional:- A conditional branch instruction means
control proceeds the next instruction when the
condition met .
Program Control Instructions
JUMP
SKIP
BRANCH
CALL
RETURN
COMPARE
VON NEUMANN
ARCHITECHURE
Von Neumann architecture was first published by
John von Neumann in 1945. Von Neumann
architecture is based on the stored-program computer
concept, where instruction data and program data are
stored in the same memory.
VON NEUMANN
ARCHITECHURE
MAIN MEMORY
Program
Data
or
A=10;
instructio
B=5
n
C=A+B
VON NEUMANN
ARCHITECHURE
Central processing Unit:- These have many components:-
1) ALU:- perform logical operations, speed is very fast
2) Registers:- it is a set of flip-flop, it has very small in
size but speed is very high so that it's as temporary
storing memory, that is used to store intermediate results.
There are many registers:-
Types of Registers
Accumulator: Stores the results of calculations made by ALU.
Program Counter (PC): A program counter is one of the register used in
computer architecture and OS. It holds the address of next instruction to be
executed. After instruction is executed, it will incremented by one,(PC =PC
+1) moreover program counter will be point to the next instruction. The
PC then passes this next address to Memory Address Register (MAR).
Memory Address Register (MAR): It stores the memory locations of
instructions that need to be fetched from memory or stored into memory.
Memory Data Register (MDR): The Memory Buffer Register stores
information that is being sent to, or received from, the memory along the
bidirectional data bus.
Current Instruction Register (CIR): It stores the most recently fetched
instructions while it is waiting to be coded and executed.
Instruction Buffer Register (IBR): The instruction that is not to be
executed immediately is placed in the instruction buffer register IBR.