Chapter 1 COA
Chapter 1 COA
Introduction
Chapter 1 Objectives
2
1.1 Overview
3
1.1 Overview
• Computer architecture (HW+ISA)
– can be considered as a catalogue of tools or attributes that are visible
to the user such as instruction sets, number of bits used for data,
addressing techniques, etc.
– Logical aspects of system implementation as seen by the programmer.
– Visible for the programmer
– Have direct impact on the execution of instruction
– E.g., instruction sets, instruction formats, data types, addressing modes, no bits to
represent different data type, IO mechanism,
– How do I design a computer?
• Computer organization
– defines the way system is structured so that all those catalogued tools
can be used. The significant components of Computer organization are
ALU, CPU, memory and memory organization.
– Encompasses all physical aspects of computer systems.
– Operational units & their interconnections.
– Hardware detail transparent to programmers.
– E.g., circuit design, control signals, memory types, interface between compute and
peripheral 4
– How does a computer work?
Computer Architecture Computer Organization
Computer Architecture is concerned with Computer Organization is concerned with
the way hardware components are the structure and behaviour of a computer
connected together to form a computer system as seen by the user.
system.
It acts as the interface between hardware It deals with the components of a
and software. connection in a system.
Computer Architecture helps us to Computer Organization tells us how exactly
understand the functionalities of a system. all the units in the system are arranged and
interconnected.
A programmer can view architecture in Whereas Organization expresses the
terms of instructions, addressing modes realization of architecture.
and registers.
7
Basic operational Concepts
• The primary function of a computer system is to execute a
program, sequence of instructions.
• To perform the execution of an instruction, in addition to the
arithmetic logic unit, and control unit, the processor contains a
number of registers used for temporary storage of data and
some special function registers.
• The special function registers include program counters (PC),
instruction registers (IR), memory address registers (MAR) and
memory and memory data registers (MDR).
• The Program counter is one of the most critical registers in
CPU.
• The Program counter monitors the execution of instructions. It
keeps track on which instruction is being executed and what
the next instruction will be.
• The instruction register IR is used to hold the instruction that
is currently being executed.
• The contents of IR are available to the control unit, which8
generate the timing signals that control, the various
• The two registers MAR and MDR are used to handle the data
transfer between the main memory and the processor.
• The MAR holds the address of the main memory to or from
which data is to be transferred.
• The MDR contains the data to be written into or read from the
addressed word of the main memory.
• Whenever the processor is asked to communicate with
devices, we say that the processor is servicing the devices.
The processor can service these devices in one of the two
ways.
• One way is to use the polling routine, and the other way is to
use an interrupt.
• Polling enables the processor software to check each of the
input and output devices frequently. During this check, the
processor tests to see if any devices need servicing or not.
• Interrupt method provides an external asynchronous input that
informs the processor that it should complete whatever9
instruction that is currently being executed and fetch a new
General System
• In Architecture
Computer Architecture, the
General System Architecture is
divided into two major classification
units.
1. Store Program Control Concept
– refers to the storage of instructions
in computer memory to enable it to
perform a variety of tasks in
sequence or intermittently.
– The idea was introduced in the late
1040s by John von Neumann
2. Flynn's Classification of Computers
– M.J. Flynn proposed a classification for the
organization of a computer system by the
number of instructions and data items that are
manipulated simultaneously.
– The sequence of instructions read
from memory constitutes 10
an instruction stream.
Von Neumann Model
• Von-Neumann proposed his
computer architecture design in
1945 which was later known as Von-
Neumann Architecture. It consisted
of a Control Unit, Arithmetic, and
Logical Memory Unit (ALU), Registers
and Inputs/Outputs.
• Von Neumann architecture is based
on the stored-program computer
concept, where instruction data and
program data are stored in the same Components of Von-Neumann
memory. This design is still used in Model:
most computers produced today. • Central Processing Unit
• A Von Neumann-based computer: • Buses
• Uses a single processor • Memory Unit
• Uses one memory for both
11
instructions and data.
General Purpose System
• The General Purpose Computer System is the modified version of the Von-
Neumann Architecture. In simple words, we can say that a general
purpose computer system is a modern day architectural representation of
Computer System.
• The CPU (Central Processing Unit) consists of the ALU (Arithmetic and
Logic Unit), Control Unit and various processor registers.
• The CPU, Memory Unit and I/O subsystems are interconnected by the
system bus which includes data, address, and control-status lines.
• practical systems may differ from the single bus architecture in the sense
that it may be configured around multiple buses.
• Multiple Bus Architecture favors high throughput as compared to Single
12
Bus Architecture.
Parallel Processing
14
Pipelining
• The term Pipelining refers to a technique of decomposing a sequential
process into sub-operations, with each sub-operation being executed in
a dedicated segment that operates concurrently with all other
segments.
• The most important characteristic of a pipeline technique is that
several computations can be in progress in distinct segments at the
same time.
• The overlapping of computation is made possible by associating a
register with each segment in the pipeline. The registers provide
isolation between each segment so that each can operate on distinct
data simultaneously.
• The structure of a pipeline organization can be represented simply by
including an input register for each segment followed by a
combinational circuit.
15
Flynn's classification
16
Single instruction stream, multiple data st
ream (SIMD)
17
Multiple instruction stream, single data str
eam (MISD)
18
Multiple instruction stream, multiple data
stream (MIMD)
19
COMPUTER TYPES
SUPER COMPUTERS
29
1.3 An Example System
e? ?
a ch
C MB?
L1 ?
CI ? ?
P
US
B? ?
What does it all mean??
30
1.3 An Example System
31
1.3 An Example System
32
1.3 An Example System
33
1.3 An Example System
34
1.3 An Example System
35
1.3 An Example System
36
1.4 Standards Organizations
37
1.4 Standards Organizations
38
1.4 Standards Organizations
39
1.4 Standards Organizations
40
1.6 The Computer Level Hierarchy
41
1.6 The Computer Level Hierarchy
43
1.6 The Computer Level Hierarchy
44
1.6 The Computer Level Hierarchy
46
1.6 The Computer Level Hierarchy
47
1.6 The Computer Level Hierarchy
48
1.7 The von Neumann Model
• On the ENIAC,
all programming
was done at the
digital logic
level.
• Programming
the computer
involved moving
plugs and wires.
49
1.7 The von Neumann Model
50
1.7 The von Neumann Model
51
1.7 The von Neumann Model
• This is a general
depiction of a von
Neumann system:
• These computers
employ a fetch-
decode-execute
cycle to run
programs as
follows . . .
52
1.7 The von Neumann Model
53
1.7 The von Neumann Model
54
1.7 The von Neumann Model
55
1.7 The von Neumann Model
56
1.8 Non-von Neumann Models
57
1.8 Non-von Neumann Models
58
1.8 Non-von Neumann Models
59
Computing Systems
Calvin College
FUNCTIONAL UNITS OF
COMPUTER
• Input Unit
• Output Unit
• Central processing Unit (ALU and Control
Units)
• Memory
• Bus Structure
The Big Picture
Processor
Input
Control
Memory
ALU
Output
• NOTHING ELSE!
INPUT UNIT:
OUTPUT UNIT:
T1 Enable R1
T2 Enable R2
T3 Enable ALU for addition operation
• Processor divides
the operations into
basic steps
R1 R2
• Each basic step is
executed in one
clock cycle
R2
MEMORY
• Two types are RAM or R/W memory and ROM read only
memory
76
End of Chapter 1
77