SlideShare a Scribd company logo
1 of 61
Download to read offline
cse141: Introduction to
Computer Architecture
Steven Swanson
Hung-Wei Tseng
1
Today’s Agenda
• What is architecture?
• Why is it important?
• At the highest level, where is architecture today?
Where is it going?
• What’s in this class?
2
What is architecture?
• How do you build a machine that computes?
• Quickly, safely, cheaply, efficiently, in technology X, for
applicationY, etc.
Civilization advances by extending
the number of important
operations which we can perform
without thinking about them.
-- Alfred NorthWhitehead
Orientation
The internet
Orientation
The internet
Orientation
System Bus
(PCI)
IO
Power
Memory
Power
Memory
Memory Memory
Architecture begins about here.
Orientation
System Bus
(PCI)
IO
Power
Memory
Power
Memory
Memory Memory
Architecture begins about here.
You are here
You are here
cse141
The processors go here…
The processors go here…
Abstractions of the Physical World…
Physics/Materials Devices Micro-architecture ArchitecturesProcessors
Abstractions of the Physical World…
Physics/Materials Devices Micro-architecture ArchitecturesProcessors
This Course
cse241a/
ECE dept
Physics/
Chemistry/
Material science
…for the Rest of the System
Architectures
JVM
Processor
Abstraction
Compilers Languages
Software
Engineers/
Applications
…for the Rest of the System
Architectures
JVM
Processor
Abstraction
Compilers Languages
Software
Engineers/
Applications
cse130cse121 cse131 cseEverythingElse
Why study architecture?
11
• As CEs or CSs you should understand how computers
work
• Processors are the basis for everything in CS (except theory)
• They are where the rubber meets the road.
• Performance is important
• Faster machines make applications cheaper
• Understanding hardware is essential to understanding how
systems behave
• It’s cool!
• Microprocessors are among the most sophisticated devices
manufactured by people
• How they work (and even that they work) as reliably and as
quickly as they do is amazing.
• Architecture is undergoing a revolution
• The future is uncertain
• Opportunities for innovation abound.
Performance andYou!
• Live Demo
12
Processor are Cool!
• Chips are made of silicon
• Aka “sand”
• The most adundant element in the
earth’s crust.
• Extremely pure (<1 part per billion)
• This is the purest stuff people make
Building Chips
Building Chips
• Photolithography
Silicon Wafer
Building Chips
• Photolithography
Silicon Wafer Silicon Wafer
SiO2
Grow silicon dioxide
Building Chips
• Photolithography
Silicon Wafer Silicon Wafer
SiO2
Grow silicon dioxide
Silicon Wafer
SiO2
Resist
Apply photo resist
Building Chips
• Photolithography
Silicon Wafer Silicon Wafer
SiO2
Grow silicon dioxide
Silicon Wafer
SiO2
Resist
Apply photo resist
Silicon Wafer
SiO2
Resist
Mask Mask
Expose to UV
Building Chips
• Photolithography
Silicon Wafer Silicon Wafer
SiO2
Grow silicon dioxide
Silicon Wafer
SiO2
Resist
Apply photo resist
Silicon Wafer
SiO2
Resist
Mask Mask
Expose to UV
Silicon Wafer
SiO2
Patterned resist
Building Chips
• Photolithography
Silicon Wafer Silicon Wafer
SiO2
Grow silicon dioxide
Silicon Wafer
SiO2
Resist
Apply photo resist
Silicon Wafer
SiO2
Resist
Mask Mask
Expose to UV
Silicon Wafer
SiO2
Patterned resist
Silicon Wafer
Etch SiO2
Building Chips
• Photolithography
Silicon Wafer Silicon Wafer
SiO2
Grow silicon dioxide
Silicon Wafer
SiO2
Resist
Apply photo resist
Silicon Wafer
SiO2
Resist
Mask Mask
Expose to UV
Silicon Wafer
SiO2
Patterned resist
Silicon Wafer
Etch SiO2
Silicon Wafer
Met
Deposit metal
Building Chips
• Photolithography
Silicon Wafer Silicon Wafer
SiO2
Grow silicon dioxide
Silicon Wafer
SiO2
Resist
Apply photo resist
Silicon Wafer
SiO2
Resist
Mask Mask
Expose to UV
Silicon Wafer
SiO2
Patterned resist
Silicon Wafer
Etch SiO2
Silicon Wafer
Met
Deposit metal
Silicon Wafer
Met
Etch SiO2
(Or not)
Building Blocks:Transistors
Building Blocks:Wires
State of the art CPU
• 1-2 Billion xtrs
• 45nm features
• 3-4Ghz
• Several 100 designers
• >5 years
• $3Billion fab
• 70 GFLOPS
18
Current state of
architecture
Since 1940
Since 1940
• Plug boards -> Java
• Hand assembling -> GCC
• No OS -> WindowsVista
Since 1940
• Plug boards -> Java
• Hand assembling -> GCC
• No OS -> WindowsVista
Flexible performance is a liquid asset
• 50,000 x speedup
• >1,000,000,000 x density
(Moore’s Law)
Moore’s Law: Raw transistors
The Importance of
Architecture
• We design smarter and smarter processors
• Process technology gives us about 20%
performance improvement per year
• Until 2004, performance grew at about
40% per year.
• The gap is due to architecture! (and
compilers)
Computer Performance
23
Computer Performance
23
1
10
100
1000
10000
1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010
RelativePerformance
Year
specINT95
specINT2000
specINT2006
Computer Performance
23
1
10
100
1000
10000
1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010
RelativePerformance
Year
specINT95
specINT2000
specINT2006
1
10
100
1000
10000
1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010
RelativePerformance
Year
specINT95
specINT2000
specINT2006
47% per year
Computer Performance
23
1
10
100
1000
10000
1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010
RelativePerformance
Year
specINT95
specINT2000
specINT2006
1
10
100
1000
10000
1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010
RelativePerformance
Year
specINT95
specINT2000
specINT2006
47% per year
1
10
100
1000
10000
1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010
RelativePerformance
Year
specINT95
specINT2000
specINT2006
47% per year
39% per year
Computer Performance
23
1
10
100
1000
10000
1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010
RelativePerformance
Year
specINT95
specINT2000
specINT2006
1
10
100
1000
10000
1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010
RelativePerformance
Year
specINT95
specINT2000
specINT2006
47% per year
1
10
100
1000
10000
1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010
RelativePerformance
Year
specINT95
specINT2000
specINT2006
47% per year
39% per year
1
10
100
1000
10000
1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010
RelativePerformance
Year
specINT95
specINT2000
specINT2006
47% per year
39% per year
25% per year
The clock speed addiction
24
• Clock speed is the biggest contributor to power
• Chip manufactures (Intel, esp.) pushed clock speeds very
hard in the 90s and early 2000s.
• Doubling the clock speed increases power by 2-8x
• Clock speed scaling is essentially finished.
0
1000
2000
3000
4000
5000
1996 1998 2000 2002 2004 2006 2008 2010
Clockspeed(Mhz)
Year
specINT2000
specINT2006
Power
25
Watts/cm2
1
10
100
1000
1.5µ 1µ 0.7µ 0.5µ 0.35µ 0.25µ 0.18µ 0.13µ 0.1µ 0.07µ
Power
25
Watts/cm2
1
10
100
1000
1.5µ 1µ 0.7µ 0.5µ 0.35µ 0.25µ 0.18µ 0.13µ 0.1µ 0.07µ
Power
25
Watts/cm2
1
10
100
1000
1.5µ 1µ 0.7µ 0.5µ 0.35µ 0.25µ 0.18µ 0.13µ 0.1µ 0.07µ
Power
25
Watts/cm2
1
10
100
1000
1.5µ 1µ 0.7µ 0.5µ 0.35µ 0.25µ 0.18µ 0.13µ 0.1µ 0.07µ
Power
25
Watts/cm2
1
10
100
1000
1.5µ 1µ 0.7µ 0.5µ 0.35µ 0.25µ 0.18µ 0.13µ 0.1µ 0.07µ
Power
25
Watts/cm2
1
10
100
1000
1.5µ 1µ 0.7µ 0.5µ 0.35µ 0.25µ 0.18µ 0.13µ 0.1µ 0.07µ
What’s Next: Brainiacs
• Hold the clock rate steady.
• Be smarter in silicon
• More sophisticated processors
• More clever algorithms
• This continues to deliver about 25% per year.
• But for how long?
26
What’s Next: Parallelism
• This is all the rage right now
• You probably own a multi-processor, they used to
be pretty exotic.
• They provide some performance, but it’s hard to
use.
• There aren’t that many threads
• Remember, flexible performance is a liquid asset
• Remember or look forward to cse121
27
28
Intel P4
1 core
Intel Core 2 Duo
2 cores
AMD Barcelona
4 cores
SPARC T1
8 cores
Intel Prototype
80 cores
Cell BE
8 + 1 cores
Intel Nahalem
4 cores
Computer Performance
29
Computer Performance
29
100
1000
10000
1996 1998 2000 2002 2004 2006 2008 2010
RelativePerformance
Year
specINT2000
specINT2006
39% per year
25% per year
Course Staff
• Instructor: Steven Swanson
• Lectures Tues + Thurs
• TA: Hung-Wei Tseng
• Discussion sec:Wed.
• (but not this week)
• See the course web page for
contact information and
office hours.
30
What’s in this Class
31
• Course outline
• Instruction sets
• The basics of silicon technology
• Measuring performance
• How processors work
• Basic pipelining
• Data and control hazards
• Branch prediction and speculation
• The memory system
• Introduction to multiprocessors
• Weekly technology digressions
• How various technologies actually work.
Your Tasks
• Read the text!
• Computer Organization and Design:The Hardware/Software
Interface (4th Edition) -- previous editions are not supported
• I’m not going to cover everything in class, but you are
responsible for all the assigned text.
• Come to class!
• I will cover things not in the book. You are responsible for
that too.
• Class participation (5%)
• Homeworks throughout the course. (10%)
• Weekly quizzes on Thursdays (10%)
• One midterm. (25%)
• One cumulative final. (35%)
• One project (15%)
• Design your own ISA!
32
The Link to 141L
• You do not need to take 141L along with 141,
but you may need both to get your degree.
• The classes are mostly independent, except
• The results of the project will be used in 141L
• You can earn extra credit by licensing your ISA groups in
141L who are not in 141
33
Grading
• Grading is on a 13 point scale -- F through A+
• You will get a letter grade on each assignment
• Your final grade is the weighted average of the
assignment grades.
• An excel spreadsheet calculates your grades
• We will post a sanitized version online once a week.
• It will tell you exactly where you stand.
• It specifies the curves used for each assignment etc.
• OpenOffice doesn’t run it properly.
34
Academic Honesty
• Don’t cheat.
• Cheating on a test will get you an F in the class and no
option to drop, and a visit with your college dean.
• Cheating on homeworks means you don’t have to turn
them in any more, but you don’t get points either. You
will also take at least 25% penalty on the exam grades.
• Copying solutions of the internet or a solutions
manual is cheating.
• Review the UCSD student handbook
• When in doubt, ask. Honest mistakes will be
forgiven.
35

