Professional Documents
Culture Documents
CMP2008 - NOTLAR - Chapter - 01 - 4UP
CMP2008 - NOTLAR - Chapter - 01 - 4UP
1 Introduction
COMPUTER ORGANIZATION AND DESIGN
The Hardware/Software Interface
ARM
Edition The Computer Revolution
n Progress in computer technology
Underpinned by Moore’s Law
Chapter 1
n
Chapter 1 — Computer Abstractions and Technology — 3 Chapter 1 — Computer Abstractions and Technology — 4
The PostPC Era The PostPC Era
n Personal Mobile Device (PMD)
n Battery operated
n Connects to the Internet
n Hundreds of dollars
n Smart phones, tablets, electronic glasses
n Cloud computing
n Warehouse Scale Computers (WSC)
n Software as a Service (SaaS)
n Portion of software run on a PMD and a
portion run in the Cloud
n Amazon and Google
Chapter 1 — Computer Abstractions and Technology — 5 Chapter 1 — Computer Abstractions and Technology — 6
n And how the hardware executes them n Programming language, compiler, architecture
n Determine number of machine instructions executed
n The hardware/software interface per operation
n What determines program performance n Processor and memory system
n And how it can be improved n Determine how fast instructions are executed
n How hardware designers improve n I/O system (including OS)
performance n Determines how fast I/O operations are executed
Chapter 1 — Computer Abstractions and Technology — 9 Chapter 1 — Computer Abstractions and Technology — 10
Chapter 1 — Computer Abstractions and Technology — 11 Chapter 1 — Computer Abstractions and Technology — 12
Touchscreen Through the Looking Glass
n PostPC device n LCD screen: picture elements (pixels)
n Supersedes keyboard n Mirrors content of frame buffer memory
and mouse
n Resistive and
Capacitive types
n Most tablets, smart
phones use capacitive
n Capacitive allows
multiple touches
simultaneously
Chapter 1 — Computer Abstractions and Technology — 13 Chapter 1 — Computer Abstractions and Technology — 14
Chapter 1 — Computer Abstractions and Technology — 15 Chapter 1 — Computer Abstractions and Technology — 16
Inside the Processor Abstractions
n Apple A5 The BIG Picture
Chapter 1 — Computer Abstractions and Technology — 19 Chapter 1 — Computer Abstractions and Technology — 20
§1.5 Technologies for Building Processors and Memory
Technology Trends Semiconductor Technology
n Electronics n Silicon: semiconductor
technology
continues to evolve n Add materials to transform properties:
n Increased capacity n Conductors
and performance
n Reduced cost n Insulators
DRAM capacity
n Switch
Year Technology Relative performance/cost
1951 Vacuum tube 1
1965 Transistor 35
1975 Integrated circuit (IC) 900
1995 Very large scale IC (VLSI) 2,400,000
2013 Ultra large scale IC 250,000,000,000
Chapter 1 — Computer Abstractions and Technology — 21 Chapter 1 — Computer Abstractions and Technology — 22
Dies per wafer » Wafer area Die area Boeing 747 Boeing 747
BAC/Sud BAC/Sud
Concorde Concorde
(1+ (Defects per area ´ Die area/2))2 0 100 200 300 400 500 0 2000 4000 6000 8000 10000
n Nonlinear relation to area and defect rate Boeing 777 Boeing 777
n Wafer cost and area are fixed Boeing 747 Boeing 747
BAC/Sud BAC/Sud
n Die area determined by architecture and circuit design 0 500 1000 1500 0 100000 200000 300000 400000
Chapter 1 — Computer Abstractions and Technology — 25 Chapter 1 — Computer Abstractions and Technology — 26
n Performance depends on
n Algorithm: affects IC, possibly CPI
n Programming language: affects IC, CPI n In CMOS IC technology
n Compiler: affects IC, CPI Power = Capacitive load ´ Voltage 2 ´ Frequency
n Instruction set architecture: affects IC, CPI, Tc
×30 5V → 1V ×1000
Chapter 1 — Computer Abstractions and Technology — 37 Chapter 1 — Computer Abstractions and Technology — 38
Chapter 1 — Computer Abstractions and Technology — 39 Chapter 1 — Computer Abstractions and Technology — 40
Multiprocessors SPEC CPU Benchmark
n Multicore microprocessors n Programs used to measure performance
n Supposedly typical of actual workload
n More than one processor per chip n Standard Performance Evaluation Corp (SPEC)
n Requires explicitly parallel programming n Develops benchmarks for CPU, I/O, Web, …
n Compare with instruction level parallelism n SPEC CPU2006
n Hardware executes multiple instructions at once n Elapsed time to execute a selection of programs
n Negligible I/O, so focuses on CPU performance
n Hidden from the programmer n Normalize relative to reference machine
n Hard to do n Summarize as geometric mean of performance ratios
n CINT2006 (integer) and CFP2006 (floating-point)
n Programming for performance
n Load balancing n
Chapter 1 — Computer Abstractions and Technology — 41 Chapter 1 — Computer Abstractions and Technology — 42
æ 10 ö æ 10 ö
Overall ssj_ops per Watt = ç å ssj_ops i ÷ ç å poweri ÷
è i=0 ø è i=0 ø
Chapter 1 — Computer Abstractions and Technology — 43 Chapter 1 — Computer Abstractions and Technology — 44
§1.10 Fallacies and Pitfalls
SPECpower_ssj2008 for Xeon X5650 Pitfall: Amdahl’s Law
n Improving an aspect of a computer and
expecting a proportional improvement in
overall performance
Taffected
Timproved = + Tunaffected
improvemen t factor
n Example: multiply accounts for 80s/100s
n How much improvement in multiply performance to
get 5× overall?
80 n Can’t be done!
20 = + 20
n
n Corollary: make the common case fast
Chapter 1 — Computer Abstractions and Technology — 45 Chapter 1 — Computer Abstractions and Technology — 46
At 100% load less than 1% of the time Instruction count Clock rate
n = =
Instruction count ´ CPI CPI ´ 10 6
n Consider designing processors to make ´ 10 6
Clock rate
power proportional to load
n CPI varies between programs on a given CPU
Chapter 1 — Computer Abstractions and Technology — 47 Chapter 1 — Computer Abstractions and Technology — 48
§1.9 Concluding Remarks
Concluding Remarks
n Cost/performance is improving
n Due to underlying technology development
n Hierarchical layers of abstraction
n In both hardware and software
n Instruction set architecture
n The hardware/software interface
n Execution time: the best performance
measure
n Power is a limiting factor
n Use parallelism to improve performance
Chapter 1 — Computer Abstractions and Technology — 49