Professional Documents
Culture Documents
Chap 1
Chap 1
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
Output
device
Network
cable
Input Input
device device
BAC/Sud BAC/Sud
Concorde Concorde
Douglas Douglas DC-
DC-8-50 8-50
0 100 200 300 400 500 0 2000 4000 6000 8000 10000
BAC/Sud BAC/Sud
Concorde Concorde
Douglas Douglas DC-
DC-8-50 8-50
Clock (cycles)
Data transfer
and computation
Update state
CPU Time B 6s
Clock Cycles A = CPU Time A Clock Rate A
= 10s 2GHz = 20 10 9
1.2 20 10 9 24 10 9
Clock Rate B = = = 4GHz
6s 6s
Chapter 1 — Computer Abstractions and Technology — 32
Instruction Count and CPI
Clock Cycles = Instructio n Count Cycles per Instructio n
B = I 600ps = 1.2
CPU Time
…by this much
CPU Time I 500ps
A
Relative frequency
Class A B C
CPI for class 1 2 3
IC in sequence 1 2 1 2
IC in sequence 2 4 1 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 = 2.0 ◼ Avg. CPI = 9/6 = 1.5
Chapter 1 — Computer Abstractions and Technology — 36
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: affects IC, CPI, Tc
◼ In CMOS IC technology
Power = Capacitive load Voltage 2
Frequency
×30 5V → 1V ×1000
n
n
Execution time ratio i
i =1
10 10
Overall ssj_ops per Watt = ssj_ops i power i
i=0 i= 0
Instructio n count
MIPS =
Execution time 10 6
Instructio n count Clock rate
= =
Instructio n count CPI CPI 10 6
10 6
Clock rate
PROCESSING UNIT
INPUT OUTPUT
ALU TEMP
CONTROL UNIT
IP Inst Register
CISC RISC
• Richer instruction set, some simple, • Simple primitive instructions and
some very complex. addressing modes.
• Instructions generally take more • Instructions execute in one clock
than 1 clock to execute. cycle.
• Instructions of a variable size. • Uniformed length instructions and
• Instructions interface with memory fixed instruction format.
in multiple mechanisms with • Instructions interface with memory
complex addressing modes. via fixed mechanisms.
• No pipelining. • Pipelining.
• Upward compatibility within a • Instruction set is orthogonal (little
family. overlapping of instruction
• Microcode control. functionality)
• Work well with simpler compiler. • Hardwired control.
• Complexity pushed to the compiler.