COAL lecture 02
COAL lecture 02
Computer Abstractions
and
Technology
§1.1 Introduction
The Computer Revolution
■ Progress in computer technology
■ Underpinned by Moore’s Law
■ Makes novel applications feasible
■ Computers in automobiles
■ Cell phones
■ Human genome project
■ World Wide Web
■ Search Engines
■ Computers are pervasive
Chapter 1 — Computer Abstractions and Technology —
Classes of Computers
■ Desktop computers
■ General purpose, variety of software
■ Subject to cost/performance tradeoff
■ Server computers
■ Network based
■ High capacity, performance, reliability
■ Range from small servers to building sized
■ Embedded computers
■ Hidden as components of systems
■ Stringent power/performance/cost constraints
BAC/Sud BAC/Sud
Concorde Concorde
Douglas Douglas DC-
DC-8-50 8-50
BAC/Sud BAC/Sud
Concorde Concorde
Douglas Douglas DC-
DC-8-50 8-50
Clock (cycles)
Data transfer
and computation
Update state
CPU Clock
=
■ Performance Cycles Clockby
improved
■
Rate of clock cycles
Reducing number
■ Increasing clock rate
■ Hardware designer must often trade off clock
rate against cycle count
Clock B =
Clock CyclesB 1.2 ×Clock
CPU Time = 6
Rate CyclesA
B s
Clock CyclesA = CPU Time A ×Clock Rate
A
9
= 10s × 2GHz9 = 20
9
×10
Clock 1.2 × 20 ×10 24 =
B = =
Rate ×10 6s 6s 4GHz
Chapter 1 — Computer Abstractions and Technology —
Instruction Count and CPI
Clock Cycles = Instruction Count ×Cycles per Instruction
CPU Time = Instruction Count ×CPI×Clock Cycle
Time
■ Instruction
Instruction Count Count
for a × CPI
program
=
■ Clock
Determined by Rate ISA and compiler
program,
■ Average cycles per instruction
■ Determined by CPU hardware
■ If different instructions have different CPI
■ Average CPI affected by instruction mix
∑
Clock Cycles = (CPIi ×Instructio n Count i
)
i=1
■ Sequence 1: IC = 5 ■ Sequence 2: IC = 6
■ Clock Cycles ■ Clock Cycles
= 2×1 + 1×2 + 2×3 = 4×1 + 1×2 + 1×3
= 10 =9
■ Avg. CPI = 10/5 = ■ Avg. CPI = 9/6 =
2.0 1.5
Chapter 1 — Computer Abstractions and Technology —
Performance Summary
The BIG
Picture
■ Performance depends on
■ Algorithm: affects IC, possibly CPI
■ Programming language: affects IC, CPI
■ Compiler: affects IC, CPI
■ Instruction set architecture:
Chapter 1 — Computeraffects
Abstractions IC, CPI, T—c
and Technology
Determinates of CPU Performance
CPU time = Instruction_count x CPI x
clock_cycle Instruction_ CPI clock_cycle
count
Algorithm X X
Programming X X
language
Compiler X X
ISA X X X
Processor X X
organization
Technology X
Wall
§1.5 The Power
Power Trends
■ In CMOS IC technology
Power = Capacitive load × Voltage 2
×Frequency
×30 5V → 1V ×1000
RISC
■ Chapter – 1
Acknowledgements
47