More Related Content

Similar to 00 introduction

EE 330 Lect 3 Spring 2022.pdf
EE 330 Lect 3 Spring 2022.pdfEE 330 Lect 3 Spring 2022.pdf
EE 330 Lect 3 Spring 2022.pdfPatriciaTutuani1
 
Non equilibrium Molecular Simulations of Polymers under Flow Saving Energy th...
Non equilibrium Molecular Simulations of Polymers under Flow Saving Energy th...Non equilibrium Molecular Simulations of Polymers under Flow Saving Energy th...
Non equilibrium Molecular Simulations of Polymers under Flow Saving Energy th...ORAU
 
Canary Analyze All The Things: How We Learned to Keep Calm and Release Often
Canary Analyze All The Things: How We Learned to Keep Calm and Release OftenCanary Analyze All The Things: How We Learned to Keep Calm and Release Often
Canary Analyze All The Things: How We Learned to Keep Calm and Release OftenC4Media
 
What is Reactive programming?
What is Reactive programming?What is Reactive programming?
What is Reactive programming?Kevin Webber
 
DESIGN West 2013 Presentation: Accelerating Android Development and Delivery
DESIGN West 2013 Presentation: Accelerating Android Development and DeliveryDESIGN West 2013 Presentation: Accelerating Android Development and Delivery
DESIGN West 2013 Presentation: Accelerating Android Development and DeliveryDavid Rosen
 
