














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















Dept. of Computer Science Course URL: www.seas.gwu.edu/~narahari/cs211/
CS 211: Computer Architecture, Bhagi Narahari
¾ What are the key components of CA? ¾ What are the architectures of today’s processors? ¾ What aspects of architecture design affect performance of application and how? ¾ How to extract max performance out of today’s CAs? ¾ Role of software in architecture performance ¾ What are the emerging trends in CA?
CS 211: Computer Architecture, Bhagi Narahari
CS 211: Computer Architecture, Bhagi Narahari
¾ Semiconductor ¾ Compiler technology ¾ Computational models
¾ Compiler plays a key role ¾ interplay between architecture features and application program properties ¾ Bottom line is performance of application
CS 211: Computer Architecture, Bhagi Narahari
CS 211: Computer Architecture, Bhagi Narahari
CS 211: Computer Architecture, Bhagi Narahari
An Important Idea: what are Computers meant to do?
¾ This is accomplished using a system of well defined (sometimes) transformations that have been developed over the last 50+ years. ¾ As a whole the process is complex, examined individually the steps are simple and straightforward
CS 211: Computer Architecture, Bhagi Narahari
Hardware Vs. Software
Hardware
¾Medium to compute functions
Software
¾Functions to compute
CS 211: Computer Architecture, Bhagi Narahari
The Machine Level - 2
¾Each functional component of the microarchitecture is built up of circuits that make “decisions” based on simple rules ¾ Not the focus of this course – prerequisite material
¾Finally, each logic circuit is actually built of electronic devices such as CMOS or NMOS or GaAs (etc.) transistors. ¾ Device electronics – not in this course CS 211: Computer Architecture, Bhagi Narahari
Alternate Definitions: The Multi-Level Concept
¾ Problem-Oriented Language Level (prog languages) ¾ Assembly Language Level ¾ Operating System machine level ¾ Conventional Machine Level (Instruction Set Architecture -- ISA) ¾ Micro-architecture level (Microprogramming level) ¾ Digital Logic Level (program in VHDL, Verilog) ¾ Device & Semiconductor Level
CS 211: Computer Architecture, Bhagi Narahari
For us, Computer Architecture is ...
(MicroArchitecture)
(Logic Circuits)
CS 211: Computer Architecture, Bhagi Narahari
Instruction Set Architecture (ISA)
instruction set
software
hardware
CS 211: Computer Architecture, Bhagi Narahari
The hardware/software interface: Instruction Set Architecture (ISA)
instruction set
CS 211: Computer Architecture, Bhagi Narahari
The Backdrop: Users
CS 211: Computer Architecture, Bhagi Narahari
CS 211: Computer Architecture, Bhagi Narahari
Trends In Technology, Applications,Architectures
CS 211: Computer Architecture, Bhagi Narahari
Why Such Change?
¾ Technology Advances- Moore’s Law ¾ CMOS VLSI dominates older technologies (TTL, ECL) in cost AND performance and is progressing rapidly ¾ Computer architecture advances improves low- end ¾ RISC, superscalar, RAID, …
¾ Simpler development, volumes, lower margins
¾ Rise of networking/local interconnection technology
CS 211: Computer Architecture, Bhagi Narahari
Memory Capacity (Single Chip DRAM)
size
Year
1000
10000
100000
1000000
10000000
100000000
1000000000
1970 1975 1980 1985 1990 1995 2000
year size(Mb) cyc time 1980 0.0625 250 ns 1983 0.25 220 ns 1986 1 190 ns 1989 4 165 ns 1992 16 145 ns 1996 64 120 ns 2000 256 100 ns
CS 211: Computer Architecture, Bhagi Narahari
Technology Trends summary
Capacity Speed (latency)
Logic 2x in 2 years 2x in 3 years DRAM 4x in 3 years 2x in 10 years Disk 4x in 3 years 2x in 10 years
CS 211: Computer Architecture, Bhagi Narahari
Performance Trends: Summary
CS 211: Computer Architecture, Bhagi Narahari
Emerging trends in Processor Design
¾ some aspects to consider: ¾ Delay: switching time of transistor – impacts clock cycle ¾ Feature size: size of transistor – impacts amount of logic in processor ¾ Interconnect delay: clock cycle/delay in sending signal across the interconnect lines on a chip
CS 211: Computer Architecture, Bhagi Narahari
0
5
10
15
20
25
30
35
40
650 500 350 250 180 130 100 Feature Size (nm)
Delay (ps)
Gate Delay (ps) Interconnect Delay (ps) Cu & Low k Interconnect Delay (ps) Al & SiO
2000
Bohr, M. T., “Interconnect Scaling - The Real Limiter To High Performance ULSI”, Proceedings of the IEEE International Electron Devices, pages 241-242.
CS 211: Computer Architecture, Bhagi Narahari
As Wire Delays Become Significant...
¾ do not involve long distance communication
¾ distribute control and data processing logic
CS 211: Computer Architecture, Bhagi Narahari
CS 211: Computer Architecture, Bhagi Narahari
Sequential Processor
Sequential Instructions
Processor
Execution unit Execution unit
CS 211: Computer Architecture, Bhagi Narahari
Instruction Level Parallelism: Shrinking of the Parallel Processor
¾ Superscalar processors ¾ Explicitly Parallel Instruction Computers (EPIC) ¾ also known as Very Large Ins Word (VLIW)
CS 211: Computer Architecture, Bhagi Narahari
ILP Processors:Superscalar
Sequential Instructions
Superscalar Processor
Scheduling Logic
Scheduling Logic
Instruction scheduling/ parallelism extraction done by hardware
Instruction scheduling/Instruction scheduling/ parallelism extractionextraction done by hardwaredone by hardware
Example: Intel IA-32/Pentium CS 211: Computer Architecture, Bhagi Narahari
Serial Program (C code)
Serial ProgramSerial Program (C code)(C code)^ Scheduled Instructions
EPIC Processor
ILP Processors:EPIC/VLIW
compiler
Example: Intel IA-64; Itanium
CS 211: Computer Architecture, Bhagi Narahari
Multi-Core Processors
Sequential Instructions
Multi-Core Processor
Multi-processing on Chip; Multiple threads – for each core
MultiMulti--processing on Chip;processing on Chip; Multiple threadsMultiple threads –– for each corefor each core
Example: Intel Core 2 Duo
ILP “processor” ILP “processor”
“core 1” “core 2”
CS 211: Computer Architecture, Bhagi Narahari
Frontend and Optimizer
Determine Dependences
Determine Independences
Bind Operations to Function Units
Bind Transports to Busses
Determine Dependences
Bind Transports to Busses
Execute
Superscalar
Dataflow
Indep. Arch.
VLIW
TTA
Compiler Hardware
Determine Independences
Bind Operations to Function Units
B. Ramakrishna Rau and Joseph A. Fisher. Instruction-level parallel: History overview, and perspective. The Journal ofSupercomputing, 7(1-2):9-50, May 1993.
CS 211: Computer Architecture, Bhagi Narahari
Importance of Compilers in ILPArchitectures
A optimize code A analyze dependencies between instructions A extract parallelism A schedule code onto processors A EPIC processors does not have any hardware utilities for scheduling, conflict resolution etc. Ahas to be done by the compiler
CS 211: Computer Architecture, Bhagi Narahari
CS 211: Computer Architecture, Bhagi Narahari
What about the embedded processor?
Source: Richard Newton CS 211: Computer Architecture, Bhagi Narahari
Summary: What’s up with Architecture Trends?
¾ smaller processors, faster clocks ¾ leads to more powerful and smaller processors! ¾ Small computing platforms like Palmtop computers, Palm, WinCE
CS 211: Computer Architecture, Bhagi Narahari
CS 211: Computer Architecture, Bhagi Narahari
CS 211: Computer Architecture, Bhagi Narahari
Multi-Core Processors
Sequential Instructions
Multi-Core Processor
Multi-processing on Chip; Multiple threads – for each core
MultiMulti--processing on Chip;processing on Chip; Multiple threadsMultiple threads –– for each corefor each core
Example: Intel Core 2 Duo
ILP “processor” ILP “processor”
“core 1” “core 2”
CS 211: Computer Architecture, Bhagi Narahari
Déjà vu all over again?
CS 211: Computer Architecture, Bhagi Narahari
Problems with Sea Change
CS 211: Computer Architecture, Bhagi Narahari
Course Information
CS 211: Computer Architecture, Bhagi Narahari
CS 211: Computer Architecture, Bhagi Narahari
Recurring Theme
CS 211: Computer Architecture, Bhagi Narahari
Performance
CS 211: Computer Architecture, Bhagi Narahari
The Bottom Line: Performance (and Cost)
Plane
Boeing 747
BAD/Sud Concodre
Speed
610 mph
1350 mph
DC to Paris
6.5 hours
3 hours
Passengers
470
132
Performance?
CS 211: Computer Architecture, Bhagi Narahari
The Bottom Line: Performance (and Cost)
Plane
Boeing 747
BAD/Sud Concodre
Speed
610 mph
1350 mph
DC to Paris
6.5 hours
3 hours
Passengers
470
132
Throughput (pmph)
286,
178,
CS 211: Computer Architecture, Bhagi Narahari
The Bottom Line: Performance (and Cost)
"X is n times faster than Y" means
ExTime(Y) Performance(X) --------- = --------------- ExTime(X) Performance(Y)
CS 211: Computer Architecture, Bhagi Narahari
How to Model Performance
CS 211: Computer Architecture, Bhagi Narahari
Aspects of CPU Performance
CPU time = Seconds = Instructions x Cycles x Seconds Program Program Instruction Cycle
CPU time = Seconds = Instructions x Cycles x Seconds Program Program Instruction Cycle
CPU = IC * CPI * Clk
Holy grail of CS 211 ☺
CS 211: Computer Architecture, Bhagi Narahari
CS 211: Computer Architecture, Bhagi Narahari
Performance Evaluation
CS 211: Computer Architecture, Bhagi Narahari
SPEC: System Performance Evaluation Cooperative
CS 211: Computer Architecture, Bhagi Narahari
¾ Media Bench– for multimedia apps ¾ Data Intensive Sys. (DIS) – for embedded systems that process input data ¾ MI Bench – for embedded systems ¾ TPC- transaction processing benchmarks to measure trans. proc. systems
CS 211: Computer Architecture, Bhagi Narahari
How to Summarize Performance
CS 211: Computer Architecture, Bhagi Narahari
Performance
CS 211: Computer Architecture, Bhagi Narahari
Performance: The AAA rule for designers
CS 211: Computer Architecture, Bhagi Narahari
Quantitative Principles of Computer Architecture Design ( Thumb Rules)