SlideShare a Scribd company logo
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.pdf
PatriciaTutuani1
 
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 Often
C4Media
 
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 Delivery
David Rosen
 
lec01.pdf
lec01.pdflec01.pdf
lec01.pdf
BeiYu6
 
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
Allison Pollard
 
2014 12-10 aimee
2014 12-10 aimee2014 12-10 aimee
2014 12-10 aimee
Design World
 
Solving the System-Level Design Riddle
Solving the System-Level Design RiddleSolving the System-Level Design Riddle
Solving the System-Level Design Riddle
Design 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 Problems
optimizatiodirectdirect
 
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
BOSC 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 2013
Shanti 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 Microservices
Lightbend
 
The challenges of live events scalability
The challenges of live events scalabilityThe challenges of live events scalability
The challenges of live events scalability
Guy Tomer
 
Fundamentals.pptx
Fundamentals.pptxFundamentals.pptx
Fundamentals.pptx
dhivyak49
 
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
optimizatiodirectdirect
 
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
Lightbend
 
Monitoring Challenges - Monitorama 2016 - Monitoringless
Monitoring Challenges - Monitorama 2016 - MonitoringlessMonitoring Challenges - Monitorama 2016 - Monitoringless
Monitoring Challenges - Monitorama 2016 - Monitoringless
Adrian Cockcroft
 
Pitfalls of Object Oriented Programming
Pitfalls of Object Oriented ProgrammingPitfalls of Object Oriented Programming
Pitfalls of Object Oriented Programming
Slide_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

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

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

June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
ArianaBusciglio
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
NelTorrente
 

Recently uploaded (20)

June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
 

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