lec01.pdf
lec01.pdflec01.pdf
lec01.pdfBeiYu6
 
Technical Excellence Doesn't Just Happen--Igniting a Craftsmanship Culture
Technical Excellence Doesn't Just Happen--Igniting a Craftsmanship CultureTechnical Excellence Doesn't Just Happen--Igniting a Craftsmanship Culture
Technical Excellence Doesn't Just Happen--Igniting a Craftsmanship CultureAllison Pollard
 
Solving the System-Level Design Riddle
Solving the System-Level Design RiddleSolving the System-Level Design Riddle
Solving the System-Level Design RiddleDesign World
 
What is the Siemens Open Library, and How it Decreased Development Time for E...
What is the Siemens Open Library, and How it Decreased Development Time for E...What is the Siemens Open Library, and How it Decreased Development Time for E...
What is the Siemens Open Library, and How it Decreased Development Time for E...DMC, Inc.
 
Addressing Uncertainty How to Model and Solve Energy Optimization Problems
Addressing Uncertainty How to Model and Solve Energy Optimization ProblemsAddressing Uncertainty How to Model and Solve Energy Optimization Problems
Addressing Uncertainty How to Model and Solve Energy Optimization Problemsoptimizatiodirectdirect
 
Coates bosc2010 clouds-fluff-and-no-substance
Coates bosc2010 clouds-fluff-and-no-substanceCoates bosc2010 clouds-fluff-and-no-substance
Coates bosc2010 clouds-fluff-and-no-substanceBOSC 2010
 
