Download Sea Change in Chip Design: Multiprocessors and the Evolution of Computer Architecture - Pr and more Study notes Computer Science in PDF only on Docsity!
CS 152 Computer Architecture and
Engineering
Lecture 1 - Introduction
Krste Asanovic
Electrical Engineering and Computer Sciences University of California at Berkeley http://www.eecs.berkeley.edu/~krste http://inst.eecs.berkeley.edu/~cs 152
Computing Devices Then…
EDSAC, University of Cambridge, UK, 1949
1/20/2009 (^) CS152-Spring! 09 3
Computing Devices Now
Robots Supercomputers Automobiles Laptops Set-top boxes Games Smart phones Servers Media Players Sensor Nets Routers Cameras
What is Computer Architecture?
Application Physics
Gap too large to
bridge in one step
(but there are exceptions,
e.g. magnetic compass)
In its broadest definition, computer architecture is the
design of the abstraction layers that allow us to implement
information processing applications efficiently using
available manufacturing technologies.
1/20/2009 (^) CS152-Spring! 09 7
The End of the Uniprocessor Era
Single biggest change in the history
of computing systems
- Old Conventional Wisdom: Power is free, Transistors expensive
- New Conventional Wisdom: “Power wall” Power expensive, Transistors free (Can put more on chip than can afford to turn on)
- Old CW: Sufficient increasing Instruction-Level Parallelism via compilers, innovation (pipelining, superscalar, out-of-order, speculation, VLIW, …)
- New CW: “ILP wall” law of diminishing returns on more HW for ILP
- Old CW: Multiplies are slow, Memory access is fast
- New CW: “Memory wall” Memory slow, multiplies fast (200 clock cycles to DRAM memory, 4 clocks for multiply)
- Old CW: Uniprocessor performance 2X / 1.5 yrs
- New CW: Power Wall + ILP Wall + Memory Wall = Brick Wall
- Uniprocessor performance now 2X / 5(?) yrs ! Sea change in chip design: multiple “cores” (2X processors per chip / ~ 2 years) » More, simpler processors are more power efficient
Conventional Wisdom in Computer Architecture
1/20/2009 (^) CS152-Spring! 09 9
Sea Change in Chip Design
- Intel 4004 (1971): 4-bit processor, 2312 transistors, 0.4 MHz, 10 micron PMOS, 11 mm^2 chip - Processor is the new transistor?
- RISC II (1983): 32-bit, 5 stage pipeline, 40,760 transistors, 3 MHz, 3 micron NMOS, 60 mm^2 chip
- 125 mm^2 chip, 0.065 micron CMOS = 2312 RISC II+FPU+Icache+Dcache - RISC II shrinks to ~ 0.02 mm^2 at 65 nm - Caches via DRAM or 1 transistor SRAM?
Déjà vu all over again?
- Multiprocessors imminent in 1970s, ‘80s, ‘90s, …
- “… today’s processors … are nearing an impasse as technologies
approach the speed of light..”
David Mitchell, The Transputer: The Time Is Now ( 1989 )
! Custom multiprocessors tried to beat uniprocessors
! Procrastination rewarded: 2X seq. perf. / 1.5 years
- “We are dedicating all of our future product development to
multicore designs. … This is a sea change in computing”
Paul Otellini, President, Intel ( 2004 )
- Difference is all microprocessor companies have switched to
multiprocessors (AMD, Intel, IBM, Sun; all new Apples 2+ CPUs)
! Procrastination penalized: 2X sequential perf. / 5 yrs
! Biggest programming challenge: from 1 to 2 CPUs
1/20/2009 (^) CS152-Spring! 09 13
The New CS
- New CS152 focuses on interaction of software and
hardware
- more architecture and less digital engineering.
- No FPGA design component
- There is now a separate FPGA design lab class (CS194 in Fall 2008), where you can try building some of the architectural ideas we’ll explore this semester (100% digital engineering)
- Much of the material you’ll learn this term was previously
in CS
- Some of the current CS61C, I first saw in CS252 nearly 20 years ago!
- Maybe every 10 years, shift CS252->CS152->CS61C?
- Class contains labs based on various different machine
designs
- Experiment with how architectural mechanisms work in practice on real software.
CS 152 Course Focus
Understanding the design techniques, machine structures, technology factors, evaluation methods that will determine the form of computers in 21st Century Technology (^) Programming Languages Operating
Systems^ History
Applications (^) Interface Design (ISA)
Measurement &
Evaluation
Parallelism
Computer Architecture:
- Organization
- Hardware/Software Boundary Compilers
1/20/2009 (^) CS152-Spring! 09 15
The New CS152 Executive Summary
The processor your predecessors built in CS What you’ll understand and experiment with in the new CS Plus, the technology behind chip-scale multiprocessors (CMPs)
CS152 Administrivia
Instructor: Prof. Krste Asanovic Office: 579 Soda Hall, krste@eecs Office Hours: M 1:30-2:30PM (email to confirm), 579 Soda T. A.: Scott Beamer, sbeamer@eecs Office Hours: TBD Lectures: Tu/Th, 5:00-6:30PM, 320 Soda (may change) Section: F 12-1pm, 258 Dwinelle (room may change) Text: Computer Architecture: A Quantitative Approach, 4th Edition (Oct, 2006) Readings assigned from this edition, don’t use earlier Eds. Web page: http://inst.eecs.berkeley.edu/~cs Lectures available online before noon, day of lecture
1/20/2009 (^) CS152-Spring! 09 19
CS152 Labs
- Each lab has directed plus open-ended assignments
- Roughly 50/50 split of grade
- Directed portion is intended to ensure students learn
main concepts behind lab
- Each student must perform own lab and hand in their own lab report
- Open-ended assigment is to allow you to show your
creativity
- Roughly a one day “mini-project” » E.g., try an architectural idea and measure potential, negative results OK (if explainable!)
- Students can work individually or in groups of two or three
- Group open-ended lab reports must be handed in separately
- Students can work in different groups for different assignments
Related Courses
CS61C CS 152
CS 258
CS 150
Basic computer organization, first look at pipelines + caches Computer Architecture, First look at parallel architectures Parallel Architectures, Languages, Systems Digital Logic Design Strong Prerequisite
CS 194??
New FPGA-based Architecture Lab Class
CS 252
Graduate Computer Architecture, Advanced Topics
1/20/2009 (^) CS152-Spring! 09 21
Computer Architecture:
A Little History
Throughout the course we’ll use a historical narrative to
help understand why certain ideas arose
Why worry about old ideas?
- Helps to illustrate the design process, and explains
why certain decisions were taken
- Because future technologies might be as constrained
as older ones
- Those who ignore history are doomed to repeat it
- Every mistake made in mainframe design was also made in minicomputers, then microcomputers, where next?
Charles Babbage 1791-
Lucasian Professor of Mathematics, Cambridge University, 1827-
1/20/2009 (^) CS152-Spring! 09 25
Difference Engine
- Babbage’s paper is published
- The paper is read by Scheutz & his son in Sweden
- Babbage gives up the idea of building it; he is onto Analytic Engine!
- Scheutz displays his machine at the Paris World Fare
- Can compute any 6th degree polynomial
- Speed: 33 to 44 32-digit numbers per minute! Now the machine is at the Smithsonian
Analytic Engine
1833: Babbage’s paper was published
- conceived during a hiatus in the development of the difference engine
Inspiration: Jacquard Looms
- looms were controlled by punched cards » The set of cards with fixed punched holes dictated the pattern of weave! program » The same set of cards could be used with different colored threads! numbers
1871: Babbage dies
- The machine remains unrealized. It is not clear if the analytic engine could be built even today using only mechanical technology
1/20/2009 (^) CS152-Spring! 09 27
Analytic Engine
The first conception of a general-purpose computer
- The store in which all variables to be operated upon, as well as all those quantities which have arisen from the results of the operations are placed.
- The mill into which the quantities about to be operated upon are always brought. The program Operation variable1 variable2 variable An operation in the mill required feeding two punched cards and producing a new punched card for the store. An operation to alter the sequence was also provided!
The first programmer
Ada Byron aka “Lady Lovelace” 1815- Ada’s tutor was Babbage himself!
1/20/2009 (^) CS152-Spring! 09 31
Linear Equation Solver
John Atanasoff, Iowa State University
1930 ’s:
- Atanasoff built the Linear Equation Solver.
- It had 300 tubes!
- Special-purpose binary digital calculator
- Dynamic RAM (stored values on refreshed capacitors)
Application:
- Linear and Integral differential equations
Background:
- Vannevar Bush’s Differential Analyzer --- an analog computer
Technology:
- Tubes and Electromechanical relays Atanasoff decided that the correct mode of computation was using electronic binary digits.
Electronic Numerical Integrator
and Computer (ENIAC)
- Inspired by Atanasoff and Berry, Eckert and Mauchly designed and built ENIAC (1943-45) at the University of Pennsylvania
- The first, completely electronic, operational, general-purpose analytical calculator! - 30 tons, 72 square meters, 200KW
- Performance
- Read in 120 cards per minute
- Addition took 200 μs, Division 6 ms
- 1000 times faster than Mark I
- Not very reliable!
Application: Ballistic calculations
angle = f (location, tail wind, cross wind, air density, temperature, weight of shell, propellant charge, ... ) WW-2 Effort
1/20/2009 (^) CS152-Spring! 09 33
Electronic Discrete Variable
Automatic Computer (EDVAC)
- ENIAC’s programming system was external
- Sequences of instructions were executed independently of the results of the calculation
- Human intervention required to take instructions “out of order”
- Eckert, Mauchly, John von Neumann and others designed EDVAC (1944) to solve this problem - Solution was the stored program computer ! “ program can be manipulated as data”
- First Draft of a report on EDVAC was published in 1945, but just had von Neumann’s signature! - In 1973 the court of Minneapolis attributed the honor of inventing the computer to John Atanasoff
Stored Program Computer
manual control calculators automatic control external (paper tape) Harvard Mark I , 1944 Zuse’s Z1, WW internal plug board ENIAC 1946 read-only memory ENIAC 1948 read-write memory EDVAC 1947 (concept )
- The same storage can be used to store program and data
Program = A sequence of instructions
How to control instruction sequencing? EDSAC 1950 Maurice Wilkes
1/20/2009 (^) CS152-Spring! 09 37
Commercial Activity: 1948-
IBM’s SSEC (follow on from Harvard Mark I)
Selective Sequence Electronic Calculator
- 150 word store.
- Instructions, constraints, and tables of data were read from paper tapes.
- 66 Tape reading stations!
- Tapes could be glued together to form a loop!
- Data could be output in one phase of computation and read in the next phase of computation.
And then there was IBM 701
IBM 701 -- 30 machines were sold in 1953-
used CRTs as main memory, 72 tubes of 32x32b each
IBM 650 -- a cheaper, drum based machine,
more than 120 were sold in 1954
and there were orders for 750 more!
Users stopped building their own machines.
Why was IBM late getting into computer
technology?
IBM was making too much money!
Even without computers, IBM revenues were doubling every 4 to 5 years in 40’s and 50’s.
1/20/2009 (^) CS152-Spring! 09 39
Computers in mid 50’s
- Hardware was expensive
- Stores were small (1000 words) ! No resident system software!
- Memory access time was 10 to 50 times slower than the processor cycle ! Instruction execution time was totally dominated by the memory reference time.
- The ability to design complex control circuits to execute an instruction was the central design concern as opposed to the speed of decoding or an ALU operation
- Programmer’s view of the machine was inseparable from the actual hardware implementation
The IBM 650 (1953-4)
[From 650 Manual, © IBM] Magnetic Drum (1,000 or 2, 10-digit decimal words) 20-digit accumulator Active instruction (including next program counter) Digit-serial ALU