Computer Architectur by FM Sir
Computer Architectur by FM Sir
Bus:
It is a common path way connecting two or more devices.
It is a shared transmission medium.
Width of Bus:
Width of Bus means at a time how many amount of data (bit) can be transferred.
Disadvantage:
Costly
Implementation is very difficult
System Bus:
Bus Arbitration:
The process of selecting bus master. That means select the device which can transmit
data on the bus right now.
Only one bus master at a time.
Several devices may complete for the control of the bus but one gets the control.
Disadvantage:
Starvation problem (bored for waiting)
Propagation delay
The entire system fails if the higher priority device fails.
Distributed Arbitration:
Distributed Arbitration means that all devices waiting to use the bus that have equal
responsibility in carrying out the arbitration process, without using a central arbiter.
Each device on the bus is assigned a 4-bit identification number.
´
When one or more devices request the bus, they assert the Start− Arbitration signal
´ 0 through ARB
and place their 4-bit ID numbers on their open collector lines, ARB ´ 3.
Fig: Distributed Arbitration
Advantages:
Higher reliability due to the operation of the bus is not dependent on any single
device.
PCI Bus:
PCI means Peripheral Component Interaction.
It has high bandwidth & it is very popular.
It is an independent bus that can function as a peripheral bus.
It requires very few chips to implement & supports other busses connected to
it.
It used centralized arbitration scheme.
It can be used in both signal Processor (desktop system) & multiprocessor
(server system) system.
Fig: PCI Bus in Desktop System.
PnP:
Solution:
PnP automates several key tasks that were typically done either manually or with an
installation utility provided by the hardware manufacturer. These tasks include the setting of:
Interrupt Request (IRQ):
H/W interrupts to get the automation of CPU.
Direct memory access (DMA):
The device is configured to access the system memory without
consulting the CPU first.
Memory addresses:
Many devices are assigned a section of system memory for exclusive
use by that device. This ensures that the hardware will have the needed
resources to operate properly.
Input / Output (I/O) configuration:
This setting defines the ports used by the device for receiving and
sending information.
Q. What will be happen if a new PCI based sound card is added to a PC?
Solution:
If a new PCI based sound card is added to a PC, then it performs some tasks. Those
tasks are given below:
Address Numbers:
Address Numbers refers to the number of address in an instruction.
Types of address number:
There three types of address numbers.
1. One address number
2. Two address number
3. Three address number
Solution:
Instructions Comments
Instructions Comments
Instructions Comments
LOAD E AC ← E
MPY D AC ← AC∗D← E∗D
ADD C AC ← AC +C ← E∗D+ C
STORE Y Y ← AC
LOAD A AC ← A
SUB B AC ← AC−B ← A−B
DIV Y AC ← AC /Y
STORE Y Y ← AC
Instructions
LOAD A
SUB B
STORE A
LOAD E
MPY D
ADD C
STORE C
LOAD A
DIV C
STORE Y
Pipelining:
It is a process in which several storages of the CPU are used to execute more than one
instruction concurrently.
It is an effective way of organizing concurrently activity in any system.
A pipelined processor may process each instruction in four steps:
Example:
Fig: Pipelining
Normally for I 1 ¿ I 4 instruction needs 4 × 4=16 clock cycle. But with the use
of pipeline it is done with 7 clock cycle.
Super Pipelining:
Example:
Supper Scalar:
Q. Consider that, four instructions to execute I 1 , I 2 , I 3 , I 4 and each has 4 steps (F, D,
E, W). Each part/steps take 2 clock cycles to execute. Compare the performance of (i)
Pipelining (ii) Super pipelining & (iii) Scalar pipelining.
Solution:
Using Pipelining:
Fig: Pipelining
In the above discussion, we see that, Pipelining needs 14 clock cycles, super
pipelining needs 11 clock cycles but Super Scalar needs only 10 clock cycles.
Data dependency:
I 1 : ADD R 1 , R2
I 2 :÷R3 , R 1
In this case, ¿ of I 2 instruction depend on the I 1results of R1.
Procedure dependency:
Resource conflict:
The degree to which the instruction of a program can be executed parallels is called
instruction level parallelism.
Fig: 4th degree
Effect of branch on pipelining:
Branch Condition:
Branch Penalty:
F & D steps block the buffer until solve of the branch condition, in this situation we
need some time to free this buffer. This time is called branch penalty.
Multiprocessor System:
Solution:
RISC:
RISC means “Reduced instruction Set Computer”.
It has large number of general purpose register (32).
Limited & simple instruction set (24).
Optimized instruction pipelining.
Example:
LOAD A , [ address ]
LOAD B, [address]
MPY A, B
STORE [address], A
Advantage:
Disadvantages:
Needed more instruction than CISC to perform the same task. So, it is less effective
than CISC.
CISC:
Example:
Disadvantage:
Solution:
SISD:
Example: Uniprocessor.
SIMD:
MISD:
MIMD:
ROM:
Advantages:
Disadvantages:
Advantage:
Disadvantage:
EPROM:
Advantages:
Easy to program.
Rewritten many times.
Disadvantages:
EEPROM:
Advantages:
Disadvantage:
Flash Memory:
A flash cell is based on a single transistor controlled by trapped charge, just like an
EEPROM cell.
There are some differences between flash and EEPROM. In EEPROM it is possible
to read and write the contents of a single cell. In a flash device it is possible to read
the contents of a single cell, but it is only possible to write an entire block of cells.
Prior to writing, the previous contents of the block are erased.
Advantages:
Flash devices have greater density, which leads to higher capacity and a lower
cost per bit.
They require a single power supply voltage and consume less power in their
operation.
Q. What are the differences between RAM & ROM?
Solution:
Both RAM & ROM provide the user random access to stored data.
RAM provide only short term memory since data stored in RAM is lost when power
is turned off, but ROM provide long term storage since data is permanently store
here.
RAM’s data frequently & speedy be altered & changed, but ROM can not be
reconfigured.