Plug Load Efficiency for Zero Energy Buildings Webinar 1 29 2013
Plug Load Efficiency for Zero Energy Buildings Webinar 1 29 2013Plug Load Efficiency for Zero Energy Buildings Webinar 1 29 2013
Plug Load Efficiency for Zero Energy Buildings Webinar 1 29 2013Shanti Pless
 
Digital Transformation with Kubernetes, Containers, and Microservices
Digital Transformation with Kubernetes, Containers, and MicroservicesDigital Transformation with Kubernetes, Containers, and Microservices
Digital Transformation with Kubernetes, Containers, and MicroservicesLightbend
 
The challenges of live events scalability
The challenges of live events scalabilityThe challenges of live events scalability
The challenges of live events scalabilityGuy Tomer
 
Fundamentals.pptx
Fundamentals.pptxFundamentals.pptx
Fundamentals.pptxdhivyak49
 
CPLEX Optimization Studio, Modeling, Theory, Best Practices and Case Studies
CPLEX Optimization Studio, Modeling, Theory, Best Practices and Case StudiesCPLEX Optimization Studio, Modeling, Theory, Best Practices and Case Studies
CPLEX Optimization Studio, Modeling, Theory, Best Practices and Case Studiesoptimizatiodirectdirect
 
Microservices, Kubernetes, and Application Modernization Done Right
Microservices, Kubernetes, and Application Modernization Done RightMicroservices, Kubernetes, and Application Modernization Done Right
Microservices, Kubernetes, and Application Modernization Done RightLightbend
 
Monitoring Challenges - Monitorama 2016 - Monitoringless
Monitoring Challenges - Monitorama 2016 - MonitoringlessMonitoring Challenges - Monitorama 2016 - Monitoringless
Monitoring Challenges - Monitorama 2016 - MonitoringlessAdrian Cockcroft
 
Pitfalls of Object Oriented Programming
Pitfalls of Object Oriented ProgrammingPitfalls of Object Oriented Programming
Pitfalls of Object Oriented ProgrammingSlide_N
 

Similar to 00 introduction (20)

EE 330 Lect 3 Spring 2022.pdf
EE 330 Lect 3 Spring 2022.pdfEE 330 Lect 3 Spring 2022.pdf
EE 330 Lect 3 Spring 2022.pdf
 
Non equilibrium Molecular Simulations of Polymers under Flow Saving Energy th...
Non equilibrium Molecular Simulations of Polymers under Flow Saving Energy th...Non equilibrium Molecular Simulations of Polymers under Flow Saving Energy th...
Non equilibrium Molecular Simulations of Polymers under Flow Saving Energy th...
 
Canary Analyze All The Things: How We Learned to Keep Calm and Release Often
Canary Analyze All The Things: How We Learned to Keep Calm and Release OftenCanary Analyze All The Things: How We Learned to Keep Calm and Release Often
Canary Analyze All The Things: How We Learned to Keep Calm and Release Often
 
What is Reactive programming?
What is Reactive programming?What is Reactive programming?
What is Reactive programming?
 
DESIGN West 2013 Presentation: Accelerating Android Development and Delivery
DESIGN West 2013 Presentation: Accelerating Android Development and DeliveryDESIGN West 2013 Presentation: Accelerating Android Development and Delivery
DESIGN West 2013 Presentation: Accelerating Android Development and Delivery
 
lec01.pdf
lec01.pdflec01.pdf
lec01.pdf
 
Technical Excellence Doesn't Just Happen--Igniting a Craftsmanship Culture
Technical Excellence Doesn't Just Happen--Igniting a Craftsmanship CultureTechnical Excellence Doesn't Just Happen--Igniting a Craftsmanship Culture
Technical Excellence Doesn't Just Happen--Igniting a Craftsmanship Culture
 
2014 12-10 aimee
2014 12-10 aimee2014 12-10 aimee
2014 12-10 aimee
 
Solving the System-Level Design Riddle
Solving the System-Level Design RiddleSolving the System-Level Design Riddle
Solving the System-Level Design Riddle
 
What is the Siemens Open Library, and How it Decreased Development Time for E...
What is the Siemens Open Library, and How it Decreased Development Time for E...What is the Siemens Open Library, and How it Decreased Development Time for E...
What is the Siemens Open Library, and How it Decreased Development Time for E...
 
Addressing Uncertainty How to Model and Solve Energy Optimization Problems
Addressing Uncertainty How to Model and Solve Energy Optimization ProblemsAddressing Uncertainty How to Model and Solve Energy Optimization Problems
Addressing Uncertainty How to Model and Solve Energy Optimization Problems
 
Coates bosc2010 clouds-fluff-and-no-substance
Coates bosc2010 clouds-fluff-and-no-substanceCoates bosc2010 clouds-fluff-and-no-substance
Coates bosc2010 clouds-fluff-and-no-substance
 
Plug Load Efficiency for Zero Energy Buildings Webinar 1 29 2013
Plug Load Efficiency for Zero Energy Buildings Webinar 1 29 2013Plug Load Efficiency for Zero Energy Buildings Webinar 1 29 2013
Plug Load Efficiency for Zero Energy Buildings Webinar 1 29 2013
 
Digital Transformation with Kubernetes, Containers, and Microservices
Digital Transformation with Kubernetes, Containers, and MicroservicesDigital Transformation with Kubernetes, Containers, and Microservices
Digital Transformation with Kubernetes, Containers, and Microservices
 
The challenges of live events scalability
The challenges of live events scalabilityThe challenges of live events scalability
The challenges of live events scalability
 
Fundamentals.pptx
Fundamentals.pptxFundamentals.pptx
Fundamentals.pptx
 
CPLEX Optimization Studio, Modeling, Theory, Best Practices and Case Studies
CPLEX Optimization Studio, Modeling, Theory, Best Practices and Case StudiesCPLEX Optimization Studio, Modeling, Theory, Best Practices and Case Studies
CPLEX Optimization Studio, Modeling, Theory, Best Practices and Case Studies
 
Microservices, Kubernetes, and Application Modernization Done Right
Microservices, Kubernetes, and Application Modernization Done RightMicroservices, Kubernetes, and Application Modernization Done Right
Microservices, Kubernetes, and Application Modernization Done Right
 
Monitoring Challenges - Monitorama 2016 - Monitoringless
Monitoring Challenges - Monitorama 2016 - MonitoringlessMonitoring Challenges - Monitorama 2016 - Monitoringless
Monitoring Challenges - Monitorama 2016 - Monitoringless
 
Pitfalls of Object Oriented Programming
Pitfalls of Object Oriented ProgrammingPitfalls of Object Oriented Programming
Pitfalls of Object Oriented Programming
 

More from marangburu42

Hennchthree 161102111515
Hennchthree 161102111515Hennchthree 161102111515
Hennchthree 161102111515marangburu42
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuitsmarangburu42
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuitsmarangburu42
 
Hennchthree 160912095304
Hennchthree 160912095304Hennchthree 160912095304
Hennchthree 160912095304marangburu42
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuitsmarangburu42
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuitsmarangburu42
 
Karnaugh mapping allaboutcircuits
Karnaugh mapping allaboutcircuitsKarnaugh mapping allaboutcircuits
Karnaugh mapping allaboutcircuitsmarangburu42
 
Aac boolean formulae
Aac   boolean formulaeAac   boolean formulae
Aac boolean formulaemarangburu42
 
Virtualmemoryfinal 161019175858
Virtualmemoryfinal 161019175858Virtualmemoryfinal 161019175858
Virtualmemoryfinal 161019175858marangburu42
 
File system interfacefinal
File system interfacefinalFile system interfacefinal
File system interfacefinalmarangburu42
 
File systemimplementationfinal
File systemimplementationfinalFile systemimplementationfinal
File systemimplementationfinalmarangburu42
 
Mass storage structurefinal
Mass storage structurefinalMass storage structurefinal
Mass storage structurefinalmarangburu42
 
All aboutcircuits karnaugh maps
All aboutcircuits karnaugh mapsAll aboutcircuits karnaugh maps
All aboutcircuits karnaugh mapsmarangburu42
 
Virtual memoryfinal
Virtual memoryfinalVirtual memoryfinal
Virtual memoryfinalmarangburu42
 
Mainmemoryfinal 161019122029
Mainmemoryfinal 161019122029Mainmemoryfinal 161019122029
Mainmemoryfinal 161019122029marangburu42
 

More from marangburu42 (20)

Hol
HolHol
Hol
 
Write miss
Write missWrite miss
Write miss
 
Hennchthree 161102111515
Hennchthree 161102111515Hennchthree 161102111515
Hennchthree 161102111515
 
Hennchthree
HennchthreeHennchthree
Hennchthree
 
Hennchthree
HennchthreeHennchthree
Hennchthree
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Hennchthree 160912095304
Hennchthree 160912095304Hennchthree 160912095304
Hennchthree 160912095304
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Karnaugh mapping allaboutcircuits
Karnaugh mapping allaboutcircuitsKarnaugh mapping allaboutcircuits
Karnaugh mapping allaboutcircuits
 
Aac boolean formulae
Aac   boolean formulaeAac   boolean formulae
Aac boolean formulae
 
Virtualmemoryfinal 161019175858
Virtualmemoryfinal 161019175858Virtualmemoryfinal 161019175858
Virtualmemoryfinal 161019175858
 
Io systems final
Io systems finalIo systems final
Io systems final
 
File system interfacefinal
File system interfacefinalFile system interfacefinal
File system interfacefinal
 
File systemimplementationfinal
File systemimplementationfinalFile systemimplementationfinal
File systemimplementationfinal
 
Mass storage structurefinal
Mass storage structurefinalMass storage structurefinal
Mass storage structurefinal
 
All aboutcircuits karnaugh maps
All aboutcircuits karnaugh mapsAll aboutcircuits karnaugh maps
All aboutcircuits karnaugh maps
 
Virtual memoryfinal
Virtual memoryfinalVirtual memoryfinal
Virtual memoryfinal
 
Mainmemoryfinal 161019122029
Mainmemoryfinal 161019122029Mainmemoryfinal 161019122029
Mainmemoryfinal 161019122029
 

Recently uploaded

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 

Recently uploaded (20)

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 

00 introduction

  • 1. cse141: Introduction to Computer Architecture Steven Swanson Hung-Wei Tseng 1
  • 2. Today’s Agenda • What is architecture? • Why is it important? • At the highest level, where is architecture today? Where is it going? • What’s in this class? 2
  • 3. What is architecture? • How do you build a machine that computes? • Quickly, safely, cheaply, efficiently, in technology X, for applicationY, etc. Civilization advances by extending the number of important operations which we can perform without thinking about them. -- Alfred NorthWhitehead
  • 8.
  • 9.
  • 12. The processors go here…
  • 13. The processors go here…
  • 14. Abstractions of the Physical World… Physics/Materials Devices Micro-architecture ArchitecturesProcessors
  • 15. Abstractions of the Physical World… Physics/Materials Devices Micro-architecture ArchitecturesProcessors This Course cse241a/ ECE dept Physics/ Chemistry/ Material science
  • 16. …for the Rest of the System Architectures JVM Processor Abstraction Compilers Languages Software Engineers/ Applications
  • 17. …for the Rest of the System Architectures JVM Processor Abstraction Compilers Languages Software Engineers/ Applications cse130cse121 cse131 cseEverythingElse
  • 18. Why study architecture? 11 • As CEs or CSs you should understand how computers work • Processors are the basis for everything in CS (except theory) • They are where the rubber meets the road. • Performance is important • Faster machines make applications cheaper • Understanding hardware is essential to understanding how systems behave • It’s cool! • Microprocessors are among the most sophisticated devices manufactured by people • How they work (and even that they work) as reliably and as quickly as they do is amazing. • Architecture is undergoing a revolution • The future is uncertain • Opportunities for innovation abound.
  • 20. Processor are Cool! • Chips are made of silicon • Aka “sand” • The most adundant element in the earth’s crust. • Extremely pure (<1 part per billion) • This is the purest stuff people make
  • 23. Building Chips • Photolithography Silicon Wafer Silicon Wafer SiO2 Grow silicon dioxide
  • 24. Building Chips • Photolithography Silicon Wafer Silicon Wafer SiO2 Grow silicon dioxide Silicon Wafer SiO2 Resist Apply photo resist
  • 25. Building Chips • Photolithography Silicon Wafer Silicon Wafer SiO2 Grow silicon dioxide Silicon Wafer SiO2 Resist Apply photo resist Silicon Wafer SiO2 Resist Mask Mask Expose to UV
  • 26. Building Chips • Photolithography Silicon Wafer Silicon Wafer SiO2 Grow silicon dioxide Silicon Wafer SiO2 Resist Apply photo resist Silicon Wafer SiO2 Resist Mask Mask Expose to UV Silicon Wafer SiO2 Patterned resist
  • 27. Building Chips • Photolithography Silicon Wafer Silicon Wafer SiO2 Grow silicon dioxide Silicon Wafer SiO2 Resist Apply photo resist Silicon Wafer SiO2 Resist Mask Mask Expose to UV Silicon Wafer SiO2 Patterned resist Silicon Wafer Etch SiO2
  • 28. Building Chips • Photolithography Silicon Wafer Silicon Wafer SiO2 Grow silicon dioxide Silicon Wafer SiO2 Resist Apply photo resist Silicon Wafer SiO2 Resist Mask Mask Expose to UV Silicon Wafer SiO2 Patterned resist Silicon Wafer Etch SiO2 Silicon Wafer Met Deposit metal
  • 29. Building Chips • Photolithography Silicon Wafer Silicon Wafer SiO2 Grow silicon dioxide Silicon Wafer SiO2 Resist Apply photo resist Silicon Wafer SiO2 Resist Mask Mask Expose to UV Silicon Wafer SiO2 Patterned resist Silicon Wafer Etch SiO2 Silicon Wafer Met Deposit metal Silicon Wafer Met Etch SiO2 (Or not)
  • 32. State of the art CPU • 1-2 Billion xtrs • 45nm features • 3-4Ghz • Several 100 designers • >5 years • $3Billion fab • 70 GFLOPS 18
  • 35. Since 1940 • Plug boards -> Java • Hand assembling -> GCC • No OS -> WindowsVista
  • 36. Since 1940 • Plug boards -> Java • Hand assembling -> GCC • No OS -> WindowsVista Flexible performance is a liquid asset • 50,000 x speedup • >1,000,000,000 x density (Moore’s Law)
  • 37. Moore’s Law: Raw transistors
  • 38. The Importance of Architecture • We design smarter and smarter processors • Process technology gives us about 20% performance improvement per year • Until 2004, performance grew at about 40% per year. • The gap is due to architecture! (and compilers)
  • 40. Computer Performance 23 1 10 100 1000 10000 1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010 RelativePerformance Year specINT95 specINT2000 specINT2006
  • 41. Computer Performance 23 1 10 100 1000 10000 1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010 RelativePerformance Year specINT95 specINT2000 specINT2006 1 10 100 1000 10000 1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010 RelativePerformance Year specINT95 specINT2000 specINT2006 47% per year
  • 42. Computer Performance 23 1 10 100 1000 10000 1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010 RelativePerformance Year specINT95 specINT2000 specINT2006 1 10 100 1000 10000 1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010 RelativePerformance Year specINT95 specINT2000 specINT2006 47% per year 1 10 100 1000 10000 1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010 RelativePerformance Year specINT95 specINT2000 specINT2006 47% per year 39% per year
  • 43. Computer Performance 23 1 10 100 1000 10000 1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010 RelativePerformance Year specINT95 specINT2000 specINT2006 1 10 100 1000 10000 1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010 RelativePerformance Year specINT95 specINT2000 specINT2006 47% per year 1 10 100 1000 10000 1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010 RelativePerformance Year specINT95 specINT2000 specINT2006 47% per year 39% per year 1 10 100 1000 10000 1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010 RelativePerformance Year specINT95 specINT2000 specINT2006 47% per year 39% per year 25% per year
  • 44. The clock speed addiction 24 • Clock speed is the biggest contributor to power • Chip manufactures (Intel, esp.) pushed clock speeds very hard in the 90s and early 2000s. • Doubling the clock speed increases power by 2-8x • Clock speed scaling is essentially finished. 0 1000 2000 3000 4000 5000 1996 1998 2000 2002 2004 2006 2008 2010 Clockspeed(Mhz) Year specINT2000 specINT2006
  • 45. Power 25 Watts/cm2 1 10 100 1000 1.5µ 1µ 0.7µ 0.5µ 0.35µ 0.25µ 0.18µ 0.13µ 0.1µ 0.07µ
  • 46. Power 25 Watts/cm2 1 10 100 1000 1.5µ 1µ 0.7µ 0.5µ 0.35µ 0.25µ 0.18µ 0.13µ 0.1µ 0.07µ
  • 47. Power 25 Watts/cm2 1 10 100 1000 1.5µ 1µ 0.7µ 0.5µ 0.35µ 0.25µ 0.18µ 0.13µ 0.1µ 0.07µ
  • 48. Power 25 Watts/cm2 1 10 100 1000 1.5µ 1µ 0.7µ 0.5µ 0.35µ 0.25µ 0.18µ 0.13µ 0.1µ 0.07µ
  • 49. Power 25 Watts/cm2 1 10 100 1000 1.5µ 1µ 0.7µ 0.5µ 0.35µ 0.25µ 0.18µ 0.13µ 0.1µ 0.07µ
  • 50. Power 25 Watts/cm2 1 10 100 1000 1.5µ 1µ 0.7µ 0.5µ 0.35µ 0.25µ 0.18µ 0.13µ 0.1µ 0.07µ
  • 51. What’s Next: Brainiacs • Hold the clock rate steady. • Be smarter in silicon • More sophisticated processors • More clever algorithms • This continues to deliver about 25% per year. • But for how long? 26
  • 52. What’s Next: Parallelism • This is all the rage right now • You probably own a multi-processor, they used to be pretty exotic. • They provide some performance, but it’s hard to use. • There aren’t that many threads • Remember, flexible performance is a liquid asset • Remember or look forward to cse121 27
  • 53. 28 Intel P4 1 core Intel Core 2 Duo 2 cores AMD Barcelona 4 cores SPARC T1 8 cores Intel Prototype 80 cores Cell BE 8 + 1 cores Intel Nahalem 4 cores
  • 55. Computer Performance 29 100 1000 10000 1996 1998 2000 2002 2004 2006 2008 2010 RelativePerformance Year specINT2000 specINT2006 39% per year 25% per year
  • 56. Course Staff • Instructor: Steven Swanson • Lectures Tues + Thurs • TA: Hung-Wei Tseng • Discussion sec:Wed. • (but not this week) • See the course web page for contact information and office hours. 30
  • 57. What’s in this Class 31 • Course outline • Instruction sets • The basics of silicon technology • Measuring performance • How processors work • Basic pipelining • Data and control hazards • Branch prediction and speculation • The memory system • Introduction to multiprocessors • Weekly technology digressions • How various technologies actually work.
  • 58. Your Tasks • Read the text! • Computer Organization and Design:The Hardware/Software Interface (4th Edition) -- previous editions are not supported • I’m not going to cover everything in class, but you are responsible for all the assigned text. • Come to class! • I will cover things not in the book. You are responsible for that too. • Class participation (5%) • Homeworks throughout the course. (10%) • Weekly quizzes on Thursdays (10%) • One midterm. (25%) • One cumulative final. (35%) • One project (15%) • Design your own ISA! 32
  • 59. The Link to 141L • You do not need to take 141L along with 141, but you may need both to get your degree. • The classes are mostly independent, except • The results of the project will be used in 141L • You can earn extra credit by licensing your ISA groups in 141L who are not in 141 33
  • 60. Grading • Grading is on a 13 point scale -- F through A+ • You will get a letter grade on each assignment • Your final grade is the weighted average of the assignment grades. • An excel spreadsheet calculates your grades • We will post a sanitized version online once a week. • It will tell you exactly where you stand. • It specifies the curves used for each assignment etc. • OpenOffice doesn’t run it properly. 34
  • 61. Academic Honesty • Don’t cheat. • Cheating on a test will get you an F in the class and no option to drop, and a visit with your college dean. • Cheating on homeworks means you don’t have to turn them in any more, but you don’t get points either. You will also take at least 25% penalty on the exam grades. • Copying solutions of the internet or a solutions manual is cheating. • Review the UCSD student handbook • When in doubt, ask. Honest mistakes will be forgiven. 35