Beruflich Dokumente
Kultur Dokumente
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
Eastern Mediterranean University
School of Computing and Technology
ITEC255
Computer Organization
& Architecture
I NTRODUCTI ON
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
2
Introduction
The course is about the structure and function of computers.
The purpose is to present the nature and characteristics of
modern-day computers.
The intent of this course is to provide:
a detailed discussion of the fundamentals of computer
organization and architecture
to relate these to contemporary computer design issues.
2
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
3
Organization and Architecture
Computer architecture refers to those attributes of a system
visible to a programmer or those attributes that have a direct
impact on the logical execution of a program.
Examples of architectural attributes include:
Instruction set
Number of bits used to represent various data types (e.g.
numbers, characters)
I/O mechanisms
Memory addressing techniques
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
4
Computer organization refers to the operational units and
their interconnections that realize the architectural
specifications.
Examples of organizational attributes are transparent to
programmer, such as:
Control signals
Interfaces between the computer and peripherals
Memory technology being used
Organization and Architecture
3
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
5
As an example:
The fact that a multiply instruction is available is a
computer architecture issue.
How that multiply is implemented is a computer
organization issue.
Organization and Architecture
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
6
Many computer manufacturers offer a family of computer
models all with the same architecture.
All Intel x86 family share the same basic architecture.
The IBM System/370 family share the same basic architecture.
This gives compatibility for new models.
Organization differs between different versions with changing
technology.
Organization and Architecture
4
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
7
Structure and Function
Modern computers contain millions of electronic
components.
The key to describe such systems is to recognize their
hierarchical nature.
A hierarchical system is a set of layers or levels of
interrelated subsystems.
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
8
The designer need only deal with a particular level of the
system at a time.
At each level, the system consists of a set of components and
their interrelationships.
The behavior at each level depends only on a simplified,
abstracted characterization of the system at the next lower
level.
Structure and Function
5
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
9
At each level, the designer is concerned with:
Structure: The way in which components relate to each
other (interrelated).
Function: The operation of each individual components as
part of the structure.
We will usually describe systems from the top-down, instead
of bottom-up.
Structure and Function
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
10
Function
There are only four basic functions that a computer can
perform.
1. Data processing: The data may take a wide variety of form,
but only a few fundamental methods or types of data
processing.
2. Data storage: There are long-term or short, temporary storage.
3. Data movement
Input/Output: When data are received from or delivered to
a peripheral, a device connected directly to the computer.
Data communication: When data is moved over longer
distances, to or from a remote device.
4. Control: Control of the above functions, by instructions
provided by the user of the computer (i.e. their programs).
6
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
11 A functional view of the computer
Function
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
12
Within the computer, a control unit manages the computers
resources and orchestrates the performance of its functional
parts in response to those instructions.
Function
7
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
13
The number of possible operations that can be performed is
four:
1. The computer can function as a data movement device,
simply transferring data from one peripheral or
communications line to another.
Function
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
14
2. The computer can function as a data storage device, with
data transferred from external environment to computer
storage (read) and vice versa (write).
Function
8
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
15
3. The computer can operate data processing in storage.
Function
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
16
4. The computer can operate data processing between storage
and external environment.
Function
9
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
17
Structure
Figure shows the simplest possible representation of a
computer.
The computer interacts in some fashion with its external
environment.
In general, all of its linkages to the external environment can
be classified as peripheral devices or communication lines.
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
18
There are four main structural components in the internal
structure of the computer:
1. Central processing unit (CPU): Controls the operation
of the computer and performs its data processing
functions. Often simply referred to as processor.
2. Main memory: Stores data.
3. I/O: Moves data between the computer and its external
environment.
4. System interconnection: Some mechanism that provides
communication among CPU, main memory and I/O. A
common example of system interconnection is by means
of a system bus, consisting of a number of conducting
wires to which all the other components attach.
Structure
10
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
19
Structure
Internal structure of a computer:
Computer
Main
Memory
I/O
Systems
Bus
Peripherals
Communication
lines
CPU
Computer
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
20
Structure CPU
Traditionally, there has been just a single processor. In recent
years, there has been increasing use of multiple processors in a
single computer.
Major structural components of CPU are as follows:
Control Unit: Controls the operation of CPU and hence
computer.
Arithmetic and logic unit (ALU): Performs computers
data processing functions.
Registers: Provides storage internal to CPU.
CPU interconnection: Some mechanism that provides
communication among control unit, ALU and registers.
11
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
21
Internal structure of a CPU:
ALU
Control
Unit
Internal Bus
Registers
CPU
Main
Memory
I/O
Systems
Bus
CPU
Structure CPU
Computer
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
22
There are several approaches to the implementation of the
control unit.
The most common is a microprogrammed implementation.
A microprogrammed control unit operates by executing
microinstructions that define the functionality of the control
unit.
Structure Control Unit
12
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
23
Control
Memory
Control Unit
Registers
and
Decoders
Sequencing
Logic
Control Unit
ALU
Control
Unit
Internal
Bus
Registers
CPU
Internal structure of a control unit:
Structure Control Unit
I
T
E
C
2
5
5
-
C
o
m
p
u
t
e
r
O
r
g
a
n
i
z
a
t
i
o
n
&
A
r
c
h
i
t
e
c
t
u
r
e
24
Why Study Computer Organization and Architecture?
To be a professional in any field of computing today, one
should not regard the computer just as a black box that
executes programs by magic.
Students need to understand computer architecture in order
to structure a program so that it runs more efficiently on a
real machine.