Beruflich Dokumente
Kultur Dokumente
Changes in Technology
Unsolvable
No finite algorithm
e.g. Goldbachs conjecture (Every even number
greater than 2 can be written as the sum of two
primes. )
Intractable
How do we Understand
computers?
Algorithms
Applications software
Systems software
Assembly Language
Machine Language (ISA)
Microarchitecture
Logic design
Device level
Semiconductors/Silicon used to build transistors
Properties of atoms, electrons, and quantum
dynamics
So much to learn!
Language B
Almost always in software
Static Program
Static Program
Language A
Level N
Individual Step of
a Dynamic Program
Level N-1
Language B
In software Simulator
In hardware Emulator
Level N-1
Equivalent Sequence
Of Steps
Algorithm Level
Precise step-by-step procedure
Steps must be well defined, to be
executed by a machine (no ambiguity)
Algorithm development is a creative
process
Finite number of steps
Pseudocode or flowchart
ISA
(Instruction Set Architecture) level
A very important abstraction
interface between hardware and low-level software
advantage: different implementations of the same
architecture
Instructions
Language of the Machine
Platform-specific
A limited set of machine language commands
"understood" by hardware (e.g. ADD, LOAD, STORE,
RET)
Well be working with the MIPS instruction set
architecture
similar to other architectures developed since the 1980's
Almost 100 million MIPS processors manufactured in 2002
used by NEC, Nintendo, Cisco, Silicon Graphics, Sony,
10
CISC Vs RISC
Semantic Gap: the ratio of the number of
instruction in the high level language versus
the number of instructions in the
instruction set level.
If the gap is small, then the instructions in
the instruction set level are complicated
(Complex Instruction Set Computing). This
affects the performance.
Hence (Reduced Instruction Set
Computing) is used, where each instruction
in the instruction set is simple.
1400
1300
Other
1200
SPARC
Hitachi SH
1100
PowerPC
1000
Motorola 68K
900
MIPS
IA-32
800
ARM
700
600
500
400
300
200
100
0
1998
1999
2000
2001
2002
11
Microarchitecture Level
Resources and techniques used to
implement the ISA
Pentium IV implements the x86 ISA
Motorola G4 implements the Power PC ISA
Logic-Design Level
Gates
Multiplexers, decoders, PLA, etc.
Synchronous (i.e. clocked) : the most
widely used
Asynchronous
12
Device Level
Transistors and wires
Implement the digital logic gates
Lower level:
Solid state physics
Machine looks more analog than digital!
13
Performance Metrics
14
Performance Metrics
15
16
CPU time
Time spent processing a given job
Discounts I/O time, other jobs shares
Performance Factors
17
18
19
20
A Simple Example
21
22
23
Power Trends
24
Uniprocessor Performance
Concluding Remarks
Cost/performance is improving
Due to underlying technology development
25