Professional Documents
Culture Documents
Datorarkitektur: Course Information
Datorarkitektur: Course Information
Course Information
Paul Pop
Institutionen för Datavetenskap (IDA)
Lecture notes: available from the web page at least
Linköpings Universitet 24 hours before the lecture
email: paupo@ida.liu.se
http://www.ida.liu.se/~paupo
phone: 28 5628 Text book: William Stallings: Computer Organization
E++ building and Architecture, 5th edition, Prentice Hall
International, Inc., 2000.
Datorarkitektur Fö 1 - 3 Datorarkitektur Fö 1 - 4
Lecture 1.
Introduction: Outline, Basic computer architecture and Lectures 7 and 8.
organization, Basic functions of a computer and its main
components, The von Neumann architecture. Superscalar Architectures: Instruction level parallelism
This is to referesh our memory! and machine parallelism, Hardware techniques for
performance enhancement, Data dependencies, Policies
for parallel instruction execution, Limitations of the
The Memory System: Memory hierarchy, Cache superscalar approach.
memories, Virtual memories, Memory management.
(BASIC ISSUES)
Computer
7. The Computer System
data
control
Datorarkitektur Fö 1 - 7 Datorarkitektur Fö 1 - 8
The principles:
• A computer system consists usually of a
computer and its peripherals. • Data and instructions are both stored in the main
memory (stored program concept);
• The content of the memory is addressable by
• Computer peripherals include input devices, location (without regard to what is stored in that
output devices, and secondary memories. location);
• Instructions are executed sequentially (from one
instruction to the next, in order of their location in
memory) unless the order is explicitly modified.
• The organization (architecture) of the computer:
Computer system
- a central processing unit (CPU); it contains the
control unit (CU), that coordinates the execution
of instructions and the arithmetic/logic unit (ALU)
Input Output which performs arithmetic and logic operations;
Computer
device device - (main) memory.
Computer
Secondary
memory Central
Processing Unit Main memory
(CPU)
data
instructions
• Key concepts here are program and program
execution.
Main memory
Datorarkitektur Fö 1 - 11 Datorarkitektur Fö 1 - 12
0 0 0 01 0 1 0 0 0 1 01 0 0 00 0 0 11 0 1 1
• Important aspects concerning instructions:
Mul operand "3" Reg 3
- Number of addresses
- Types of operands 0 0 0 01 0 1 1 0 0 0 10 0 1 11 0 0 10 0 1 1
- Addressing modes Instruction Move addr of Z Reg 3
- Operation repertoire set design ....................................
- Register access
- Instruction format 0 1 1 10 0 0 0 0 0 0 00 0 0 00 0 0 01 0 1 1 X
0 1 1 10 0 0 1 0 0 0 00 0 0 00 0 0 00 0 1 1 Y
0 1 1 10 0 1 0 0 0 0 00 0 0 00 0 1 01 0 1 0 Z
Datorarkitektur Fö 1 - 15 Datorarkitektur Fö 1 - 16
CPU CPU
0 0 0 01 0 1 11 0 0 01 0 1 1 0 0 0 00 0 0 00 0 0 00 0 1 1 0 0 0 11 0 1 11 0 0 00 0 1 1 0 0 0 00 0 0 00 0 0 01 1 1 0
Instruction Register Register R3 Instruction Register Register R3
data
data
instructions instructions
Main memory Main memory
0 0 0 01 0 1 11 0 0 01 0 1 1 0 0 0 01 0 1 11 0 0 01 0 1 1
0 0 0 11 0 1 11 0 0 00 0 1 1 0 0 0 11 0 1 11 0 0 00 0 1 1
0 0 1 01 0 0 00 0 0 11 0 1 1 0 0 1 01 0 0 00 0 0 11 0 1 1
0 0 0 10 0 1 11 0 0 10 0 1 1 0 0 0 10 0 1 11 0 0 10 0 1 1
0 0 0 00 0 0 00 0 0 01 0 1 1 0 0 0 00 0 0 00 0 0 01 0 1 1
0 0 0 00 0 0 00 0 0 00 0 1 1 0 0 0 00 0 0 00 0 0 00 0 1 1
x x x xx x x xx x x xx x x x x x x xx x x xx x x xx x x x
CPU CPU
0 0 1 01 0 0 00 0 0 11 0 1 1 0 0 0 00 0 0 00 0 1 01 0 1 0 0 0 0 10 0 1 11 0 0 10 0 1 1 0 0 0 00 0 0 00 0 1 01 0 1 0
Instruction Register Register R3 Instruction Register Register R3
data
data
instructions instructions
Main memory Main memory
0 0 0 01 0 1 11 0 0 01 0 1 1 0 0 0 01 0 1 11 0 0 01 0 1 1
0 0 0 11 0 1 11 0 0 00 0 1 1 0 0 0 11 0 1 11 0 0 00 0 1 1
0 0 1 01 0 0 00 0 0 11 0 1 1 0 0 1 01 0 0 00 0 0 11 0 1 1
0 0 0 10 0 1 11 0 0 10 0 1 1 0 0 0 10 0 1 11 0 0 10 0 1 1
0 0 0 00 0 0 00 0 0 01 0 1 1 0 0 0 00 0 0 00 0 0 01 0 1 1
0 0 0 00 0 0 00 0 0 00 0 1 1 0 0 0 00 0 0 00 0 0 00 0 1 1
x x x xx x x xx x x xx x x x 0 0 0 00 0 0 00 0 1 01 0 1 0
Datorarkitektur Fö 1 - 19 Datorarkitektur Fö 1 - 20
Fetch
A simple view of the instruction cycle: instruction
Decode
Fetch
instruction
Fetch
operand
Execute
instruction
Execute
instruction
Main
CPU
Memory
ALU
Address Bus
Control Bus
Data Bus
IR
PC
Control
Unit
Internal
CPU Bus
Datorarkitektur Fö 1 - 23 Datorarkitektur Fö 1 - 24
IR
I/O I/O I/O
1 2 n
Control signals in-
ternal to the CPU
Status&Cond.
Flags
Clock
• CPU + main memory constitute the "core" of the
computer system.
• Secondary memory + I/O devices are the so called
peripherals.
• Communication between different components of
• Techniques for implementation of the control unit: the system is usually performed using one or
1. Hardwired control several buses.
2. Microprogrammed control
one word
address decoder
• The secondary memory provides the long-term
one bit
storage of large amounts of data and program.
Address 2
• Before the data and program in the secondary Address 1
memory can be manipulated by the CPU, they must Address 0
first be loaded into the main memory.
data buffer
• The most important characteristics of a memory is
its speed, size, and cost, which are mainly
memory
constrained by the technology used for its control
implementation. unit
• Typically
• The main memory can be viewed as a set of
- the main memory is fast and of limited size; storage cells, each of which can be used to store a
- secondary memory is relatively slow and of word.
very large size. • Each cell is assigned a unique address and the
addresses are numbered sequentially: 0,1,2,... .
• Besides the storage cells, there are a memory
address buffer (storing the address of the word to
be read/written) and a data buffer (storing the data
read/to be written), the address decoder and a
memory control unit.
Datorarkitektur Fö 1 - 27 Datorarkitektur Fö 1 - 28
Secondary Memory
The Main Memory (cont’d)
Hard Disk:
• The most widely used technology to implement • Data are recorded on the surface of a hard disk
main memories is semiconductor memories. made of metal coated with magnetic material.
Diskette:
Magnetic tape:
• Main features:
• Main features:
- Direct access
- Sequential access (access time about 1-5 s)
- Cheap
- High value of storage (50 MB/tape)
- Portable, convenient to use
- Inexpensive
• Main standards:
• It is often used for backup or archive purpose.
- 5 1/4-inch. Capacity ≈ 360 KB/disk
- 3 1/2-inch. Capacity ≈ 1.44 MB/disk
(about 700 pages of A4 text)
Datorarkitektur Fö 1 - 31 Datorarkitektur Fö 1 - 32
Summary
Input-Output Devices (cont’d)
Datorarkitektur Fö 1 - 35
• Memory hierarchy:
- cache memory
- virtual memory
- memory management;