CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS...
Transcript of CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS...
![Page 1: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/1.jpg)
CS152,Spring2016
CS152ComputerArchitectureandEngineering
Lecture1-Introduc:on
Dr.GeorgeMichelogiannakisEECS,UniversityofCaliforniaatBerkeley
CRD,LawrenceBerkeleyNaFonalLaboratory!
http://inst.eecs.berkeley.edu/~cs152!
![Page 2: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/2.jpg)
CS152,Spring2016
Pronuncia:on
Miheloyannakis
(opFonal)
2
![Page 3: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/3.jpg)
CS152,Spring2016
WhatisComputerArchitecture?
3
ApplicaFon
Physics
Gaptoolargetobridgeinonestep
InitsbroadestdefiniFon,computerarchitectureisthedesignoftheabstrac0onlayersthatallowustoimplementinformaFonprocessingapplicaFonsefficientlyusingavailablemanufacturingtechnologies.
(butthereareexcep0ons,e.g.magne0ccompass)
![Page 4: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/4.jpg)
CS152,Spring2016
WhatisComputerArchitecture?
• AsetofrulesandmethodsthatdescribethefuncFonality,organizaFonandimplementaFonofcomputersystems.
• ComputerArchitectureisthescienceandartofselecFngandinterconnecFnghardwarecomponentstocreatecomputersthatmeetfuncFonal,performanceandcostgoals.
• Computerarchitectureactsastheintermediatebetweenprogrammersanddevices(e.g.,VLSI).
• Whatareyouheretolearn?
4
![Page 5: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/5.jpg)
CS152,Spring2016 5
Abstrac:onLayersinModernSystems
Algorithm
Gates/Register-TransferLevel(RTL)
ApplicaFon
InstrucFonSetArchitecture(ISA)
OperaFngSystem/VirtualMachines
Microarchitecture
Devices
ProgrammingLanguage
Circuits
Physics
EE141CS150
CS162
CS170CS164
EE143
CS152
UCBEECSCourses
![Page 6: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/6.jpg)
CS152,Spring2016
Costofso\waredevelopmentmakescompaFbilityamajorforceinmarket
ArchitectureCon:nuallyChanging
6
ApplicaFons
Technology
ApplicaFonssuggesthowtoimprovetechnology,providerevenuetofunddevelopment
ImprovedtechnologiesmakenewapplicaFonspossible
![Page 7: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/7.jpg)
CS152,Spring2016
Example:x86BackwardsCompa:bility
• Intel’s8086wasreleasedin1978with~50instrucFons• Today,x86has~650withallextensions
– Mostarerarelyemidedbycompilers
7
![Page 8: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/8.jpg)
CS152,Spring2016 8
Compu:ngDevicesThen…
EDSAC,UniversityofCambridge,UK,1949
![Page 9: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/9.jpg)
CS152,Spring2016 9
Compu:ngDevicesNow
Robots
Supercomputers Automobiles
Laptops
Set-top boxes
Smart phones
Servers Media Players
Sensor Nets
Routers
Cameras Games
![Page 10: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/10.jpg)
CS152,Spring2016
Moore’sLaw
• TheobservaFonthat,overthehistoryofcompuFnghardware,thenumberoftransistorsinadenseintegratedcircuit(chip)hasdoubledapproximatelyeverytwoyears.
10
![Page 11: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/11.jpg)
CS152,Spring2016
DesignComplexity
11
![Page 12: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/12.jpg)
CS152,Spring2016
DesignCapacity
• In1978,Intelcoulddesignachip(8086)with29,000transistors
• In2012,2,104million(IvyBridge)
• Rocket(RISC-V)whichyou’llbeusinghas75+milliontransistors
• DoeshumanitygetsmarterwithFme?
12
![Page 13: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/13.jpg)
CS152,Spring2016
ComputerArchitectsThen
13
![Page 14: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/14.jpg)
CS152,Spring2016
ComputerArchitectsNow
14
![Page 15: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/15.jpg)
CS152,Spring2016
TechnologyTrends
15
![Page 16: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/16.jpg)
CS152,Spring2016
PowerDissipa:on
16
![Page 17: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/17.jpg)
CS152,Spring2016
PowerWallinModernProcessors
17
While at the same time chips keep getting larger.
Therefore, not all of the chip can be powered on at the same time
![Page 18: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/18.jpg)
CS152,Spring2016 18
TheEndoftheUniprocessorEra
Singlebiggestchangeinthehistoryofcompu0ngsystems
![Page 19: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/19.jpg)
CS152,Spring2016
WeWentFromThis
• Cray-1
• Singleprocessor
19
![Page 20: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/20.jpg)
CS152,Spring2016
ToThis
• Titan,anXK7supercomputeratOakRidgeNaFonalLaboratory(CrayXT3)(299,008AMDOpteroncores)
20
![Page 21: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/21.jpg)
CS152,Spring2016
Result:SimpleCores
21
J. Huh, D.C. Burger, and S.W. Keckler. Exploring the Design Space of Future CMPs.
In International Conference on Parallel Architectures and Compilation Techniques (PACT), September, 2001
![Page 22: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/22.jpg)
CS152,Spring2016
Result:SimpleCores
22
![Page 23: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/23.jpg)
CS152,Spring2016
Result:Specializa:on
23
![Page 24: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/24.jpg)
CS152,Spring2016
BeforeThat:DennardScaling
• Power=AxCxFxV2
– A:AcFvityfactor– C:Capacitance– F:Frequency– V:Voltage
• Capacitanceisrelatedtoarea– So,asthesizeofthetransistorsshrunk,andthevoltagewasreduced,circuitscouldoperateathigherfrequenciesatthesamepower
• Butleakagecurrentandthresholdvoltageoftransistorssetalowerboundforvoltage
• Transistorsgetsmaller,theirpoweristhesame->Powerdensityincreases
24
![Page 25: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/25.jpg)
CS152,Spring2016
ALITTLEHISTORYLearnfromthemistakesofothers
25
![Page 26: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/26.jpg)
CS152,Spring2016
An:kytheraMechanism
• FoundinaGreekshipbelievedtohavesankaround80B.C.
• Itaccuratelypredictedlunarandsolareclipses,aswellassolar,lunarandplanetaryposiFons– Size:8inchesacross
26
![Page 27: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/27.jpg)
CS152,Spring2016 27
DifferenceEngine
1855.Cancomputeany6thdegreepolynomialbycalculaFngthedifferencebetween2Dmatrixelements
Speed:33to4432-digitnumbers
perminute!
Now the machine is at the Smithsonian
n
d2(n)
d1(n)
f(n)
0
41
1
2
2
2
3
2
4
2
4 6 8
43 47 53 61
![Page 28: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/28.jpg)
CS152,Spring2016 28
HarvardMarkI
• Builtin1944inIBMEndico`laboratories– HowardAiken–ProfessorofPhysicsatHarvard– Essen:allymechanicalbuthadsomeelectro-magne:callycontrolledrelaysandgears
– Weighed5tonsandhad750,000components– Asynchronizingclockthatbeatevery0.015seconds(66Hz)– InspiredbyCharlesBabbage’sanaly:cengine
Performance: 0.3 seconds for addition 6 seconds for multiplication 1 minute for a sine calculation Decimal arithmetic No Conditional Branch!
Broke down once a week!
![Page 29: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/29.jpg)
CS152,Spring2016 29
ElectronicNumericalIntegratorandComputer(ENIAC)• InspiredbyAtanasoffandBerry,EckertandMauchlydesignedand
builtENIAC(1943-45)attheUniversityofPennsylvania• Thefirst,completelyelectronic,operaFonal,general-purpose
analyFcalcalculator!– 30tons,72squaremeters,200KW
• Performance– Readin120cardsperminute– AddiFontook200µs,Division6ms– 1000FmesfasterthanMarkI
• Notveryreliable!
Application: Ballistic calculations angle = f (location, tail wind, cross wind, air density, temperature, weight of shell, propellant charge, ... )
WW-2 Effort
![Page 30: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/30.jpg)
CS152,Spring2016 30
Computersinmid50’s
• Hardwarewasexpensive• StoreinstrucFonsweresmall(1000words)
⇒Noresidentsystemso\ware!
• MemoryaccessFmewas10to50Fmesslowerthantheprocessorcycle⇒InstrucFonexecuFonFmewastotallydominatedbythememory
reference0me.
• TheabilitytodesigncomplexcontrolcircuitstoexecuteaninstrucFonwasthecentraldesignconcernasopposedtothespeedofdecodingoranALUoperaFon
• Programmer’sviewofthemachinewasinseparablefromtheactualhardwareimplementaFon
• MTBF20minuteswasstateoftheart
![Page 31: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/31.jpg)
CS152,Spring2016 31
Compa:bilityProblematIBM
By early 60’s, IBM had 4 incompatible lines of computers!
701 → 7094 650 → 7074 702 → 7080 1401 → 7010
Each system had its own
• Instruction set • I/O system and Secondary Storage: magnetic tapes, drums and disks • assemblers, compilers, libraries,... • market niche
business, scientific, real time, ...
⇒ IBM 360
![Page 32: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/32.jpg)
CS152,Spring2016 32
IBM360:DesignPremisesAmdahl,BlaauwandBrooks,1964
• Thedesignmustlenditselftogrowthandsuccessormachines• GeneralmethodforconnecFngI/Odevices• Totalperformance-answerspermonthratherthanbitspermicrosecond⇒ programmingaids
• MachinemustbecapableofsupervisingitselfwithoutmanualintervenFon
• Built-inhardwarefaultcheckingandlocaFngaidstoreducedownFme
• SimpletoassemblesystemswithredundantI/Odevices,memoriesetc.forfaulttolerance
• SomeproblemsrequiredfloaFng-pointlargerthan36bits
![Page 33: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/33.jpg)
CS152,Spring2016 33
IBM360:AGeneral-PurposeRegister(GPR)Machine• ProcessorState
– 16General-Purpose32-bitRegisters» maybeusedasindexandbaseregister
» Register0hassomespecialproper0es– 4FloaFngPoint64-bitRegisters– AProgramStatusWord(PSW)
» PC,Condi0oncodes,Controlflags• A32-bitmachinewith24-bitaddresses
– ButnoinstrucFoncontainsa24-bitaddress!• DataFormats
– 8-bitbytes,16-bithalf-words,32-bitwords,64-bitdouble-words
The IBM 360 is why bytes are 8-bits long today!
![Page 34: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/34.jpg)
CS152,Spring2016 34
IBM360:Ini:alImplementa:ons
Model30 ... Model70Storage 8K-64KB 256K-512KBDatapath 8-bit 64-bitCircuitDelay 30nsec/level 5nsec/levelLocalStore MainStore TransistorRegistersControlStore Readonly1µsec ConvenFonalcircuits
IBM360instruc0onsetarchitecture(ISA)completelyhidtheunderlyingtechnologicaldifferencesbetweenvariousmodels.Milestone:ThefirsttrueISAdesignedasportablehardware-soRwareinterface!
Withminormodifica0onsits0llsurvivestoday!
![Page 35: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/35.jpg)
CS152,Spring2016 35
IBM360:47yearslater…ThezSeriesz11Microprocessor
• 5.2GHzinIBM45nmPD-SOICMOStechnology• 1.4billiontransistorsin512mm2• 64-bitvirtualaddressing
– originalS/360was24-bit,andS/370was31-bitextension
• Quad-coredesign• Three-issueout-of-ordersuperscalarpipeline• Out-of-ordermemoryaccesses• Redundantdatapaths
– everyinstrucFonperformedintwoparalleldatapathsandresultscompared
• 64KBL1I-cache,128KBL1D-cacheon-chip• 1.5MBprivateL2unifiedcachepercore,on-chip• On-Chip24MBeDRAML3cache• Scalesto96-coremulFprocessorwith768MBofsharedL4eDRAM[ IBM, HotChips, 2010]
![Page 36: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/36.jpg)
CS152,Spring2016
StorageDevicesAlsoProgressed
36
![Page 37: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/37.jpg)
CS152,Spring2016
Magne:cStorageDevices
37
7.25 MB
![Page 38: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/38.jpg)
CS152,Spring2016
LOGISTICS
38
![Page 39: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/39.jpg)
CS152,Spring2016 39
RelatedCourses
CS61C CS152
CS150
Basiccomputerorganiza:on,firstlookatpipelines+caches
ComputerArchitecture,Firstlookatparallelarchitectures
DigitalLogicDesign,FPGAs
Strong
Prerequisite
CS250
VLSI Systems Design
CS252
GraduateComputerArchitecture,Advanced
Topics
![Page 40: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/40.jpg)
CS152,Spring2016 40
CS61CvsCS152vsCS252
• CS152focusesoninteracFonofso\wareandhardware– morearchitectureandlessdigitalengineering– moreusefulforOSdevelopers,compilerwriters,performanceprogrammers
• Muchofthematerialyou’lllearnthistermwaspreviouslyinCS252– SomeofthecurrentCS61CwasinCS252over20yearsago!– Maybeevery10years,shi\CS252->CS152->CS61C?
• CS152beginswhereCS61Cle\off(withoverlap)
• CS252delvesintomoredetailandhasaresearchproject
![Page 41: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/41.jpg)
CS152,Spring2016 41
CS152Execu:veSummary
TheprocessoryoubuiltinCS61C
Plus,thetechnologybehindchip-scalemulFprocessors(CMPs)andgraphicsprocessingunits(GPUs)
Whatyou’llunderstandandexperimentwithinCS152
![Page 42: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/42.jpg)
CS152,Spring2016 42
CS152StructureandSyllabusFivemodules
1. Simplemachinedesign(ISAs,microprogramming,unpipelinedmachines,IronLaw,simplepipelines)
2. Memoryhierarchy(DRAM,caches,opFmizaFons)plusvirtualmemorysystems,excepFons,interrupts
3. Complexpipelining(score-boarding,out-of-orderissue)4. Explicitlyparallelprocessors(vectormachines,VLIW
machines,mulFthreadedmachines)5. MulFprocessorarchitectures(memorymodels,cache
coherence,synchronizaFon)
![Page 43: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/43.jpg)
CS152,Spring2016 43
CS152AdministriviaInstructor:GeorgeMichelogiannakis,mihelog@eecs!
OfficeHours:A\erlectures,Wednesdays11-12:30pm341ASodaT.A.: ColinSchmidt,colins@eecs
OfficeHours:Tuesday2-4pm651SodaLectures: M/W,9-10:30AM,306Soda
SecFon: Th2PM-4PM,9105LaFmerText: ComputerArchitecture:AQuan0ta0veApproach,
HennesseyandPaWerson,5thEdi0on(2012)ReadingsassignedfromthisediFon,somereadingsavailableinolder
ediFons–seewebpage.
Webpage:http://inst.eecs.berkeley.edu/~cs152!Lecturesavailableonline
Piazzza: http://piazza.com/berkeley/spring2016/cs152
![Page 44: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/44.jpg)
CS152,Spring2016 44
CS152CourseComponents
• 15%Problemsets(onepermodule)– Intendedtohelpyoulearnthematerial.Feelfreetodiscusswithotherstudentsandinstructors,butmustturninyourownsoluFons.Gradingbasedmostlyoneffort,butquizzesassumethatyouhaveworkedthroughallproblems.SoluFonsreleaseda\erPSshandedin
• 45%Quizzes(onepermodule)– In-class,closed-book,nocalculators,nosmartphones,nolaptops,...– Basedonlectures,readings,problemsets,andlabs
• 40%Labs(onepermodule)– Labsuseadvancedprocessorandsystemsimulators– Directedplusopen-endedsecFonstoeachlab
• SecFonswillrevieweachoftheabove• Checkthewebsitefordeadlines!• SignupforPiazza!
![Page 45: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/45.jpg)
CS152,Spring2016 45
CS152Labs• Eachlabhasdirectedplusopen-endedassignments• DirectedporFon(2/7)isintendedtoensurestudentslearnmainconceptsbehindlab– Eachstudentmustperformownlabandhandintheirownlabreport
• Open-endedassignment(5/7)istoallowyoutoshowyourcreaFvity– Roughlya“mini-project”
» E.g.,tryanarchitecturalideaandmeasurepotenFal,ortrytoimproveadesign.NegaFveresultsOK(ifexplainable!)
– Studentscanworkindividuallyoringroupsoftwo– Groupopen-endedlabreportsmustbehandedinseparately(butstatewhoyouworkedwith)
– Studentscanworkindifferentgroupsfordifferentassignments
• LabreportsmustbereadableEnglishsummaries• Twofreetwo-dayextensionsperstudent• YoumayhavetolearnscripFnglanguages
![Page 46: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/46.jpg)
CS152,Spring2016
RISC-VISA
• RISC-Visanewsimple,clean,extensibleISAwedevelopedatBerkeleyforeducaFonandresearch– RISC-I/II,firstBerkeleyRISCimplementaFons– BerkeleyresearchmachinesSOAR/SPURconsideredRISC-III/IV
• BothofthedominantISAs(x86andARM)aretoocomplextouseforteaching
• RISC-VISAmanualavailableonwebpage– See“resources”onclasswebsite
• FullGCC-basedtoolchainavailable
46
![Page 47: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/47.jpg)
CS152,Spring2016
Chiselsimulators
• ChiselisanewhardwaredescripFonlanguagewedevelopedatBerkeleybasedonScala– ConstrucFngHardwareinaScalaEmbeddedLanguage
• LabswilluseRISC-VprocessorsimulatorsderivedfromChiselprocessordesigns– GivesyoumuchmoredetailedinformaFonthanothersimulators– CanmaptoFPGAorrealchiplayout
• YouneedtolearnsomeminimalChiselinCS152,butwe’llmakeChiselRTLsourceavailablesoyoucanseeallthedetailsofourprocessors
• CandolabprojectsbasedonmodifyingtheChiselRTLcodeifdesired
47
![Page 48: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/48.jpg)
CS152,Spring2016
ChiselDesignFlow
48
ChiselDesignDescripFon
C++code
FPGAVerilog
ASICVerilog
C++Simulator
C++Compiler
ChiselCompiler
FPGAEmulaFon
FPGATools
GDSLayout
ASICTools
![Page 49: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/49.jpg)
CS152,Spring2016
FAMILIARITYQUIZ
49
![Page 50: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/50.jpg)
CS152,Spring2016
PipelinedProcessor
50
![Page 51: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/51.jpg)
CS152,Spring2016
VirtualAddresses
51
![Page 52: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/52.jpg)
CS152,Spring2016
Caches
52
![Page 53: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/53.jpg)
CS152,Spring2016
BirdsCache(hoard)too!
• Sameidea.Bringvaluableobjectsclose• AcornWoodpeckersstoretheirfoodinholesdrilledintrees
53
![Page 54: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/54.jpg)
CS152,Spring2016 54
InConclusion
• ComputerArchitecture>>ISAsandRTL• CS152isaboutinteracFonofhardwareandso\ware,anddesignofappropriateabstracFonlayers
• ComputerarchitectureisshapedbytechnologyandapplicaFons– Historyprovideslessonsforthefuture
• ComputerScienceatthecrossroadsfromsequenFaltoparallelcompuFng– SalvaFonrequiresinnovaFoninmanyfields,includingcomputerarchitecture
• ReadChapter1&AppendixAfornextFme!
![Page 55: CS 152 Computer Architecture and Engineering Lecture 1 ...cs152/sp16/lectures/L01-Intro.pdf · CS 152 Computer Architecture and Engineering Lecture 1 - Introducon Dr. George Michelogiannakis](https://reader030.fdocuments.in/reader030/viewer/2022040601/5e8f15a7caa160185e676499/html5/thumbnails/55.jpg)
CS152,Spring2016 55
Acknowledgements
• Theseslidescontainmaterialdevelopedandcopyrightby:– Arvind(MIT)– KrsteAsanovic(MIT/UCB)– JoelEmer(Intel/MIT)– JamesHoe(CMU)– JohnKubiatowicz(UCB)– DavidPaderson(UCB)– Variouswebsitesandpapers
• MITmaterialderivedfromcourse6.823• UCBmaterialderivedfromcourseCS252