Module#1
Module#1
Organization
&
Architecture
• Computer Architecture:
Computer Architecture is a functional
description of requirements and design
implementation for the various parts of
computer. It deals with functional
behavior of computer system. It comes
before the computer organization while
designing a computer.
• Architecture describes what the
computer does.
Distinction between computer
Architecture and Computer
Organization
Computer Organization:
• Computer Organization comes after
the decide of Computer Architecture
first. Computer Organization is how
operational attribute are linked
together and contribute to realize the
architectural specification. Computer
Organization deals with structural
relationship.
• Organization describes how it does it.
Historical Perspective
• Constant quest of building automatic computing machines have driven the
development of computers.
➢ Initial Efforts: Mechanical devices like pulleys, levers and gears.
➢ During World War II: Mechanical relays to carry out computations.
➢ Vacuum Tubes developed: First electronic computer like ENIAC.
➢ Semiconductor transistors developed and journey of miniaturization
began:
SSI-> MSI-> LSI-> VLSI-> ULSI->….billions of transistor per chip
Generations
Evolution of
Computer
Systems
Architecture describes what the
1. Organization describes how it does it.
computer does.
In above figure, its clear that it deals with In above figure, its also clear that it deals
3.
high-level design issue. with low-level design issue.
Where, Organization indicates its
• Differentiate between 4. Architecture indicates its hardware.
performance.
Computer
For designing a computer, its architecture For designing a computer, organization is
Architecture and 5.
is fixed first. decided after its architecture.
Computer
Computer Architecture is also called as Computer Organization is frequently
Organization 6.
instruction set architecture. called as micro architecture.
Computer Architecture comprises logical
Computer Organization consists of
functions such as instruction sets,
7. physical units like circuit designs,
registers, data types and addressing
peripherals and adders.
modes.
Architecture coordinates between the Computer Organization handles the
8.
hardware and software of the system. segments of the network in a system.
Moores Law
• Moore's Law refers to Moore's
perception that the number of
transistors on a microchip
doubles every two years, though
the cost of computers is halved.
Moore's Law states that we can
expect the speed and capability
of our computers to increase
every couple of years, and we will
pay less for them.
• Another tenet of Moore's Law
asserts that this growth is
exponential.
• All instruction and data are stored in memory.
Simplified Block • An instruction and data are brought into the
processor for execution.
Diagram of Computer • Input and output devices interface with the
outside world.
System • Referred to as Von Neumann Architecture.
• Also called the Central Processing Unit(CPU)
• Consists of a Control Unit and Arithmetic Logical Unit(ALU).
• All calculations happen inside the ALU.
Inside the • The Control Unit generates sequence of control signals to carry out all
operations.
Different • Read Only Memory(ROM) , which is used as part of the primary memory to
store some fixed data that cannot be changed.
So 1310 = 11012
More Examples
Example # 2 : Convert 13.2510 to binary
Division by 2 Quotient Remainder
13/2 6 1 LSB
6/2 3 0
3/2 1 1
1/2 0 1 MSB
So 13.2510 = 1101.012
Example # 3 : Convert 23.610 to binary
Octal ➔ Decimal Conversion
• To convert an octal number to a decimal number, multiply
each octal value by the weight of the digit and sum the
results. For example, 4128 = 26610.
• To convert an octal number to a decimal number, multiply
each octal value by the weight of the digit and sum the
results. For example, 4128 = 26610.
Octal ➔Binary Conversion
• Octal number system is the base-8 number system, and uses
the digits 0 to 7.
• Each octal digit is replaced by 3-bit binary number.
For example, 4728 = 100 111 0102.
4 7 2 Octal Number
Decimal ➔ Binary
2. Then, convert the fraction by multiply it with the based we want to convert:
Examples:
Add 1.1x103 and 50
Double Precision:1023
Example: Show the IEEE754
binary representation of the
number -0.7510
Example
Booth algorithm:
• It gives a procedure for multiplying binary
integers in signed 2’s complement
representation in efficient way, i.e., less
number of additions/subtractions required.
• It operates on the fact that strings of 0’s in
the multiplier require no addition but just
shifting and a string of 1’s in the multiplier
from bit weight 2^k to weight 2^m can be
treated as 2^(k+1 ) to 2^m.
• Example:
• Multiply 7x3
-7x3
Response Time/Execution Time :
• The total time required for the computer to complete a task, including
disc accesses, memory accesses, I/O activities, operating system
overheads, CPU Execution time….
Throughput:
• The total amount of workdone in a given time.
• To maximize Performance , we want to minimize Response
Time/Execution Time.
Assessing and • Performance x = 1/Execution Timex
Relative Performance
Understanding • Performance x / Performance y = Execution Timey/ Execution Timex = α
• CPI varies by application ,as well as among implementations with the same
Factors: instruction set.
• Sometimes,it is possible to compute the CPU clock cycle by looking at different
types of instructions and using their individual clock cycle counts. In such cases,
• CPU Clock Cycles = ∑(CPIi X Ci )
Where Ci is the count of the number of instructions of class I executed, CPI is the
average number of cycles per instructions for that instruction class, and n is the
number of instruction classes.
Understanding Program Performance: