Professional Documents
Culture Documents
Edition
The Hardware/Software Interface
Chapter 1
Computer Abstractions
and Technology
§1.1 Introduction
The Computer Revolution
◼ Progress in computer technology
◼ Underpinned by domain-specific accelerators
◼ Makes novel applications feasible
◼ Computers in automobiles
◼ Reduce pollution, improve fuel efficiency, automated driving
◼ Cell phones
◼ Human genome project
◼ Analyze human DNA sequences
◼ World Wide Web
◼ Replaced libraries
◼ Search Engines
◼ Server computers
◼ A computer used for running larger programs
for multiple users
◼ Network based
◼ High capacity, performance, reliability
◼ Range from small servers to building sized
◼ Embedded computers
◼ Hidden as components of systems (car, TV)
◼ Internet of Things (IoT): many small devices that all communicate
wirelessly over the Internet.
◼ Strict power/performance/cost constraints
◼ Hierarchy of memories
Main Companies Intel, ARM Xilinx, Altera, Lattice TSMC, UMC, ST,
Globalfoundries
(micro)-Processors
Field Programmable Gate Array (FPGA)
Use Verilog or VHDL to program the logic gates on the FPGAs…
Microsoft is using FPGAs in its data centers to run Bing search
algorithms-high-speed search.
The FPGA can change to support new algorithms as they are created.
Custom ASICs
Clock (cycles)
Data transfer
and computation
Update state
B = I 600ps = 1.2
CPU Time
…by this much
CPU Time I 500ps
A
Chapter 1 — Computer Abstractions and Technology — 43
CPI in More Detail
◼ If different instruction classes take different
numbers of cycles
n
Clock Cycles = (CPIi Instructio n Count i )
i=1
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 — 45
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=1
i
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