Computer Organization: Basic Structure of Computer
Computer Organization: Basic Structure of Computer
Computer Organization: Basic Structure of Computer
Unit I
Basic Structure of Computer
Computer types, Functional units - input unit; output unit; ALU;
control unit; memory unit,
Basic operational concepts,
Bus structure, Software,
Performance processor clock; basic performance equation;
pipelining and superscalar; operation; clock rate;
instruction set: CISC & RISC;
Multiprocessors & Multi computers,
Historical perspective (generations of a computer).
Digital computer(computer)
Digital computer(computer)
fast electronic calculating m/c that accepts
digitized i/p information, process it according
to a list of internally stored instructions and
produce the resulting o/p information.
Program
List of instructions are called a computer
program
Memory
Storage in a computer system are called
memory.
Computer Organization
Computer Organization
Computer Organization
refers to the operational units and their interconnections
that realize the architectural specifications.
Examples are things that are transparent to the
programmer:
o control signals
o interfaces between computer and peripherals
o the memory technology being used
Computer types
Exist that differ in
size
cost
computational power
intended use
Types of computers
Personal Computer
Desktop computers
Notebook computer
Workstations
Enterprise systems or main frames
servers
supercomputers
Functional Units
Input Unit
Output Unit
Counterpart of i/p unit
its fn is to sent the processed output
to the outside world
eg: printer
Some units such as graphical
displays, provide both an o/p and an
i/p function.
The dual role of such unit is the
reason for using the single I/O unit in
many cases.
Registers
When operands are brought into the
processor, they are stored in highspeed storage elements called
registers.
Interrupts
Bus Structures
There are many ways to connect
different parts inside a computer
together.
A group of lines that serves as a
connecting path for several devices
is called a bus.
Address/data/control
2 Types of bus structures:
Single
Multiple
Comparison of Bus
Structures
Speed Issue
Different devices have different
transfer/operate speed.
If the speed of bus is bounded by the
slowest device connected to it, the
efficiency will be very low.
How to solve this?
A common approach use buffers.
Buffer register
Some electromechanical devices such as KB and printers are
relatively slow.
Others like magnetic or optical disks are considerably faster.
Memory and processor units operate at electronic speeds,
making them the faster part of computer.
Because all of these devices must communicate with each other
over a bus, common approach is to include buffer registers with
the devices to hold the information during transfers.
It prevents a high speed processor from being locked to a slow
I/O device during a sequence of data transfers.
Eg:
Processor sends the character over the bus to the printer buffer.
Since the buffer is electromagnetic register, this transfer
requires relatively little time.
Once the bufffer is loaded, the printer can start printing without
further intervention by the processor.
Software
Inorder for a user to enter and run application program the
computer must contain some system s/w in its memory.
2 types of s/w
System s/w
Eg: Compiler-Translates high level Program to m/c
language program
Text editor-used for entering and editing applications
O/S-Large program, usually collection of routines used
to control the
sharing and interaction among various computer
units as they
execute application programs.
Application s/w
Eg: C,C++, Java, Fortran
System Software
Application Software
Operating System
Eg:
Elapsed time: t5-t0
Processor time: Periods labeled Program and O/s routine
Cache
Performance
1.
2.
3.
4.
5.
6.
7.
Processor Clock
Basic Performance Equation
Pipelining & Super Scalar Operation
Clock Rate
Instruction set: CISC & RISC
Compiler
Performance Measurement
1.Processor Clock
Clock
-Pr. ckts are controlled by a timing signal
Clock cycle
-Clock defines regular time intervals
-The execution of each instruction is divided into several steps,
each of which completes in one clock cycle.
2.Basic Performance
Equation
T processor time required to execute a program that
has been prepared in high-level language
N number of actual machine language instructions
needed to complete the execution (note: loop)
S average number of basic steps needed to execute
one machine instruction. Each step completes in one
clock cycle
R clock rate
Note: these are not independent to each other
N S
T
R
How to improve T?
Pipelining
It is a key feature in DSP to get parallel instructions
working properly
Requires careful timing
Basic Ideas
Parallel processing
time
time
P1
a1
a2
a3
a4
P1
P2
b1
b2
b3
b4
P2
P3
c1
c2
c3
c4
P3
P4
d1
d2
d3
d4
P4
a1
b1
c1
d1
a2
b2
c2
Pipelined
a3
b3
processing
d2
c3
d3
a4
b4
c4
d4
4.Clock Rate
Increase clock rate
Improve the integrated-circuit (IC) technology to make the circuits
faster
Reduce the amount of processing done in one basic step
(however, this may increase the number of basic steps needed)
Sr.N
o.
CISC
RISC
Complex instructions
Easier to implement efficient
combined with pipelining give pipelining in processors.
best performance.
Memory reference
instructions
6. Compiler
A compiler translates a high-level language
program into a sequence of machine
instructions.
To reduce N, we need a suitable machine
instruction set and a compiler that makes
good use of it.
Goal reduce NS
A compiler may not be designed for a specific
processor; however, a high-quality compiler is
usually designed for, and with, a specific
processor.
7.Performance
Measurement
T is difficult to compute.
1
n
SPEC rating
Because the actual execution is
measured , SPEC rating is measure of
the combined effect of all factors
affecting the performance including
the
compiler
O/S
processor &
memory of computer being tested
Large computer system contain a no. of pr. units called multi pr.
systems.
Execute a number of different application tasks in parallel
Execute subtasks of a single large task in parallel
All processors have access to all of the memory called shared-memory
multiprocessor systems
High performance comes with increased Cost and complexity.
Increased Cost due to Multiple processors, memory units & complex
interconnection networks
Multicomputers
An interconnected group of computers to achieve high total
computational power.
Each computer only have access to its own memory
Exchange message via a communication network message-passing
multicomputers
Time Frame
Circuit Components
Elements per Component
Internal Storage
Memory Capacity
Data Input
Popular Computers and Companies
at that time
First Generations
1958
1951-
Vacuum Tubes
Magnetic Drum
4,000 bits
Hard Wire Programs in computers
IBM 650, Univac I
ENIAC
Transistors
Magnetic Cores
32,000 bits
Punch Cards
CDC, GE, IBM
Third Generation
1974
1965-