SlideShare a Scribd company logo
CS101 Introduction to Computing
Lecture 7
Microprocessors
The last lecture, Lec 6, was on Web dev.
Today’s lecture, however, is a follow-up to Lec 5
• In lecture 5, we looked at the components that we
bring together to form a PC
• We looked at ports, power supply, mother board, add-
on cards (modem, LAN, video), memory, hard disk,
floppy disk, CD, and the microprocessor and the
associated cooling apparatus
• Today our focus will be on one of those components,
the microprocessor
Goals for Today
Today we want to learn about the microprocessor,
the key component, the brain, of a computer
We’ll learn about the function of a microprocessor
And its various sub-systems
– Bus interface unit]
– Data & instruction cache memory
– Instruction decoder
– Arithmetic-Logic unit
– Floating-point unit
– Control unit
Microprocessor
• The key element of all computers, providing the
mathematical and decision making ability
• Current state-of-the-art uPs (Pentium, Athlon,
SPARC, PowerPC) contain complex circuits
consisting of tens of millions of transistors
• They operate at ultra-fast speeds – doing over
a billion operations very second
• Made up from a semiconductor, Silicon
Integrated Circuits
• Commonly known as an IC or a chip
• A tiny piece of Silicon that has several
electronic parts on it
• Most of the size of an IC comes form the pins
and packaging; the actual Silicon occupies a
very small piece of the volume
• The smallest components on an IC are much
smaller than the thickness of a human hair
Those components are …
• Devices
– Transistors
– Diodes
– Resistors
– Capacitors
– Wires
• And are made of the following materials
– Silicon - semiconductor
– Copper - conductor
– Silicon Dioxide - insulator
A microprocessor system?
• uPs are powerful pieces of hardware, but not
much useful on their own
• Just as the human brain needs hands, feet,
eyes, ears, mouth to be useful; so does the uP
• A uP system is uP plus all the components it
requires to do a certain task
• A microcomputer is 1 example of a uP system
Micro-controllers?
• Micro-controllers are another type of uP
systems
• They are generally not that powerful, cost a few
dollars a piece, and are found embedded in
video games, VCRs, microwave ovens,
printers, autos, etc.
• They are a complete computer on a chip
containing direct input and output capability
and memory along with the uP on a single chip.
Many times they contain other specialized
application-specific components as well
QUESTION:
Why do we ever build just uPs?
Why not just build micro-controllers
that contain everything on chip?
Post your answers on the CS101 message board
More than 90% of the microprocessors/micro-
controllers manufactured are used in
embedded computing applications
In 2000 alone, 365 million uPs and 6.4 billion
micro-controllers were manufactured
The Main Memory Bottleneck
• Modern super-fast uPs can process a huge
amount of data in a short duration
• They require quick access to data to maximize
their performance
• If they don’t receive the data that they require,
they literally stop and wait – this results in
reduced performance and wasted power
• Current uPs can process an instruction in about
a ns. Time required for fetching data from main
memory (RAM) is of the order of 100 ns
Solution to the Bottleneck Problem
• Make the main memory faster
• Problem with that approach: The 1-ns memory is
extremely expensive as compared the currently
popular 100-ns memory
• Another solution: In addition to the relatively slow
main memory, put a small amount of ultra-fast RAM
right next to the uP on the same chip and make sure
that frequently used data and instructions resides in
that ultra-fast memory
• Advantage: Much better overall performance due to
fast access to frequently-used data and instructions
On-Chip Cache Memory (1)
• That small amount of memory located on the
same chip as the uP is called On-Chip Cache
Memory
• The uP stores a copy of frequently used data
and instructions in its cache memory
• When the uP desires to look at a piece of data,
it checks in the cache first. If it is not there, only
then the uP asks for the same from the main
memory
On-Chip Cache Memory (2)
• The small size and proximity to the uP makes
access times short, resulting in a boost in
performance (it is easy to find things in a small box placed next to you)
• uPs predict what data will be required for future
calculations and pre-fetches that data and
places it in the cache so that it is available
immediately when the need arises
• The speed-advantage of cache memory is
greatly dependent on the algorithm used for
deciding about what to put in cache or not
uP Building Blocks
Registers
Registers
Microprocessor
Instruction
Cache
Arithmetic
& Logic
Unit
Control
UnitBus
Interface
Unit
Data
Cache
Instruction
Decoder
I/O
RAM
Memory
Bus
System
Bus
Floating
Point
Unit
Bus Interface Unit
• Receives instructions & data from main
memory
• Instructions are then sent to the instruction
cache, data to the data cache
• Also receives the processed data and sends it
to the main memory
Instruction Decoder
• This unit receives the programming instructions
and decodes them into a form that is
understandable by the processing units, i.e. the
ALU or FPU
• Then, it passes on the decoded instruction to
the ALU or FPU
Arithmetic & Logic Unit (ALU)
• Also known as the “Integer Unit”
• It performs whole-number math calculations
(subtract, multiply, divide, etc) comparisons (is
greater than, is smaller than, etc.) and logical
operations (NOT, OR, AND, etc)
• The new breed of popular uPs have not one but
two almost identical ALU’s that can do
calculations simultaneously, doubling the
capability
Floating-Point Unit (FPU)
• Also known as the “Numeric Unit”
• It performs calculations that involve numbers
represented in the scientific notation (also
known as floating-point numbers).
• This notation can represent extremely small
and extremely large numbers in a compact form
• Floating-point calculations are required for
doing graphics, engineering and scientific work
• The ALU can do these calculations as well, but
will do them very slowly
Registers
• Both ALU & FPU have a very small amount of
super-fast private memory placed right next to
them for their exclusive use. These are called
registers
• The ALU & FPU store intermediate and final
results from their calculations in these registers
• Processed data goes back to the data cache
and then to main memory from these registers
Control Unit
• The brain of the uP
• Manages the whole uP
• Tasks include fetching instructions & data,
storing data, managing input/output devices
Registers
Registers
Microprocessor
Instruction
Cache
Arithmetic
& Logic
Unit
Control
UnitBus
Interface
Unit
Data
Cache
Instruction
Decoder
I/O
RAM
Memory
Bus
System
Bus
Floating
Point
Unit
That was the structure,
now let’s talk about the
language of a uP
Instruction Set
• The set of machine instructions that a uP
recognizes and can execute – the only
language uP knows
• An instruction set includes low-level, a single
step-at-a-time instructions, such as add,
subtract, multiply, and divide
• Each uP family has its unique instruction set
• Bigger instruction-sets mean more complex
chips (higher costs, reduced efficiency), but
shorter programs
The 1st uP: Intel 4004
• Introduced 1971
• 2250 transistors
• 108 kHz, 60,000 ops/sec
• 16 pins
• 10-micron process
• As powerful as the ENIAC which had 18000 tubes
and occupied a large room
• Targeted use: Calculators
• Cost: less than $100
Why Intel came up with the idea?
• A Japanese calculator manufacturer – Busicom
– wanted Intel to develop 16 separate IC’s for a
line of new calculators
• Intel, at that point in time known only as a
memory manufacturer, was quite small and did
not have the resources to do all 16 chips
• Ted Hoff came up with the idea of doing all 16
on a single chip
• Later, Intel realized that the 4004 could have
other uses as well
Currently Popular – Intel Pentium 4 (2.2GHz)
• Introduced December 2001
• 55 million transistors
• 32-bit word size
• 2 ALU’s, each working at 4.4GHz
• 128-bit FPU
• 0.13 micron process
• Targeted use: PC’s and low-end workstations
• Cost: around $600
Moore’s Law
• In 1965, one of the founders of Intel – Gordon
Moore – predicted that the number of
transistor on an IC (and therefore the
capability of microprocessors) will double
every year. Later he modified it to 18-months
• His prediction still holds true in ‘02. In fact, the
time required for doubling is contracting to the
original prediction, and is closer to a year now
Evolution of Intel Microprocessors
4004 8008 8080 8086 286 386 486 Pentium Pentium 2 Pentium 3 Pentium 4
1,000
10,000
100,000
1,000,000
10,000,000
100,000,000
1970 1975 1980 1985 1990 1995 2000 2005
4-, 8-, 16-, 32-, 64-bit (Word Length)
• The 4004 dealt with data in chunks of 4-bits at a
time
• Pentium 4 deals with data in chunks (words) of
32-bit length
• The new Itanium processor deals with 64-bit
chunks (words) at a time
• Why have more bits (longer words)?
kHz, MHz, GHz (Clock Frequency)
• 4004 worked at a clock frequency of 108kHz
• The latest processors have clock freqs. in GHz
• Out of 2 uPs having similar designs, one with
higher clock frequency will be more powerful
• Same is not true for 2 uPs of dissimilar designs.
Example: Out of PowerPC & Pentium 4 uPs
working at the same freq, the former performs
better due to superior design. Same for the
Athlon uP when compared with a Pentium
Enhancing the capability of a uP?
The computing capability of a uP can
be enhanced in many different ways:
– By increasing the clock frequency
– By increasing the word-width
– By having a more effective caching
algorithm and the right cache size
– By adding more functional units (e.g.
ALU’s, FPU’s, Vector/SIMD units, etc.)
– Improving the architecture
What have we learnt today?
Today we learnt about the microprocessor, the
key component, the brain, of a computer
We learnt about the function of a microprocessor
And its various sub-systems
– Bus interface unit
– Data & instruction cache memory
– Instruction decoder
– ALU
– Floating-point unit
– Control unit
Next lecture is on
binary numbers & logic operations
1. About the binary number system, and how it differs
from the decimal system
2. Positional notation for representing binary and
decimal numbers
3. A process (or algorithm) which can be used to
convert decimal numbers to binary numbers
4. Basic logic operations for Boolean variables, i.e.
NOT, OR, AND, XOR, NOR, NAND, XNOR
5. Construction of truth tables (How many rows?)

More Related Content

What's hot

Evolution of processors
Evolution of processorsEvolution of processors
Evolution of processors
Sandesh Agrawal
 
Evolution of microprocessors
Evolution of microprocessorsEvolution of microprocessors
Evolution of microprocessors
Anas Abrar
 
Evolution of Microprocessors
Evolution of MicroprocessorsEvolution of Microprocessors
Evolution of Microprocessors
aneetaanu
 
Evolution of Microprocessor
Evolution of MicroprocessorEvolution of Microprocessor
Evolution of Microprocessor
Green University of Bangladesh
 
Introduction to Microprocessors
Introduction to MicroprocessorsIntroduction to Microprocessors
Introduction to Microprocessors
76 Degree Creative
 
Micro processor, micro controller, raspberry pi3
Micro processor, micro controller, raspberry pi3Micro processor, micro controller, raspberry pi3
Micro processor, micro controller, raspberry pi3
Sai Kumar
 
Chapter 1 CSC118
Chapter 1 CSC118 Chapter 1 CSC118
Chapter 1 CSC118
Luqman al-Hakim
 
Microprocessors - Introduction
Microprocessors - IntroductionMicroprocessors - Introduction
Microprocessors - Introduction
VARUN BABUNELSON
 
Evolution Of Microprocessor
Evolution Of MicroprocessorEvolution Of Microprocessor
Evolution Of Microprocessor
guest3870d0
 
Evolution of Microprocessor
Evolution of MicroprocessorEvolution of Microprocessor
Evolution of Microprocessor
FarahNawar
 
0.2 evolution of microprocessor
0.2 evolution of microprocessor0.2 evolution of microprocessor
0.2 evolution of microprocessor
subhamsriramka
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
Ankush Srivastava
 
Intel Microprocessor
Intel MicroprocessorIntel Microprocessor
Intel Microprocessor
Home
 
Timeline of Processors
Timeline of ProcessorsTimeline of Processors
Timeline of Processors
Devraj Goswami
 
History of microprocessors
History of microprocessorsHistory of microprocessors
History of microprocessors
Emrah Aptoula
 
Sistem mikroprosessor
Sistem mikroprosessorSistem mikroprosessor
Sistem mikroprosessor
fahmihafid
 
Intel Microprocessors- a Top down Approach
Intel Microprocessors- a Top down ApproachIntel Microprocessors- a Top down Approach
Intel Microprocessors- a Top down Approach
Editor IJCATR
 
Microprocessor and Microcontroller - ITVoyagers
Microprocessor and Microcontroller - ITVoyagersMicroprocessor and Microcontroller - ITVoyagers
Microprocessor and Microcontroller - ITVoyagers
ITVoyagers
 
Intel microprocessor history
Intel microprocessor historyIntel microprocessor history
Intel microprocessor history
Ramzi Alqrainy
 
Intel microprocessors
Intel microprocessorsIntel microprocessors
Intel microprocessors
Dileep Bhandarkar
 

What's hot (20)

Evolution of processors
Evolution of processorsEvolution of processors
Evolution of processors
 
Evolution of microprocessors
Evolution of microprocessorsEvolution of microprocessors
Evolution of microprocessors
 
Evolution of Microprocessors
Evolution of MicroprocessorsEvolution of Microprocessors
Evolution of Microprocessors
 
Evolution of Microprocessor
Evolution of MicroprocessorEvolution of Microprocessor
Evolution of Microprocessor
 
Introduction to Microprocessors
Introduction to MicroprocessorsIntroduction to Microprocessors
Introduction to Microprocessors
 
Micro processor, micro controller, raspberry pi3
Micro processor, micro controller, raspberry pi3Micro processor, micro controller, raspberry pi3
Micro processor, micro controller, raspberry pi3
 
Chapter 1 CSC118
Chapter 1 CSC118 Chapter 1 CSC118
Chapter 1 CSC118
 
Microprocessors - Introduction
Microprocessors - IntroductionMicroprocessors - Introduction
Microprocessors - Introduction
 
Evolution Of Microprocessor
Evolution Of MicroprocessorEvolution Of Microprocessor
Evolution Of Microprocessor
 
Evolution of Microprocessor
Evolution of MicroprocessorEvolution of Microprocessor
Evolution of Microprocessor
 
0.2 evolution of microprocessor
0.2 evolution of microprocessor0.2 evolution of microprocessor
0.2 evolution of microprocessor
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Intel Microprocessor
Intel MicroprocessorIntel Microprocessor
Intel Microprocessor
 
Timeline of Processors
Timeline of ProcessorsTimeline of Processors
Timeline of Processors
 
History of microprocessors
History of microprocessorsHistory of microprocessors
History of microprocessors
 
Sistem mikroprosessor
Sistem mikroprosessorSistem mikroprosessor
Sistem mikroprosessor
 
Intel Microprocessors- a Top down Approach
Intel Microprocessors- a Top down ApproachIntel Microprocessors- a Top down Approach
Intel Microprocessors- a Top down Approach
 
Microprocessor and Microcontroller - ITVoyagers
Microprocessor and Microcontroller - ITVoyagersMicroprocessor and Microcontroller - ITVoyagers
Microprocessor and Microcontroller - ITVoyagers
 
Intel microprocessor history
Intel microprocessor historyIntel microprocessor history
Intel microprocessor history
 
Intel microprocessors
Intel microprocessorsIntel microprocessors
Intel microprocessors
 

Similar to Microprocessors

Microprocessors
MicroprocessorsMicroprocessors
Microprocessors
Bhupati chokara
 
Introduction to computers
Introduction to computersIntroduction to computers
Introduction to computers
Chenna Reddy
 
Lec # 04 Computer Hardware (CPU & Memory)-1-1.pptx
Lec # 04 Computer Hardware (CPU & Memory)-1-1.pptxLec # 04 Computer Hardware (CPU & Memory)-1-1.pptx
Lec # 04 Computer Hardware (CPU & Memory)-1-1.pptx
farantouqeer8
 
Cpu architecture
Cpu architecture Cpu architecture
Cpu architecture
VishalSingh996259
 
1. Introduction to Microprocessor.pptx
1. Introduction to Microprocessor.pptx1. Introduction to Microprocessor.pptx
1. Introduction to Microprocessor.pptx
ISMT College
 
Mba i-ifm-u-1- computer hardware system
Mba i-ifm-u-1- computer hardware systemMba i-ifm-u-1- computer hardware system
Mba i-ifm-u-1- computer hardware system
Rai University
 
Unit 1- computer hardware system
Unit 1- computer hardware systemUnit 1- computer hardware system
Unit 1- computer hardware system
Hardik Patel
 
computer organisation architecture.pptx
computer organisation architecture.pptxcomputer organisation architecture.pptx
computer organisation architecture.pptx
YaqubMd
 
SPC Unit 1
SPC Unit 1SPC Unit 1
SPC Unit 1
SIMONTHOMAS S
 
Bsc cs 1 fit u-1 computer hardware system
Bsc cs 1 fit u-1 computer hardware systemBsc cs 1 fit u-1 computer hardware system
Bsc cs 1 fit u-1 computer hardware system
Rai University
 
Mca i-fundamental of computer-u-1-computer hardware system
Mca  i-fundamental of  computer-u-1-computer hardware systemMca  i-fundamental of  computer-u-1-computer hardware system
Mca i-fundamental of computer-u-1-computer hardware system
Rai University
 
fundamental of computer-u-1-computer hardware system
fundamental of  computer-u-1-computer hardware systemfundamental of  computer-u-1-computer hardware system
fundamental of computer-u-1-computer hardware system
Rai University
 
Bba i-introduction to computer-u-1-computer hardware system
Bba  i-introduction to computer-u-1-computer hardware systemBba  i-introduction to computer-u-1-computer hardware system
Bba i-introduction to computer-u-1-computer hardware system
Rai University
 
Chap1 computer basics
Chap1 computer basicsChap1 computer basics
Chap1 computer basics
raksharao
 
02 computer evolution and performance.ppt [compatibility mode]
02 computer evolution and performance.ppt [compatibility mode]02 computer evolution and performance.ppt [compatibility mode]
02 computer evolution and performance.ppt [compatibility mode]
bogi007
 
10. compute-part-1
10. compute-part-110. compute-part-1
10. compute-part-1
Muhammad Ahad
 
Presentation about modern cpu.pptx
Presentation about modern cpu.pptxPresentation about modern cpu.pptx
Presentation about modern cpu.pptx
AsifKhan605177
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
Embeddedbvp
 
21PSP13
21PSP1321PSP13
Challenges in Embedded Computing
Challenges in Embedded ComputingChallenges in Embedded Computing
Challenges in Embedded Computing
Pradeep Kumar TS
 

Similar to Microprocessors (20)

Microprocessors
MicroprocessorsMicroprocessors
Microprocessors
 
Introduction to computers
Introduction to computersIntroduction to computers
Introduction to computers
 
Lec # 04 Computer Hardware (CPU & Memory)-1-1.pptx
Lec # 04 Computer Hardware (CPU & Memory)-1-1.pptxLec # 04 Computer Hardware (CPU & Memory)-1-1.pptx
Lec # 04 Computer Hardware (CPU & Memory)-1-1.pptx
 
Cpu architecture
Cpu architecture Cpu architecture
Cpu architecture
 
1. Introduction to Microprocessor.pptx
1. Introduction to Microprocessor.pptx1. Introduction to Microprocessor.pptx
1. Introduction to Microprocessor.pptx
 
Mba i-ifm-u-1- computer hardware system
Mba i-ifm-u-1- computer hardware systemMba i-ifm-u-1- computer hardware system
Mba i-ifm-u-1- computer hardware system
 
Unit 1- computer hardware system
Unit 1- computer hardware systemUnit 1- computer hardware system
Unit 1- computer hardware system
 
computer organisation architecture.pptx
computer organisation architecture.pptxcomputer organisation architecture.pptx
computer organisation architecture.pptx
 
SPC Unit 1
SPC Unit 1SPC Unit 1
SPC Unit 1
 
Bsc cs 1 fit u-1 computer hardware system
Bsc cs 1 fit u-1 computer hardware systemBsc cs 1 fit u-1 computer hardware system
Bsc cs 1 fit u-1 computer hardware system
 
Mca i-fundamental of computer-u-1-computer hardware system
Mca  i-fundamental of  computer-u-1-computer hardware systemMca  i-fundamental of  computer-u-1-computer hardware system
Mca i-fundamental of computer-u-1-computer hardware system
 
fundamental of computer-u-1-computer hardware system
fundamental of  computer-u-1-computer hardware systemfundamental of  computer-u-1-computer hardware system
fundamental of computer-u-1-computer hardware system
 
Bba i-introduction to computer-u-1-computer hardware system
Bba  i-introduction to computer-u-1-computer hardware systemBba  i-introduction to computer-u-1-computer hardware system
Bba i-introduction to computer-u-1-computer hardware system
 
Chap1 computer basics
Chap1 computer basicsChap1 computer basics
Chap1 computer basics
 
02 computer evolution and performance.ppt [compatibility mode]
02 computer evolution and performance.ppt [compatibility mode]02 computer evolution and performance.ppt [compatibility mode]
02 computer evolution and performance.ppt [compatibility mode]
 
10. compute-part-1
10. compute-part-110. compute-part-1
10. compute-part-1
 
Presentation about modern cpu.pptx
Presentation about modern cpu.pptxPresentation about modern cpu.pptx
Presentation about modern cpu.pptx
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
21PSP13
21PSP1321PSP13
21PSP13
 
Challenges in Embedded Computing
Challenges in Embedded ComputingChallenges in Embedded Computing
Challenges in Embedded Computing
 

More from HarshitParkar6677

Wi fi hacking
Wi fi hackingWi fi hacking
Wi fi hacking
HarshitParkar6677
 
D dos attack
D dos attackD dos attack
D dos attack
HarshitParkar6677
 
Notes chapter 6
Notes chapter  6Notes chapter  6
Notes chapter 6
HarshitParkar6677
 
Interface notes
Interface notesInterface notes
Interface notes
HarshitParkar6677
 
Chapter6 2
Chapter6 2Chapter6 2
Chapter6 2
HarshitParkar6677
 
Chapter6
Chapter6Chapter6
8086 cpu 1
8086 cpu 18086 cpu 1
8086 cpu 1
HarshitParkar6677
 
Chapter 6 notes
Chapter 6 notesChapter 6 notes
Chapter 6 notes
HarshitParkar6677
 
Chapter 5 notes
Chapter 5 notesChapter 5 notes
Chapter 5 notes
HarshitParkar6677
 
Chap6 procedures & macros
Chap6 procedures & macrosChap6 procedures & macros
Chap6 procedures & macros
HarshitParkar6677
 
Chapter 5 notes new
Chapter 5 notes newChapter 5 notes new
Chapter 5 notes new
HarshitParkar6677
 
Notes arithmetic instructions
Notes arithmetic instructionsNotes arithmetic instructions
Notes arithmetic instructions
HarshitParkar6677
 
Notes all instructions
Notes all instructionsNotes all instructions
Notes all instructions
HarshitParkar6677
 
Notes aaa aa
Notes aaa aaNotes aaa aa
Notes aaa aa
HarshitParkar6677
 
Notes 8086 instruction format
Notes 8086 instruction formatNotes 8086 instruction format
Notes 8086 instruction format
HarshitParkar6677
 
Misc
MiscMisc
Copy of 8086inst logical
Copy of 8086inst logicalCopy of 8086inst logical
Copy of 8086inst logical
HarshitParkar6677
 
Copy of 8086inst logical
Copy of 8086inst logicalCopy of 8086inst logical
Copy of 8086inst logical
HarshitParkar6677
 
Chapter3 program flow control instructions
Chapter3 program flow control instructionsChapter3 program flow control instructions
Chapter3 program flow control instructions
HarshitParkar6677
 
Chapter3 8086inst stringsl
Chapter3 8086inst stringslChapter3 8086inst stringsl
Chapter3 8086inst stringsl
HarshitParkar6677
 

More from HarshitParkar6677 (20)

Wi fi hacking
Wi fi hackingWi fi hacking
Wi fi hacking
 
D dos attack
D dos attackD dos attack
D dos attack
 
Notes chapter 6
Notes chapter  6Notes chapter  6
Notes chapter 6
 
Interface notes
Interface notesInterface notes
Interface notes
 
Chapter6 2
Chapter6 2Chapter6 2
Chapter6 2
 
Chapter6
Chapter6Chapter6
Chapter6
 
8086 cpu 1
8086 cpu 18086 cpu 1
8086 cpu 1
 
Chapter 6 notes
Chapter 6 notesChapter 6 notes
Chapter 6 notes
 
Chapter 5 notes
Chapter 5 notesChapter 5 notes
Chapter 5 notes
 
Chap6 procedures & macros
Chap6 procedures & macrosChap6 procedures & macros
Chap6 procedures & macros
 
Chapter 5 notes new
Chapter 5 notes newChapter 5 notes new
Chapter 5 notes new
 
Notes arithmetic instructions
Notes arithmetic instructionsNotes arithmetic instructions
Notes arithmetic instructions
 
Notes all instructions
Notes all instructionsNotes all instructions
Notes all instructions
 
Notes aaa aa
Notes aaa aaNotes aaa aa
Notes aaa aa
 
Notes 8086 instruction format
Notes 8086 instruction formatNotes 8086 instruction format
Notes 8086 instruction format
 
Misc
MiscMisc
Misc
 
Copy of 8086inst logical
Copy of 8086inst logicalCopy of 8086inst logical
Copy of 8086inst logical
 
Copy of 8086inst logical
Copy of 8086inst logicalCopy of 8086inst logical
Copy of 8086inst logical
 
Chapter3 program flow control instructions
Chapter3 program flow control instructionsChapter3 program flow control instructions
Chapter3 program flow control instructions
 
Chapter3 8086inst stringsl
Chapter3 8086inst stringslChapter3 8086inst stringsl
Chapter3 8086inst stringsl
 

Recently uploaded

一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
sydezfe
 
Transformers design and coooling methods
Transformers design and coooling methodsTransformers design and coooling methods
Transformers design and coooling methods
Roger Rozario
 
Ericsson LTE Throughput Troubleshooting Techniques.ppt
Ericsson LTE Throughput Troubleshooting Techniques.pptEricsson LTE Throughput Troubleshooting Techniques.ppt
Ericsson LTE Throughput Troubleshooting Techniques.ppt
wafawafa52
 
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Transcat
 
Zener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and ApplicationsZener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and Applications
Shiny Christobel
 
Bituminous road construction project based learning report
Bituminous road construction project based learning reportBituminous road construction project based learning report
Bituminous road construction project based learning report
CE19KaushlendraKumar
 
FULL STACK PROGRAMMING - Both Front End and Back End
FULL STACK PROGRAMMING - Both Front End and Back EndFULL STACK PROGRAMMING - Both Front End and Back End
FULL STACK PROGRAMMING - Both Front End and Back End
PreethaV16
 
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICSUNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
vmspraneeth
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
harshapolam10
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
Gino153088
 
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
MadhavJungKarki
 
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
upoux
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
PreethaV16
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
21UME003TUSHARDEB
 
Impartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 StandardImpartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 Standard
MuhammadJazib15
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
ijaia
 
Unit -II Spectroscopy - EC I B.Tech.pdf
Unit -II Spectroscopy - EC  I B.Tech.pdfUnit -II Spectroscopy - EC  I B.Tech.pdf
Unit -II Spectroscopy - EC I B.Tech.pdf
TeluguBadi
 
smart pill dispenser is designed to improve medication adherence and safety f...
smart pill dispenser is designed to improve medication adherence and safety f...smart pill dispenser is designed to improve medication adherence and safety f...
smart pill dispenser is designed to improve medication adherence and safety f...
um7474492
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
Paris Salesforce Developer Group
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
ecqow
 

Recently uploaded (20)

一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
 
Transformers design and coooling methods
Transformers design and coooling methodsTransformers design and coooling methods
Transformers design and coooling methods
 
Ericsson LTE Throughput Troubleshooting Techniques.ppt
Ericsson LTE Throughput Troubleshooting Techniques.pptEricsson LTE Throughput Troubleshooting Techniques.ppt
Ericsson LTE Throughput Troubleshooting Techniques.ppt
 
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
 
Zener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and ApplicationsZener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and Applications
 
Bituminous road construction project based learning report
Bituminous road construction project based learning reportBituminous road construction project based learning report
Bituminous road construction project based learning report
 
FULL STACK PROGRAMMING - Both Front End and Back End
FULL STACK PROGRAMMING - Both Front End and Back EndFULL STACK PROGRAMMING - Both Front End and Back End
FULL STACK PROGRAMMING - Both Front End and Back End
 
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICSUNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
 
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
 
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
 
Impartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 StandardImpartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 Standard
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
Unit -II Spectroscopy - EC I B.Tech.pdf
Unit -II Spectroscopy - EC  I B.Tech.pdfUnit -II Spectroscopy - EC  I B.Tech.pdf
Unit -II Spectroscopy - EC I B.Tech.pdf
 
smart pill dispenser is designed to improve medication adherence and safety f...
smart pill dispenser is designed to improve medication adherence and safety f...smart pill dispenser is designed to improve medication adherence and safety f...
smart pill dispenser is designed to improve medication adherence and safety f...
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
 

Microprocessors

  • 1. CS101 Introduction to Computing Lecture 7 Microprocessors
  • 2. The last lecture, Lec 6, was on Web dev. Today’s lecture, however, is a follow-up to Lec 5 • In lecture 5, we looked at the components that we bring together to form a PC • We looked at ports, power supply, mother board, add- on cards (modem, LAN, video), memory, hard disk, floppy disk, CD, and the microprocessor and the associated cooling apparatus • Today our focus will be on one of those components, the microprocessor
  • 3. Goals for Today Today we want to learn about the microprocessor, the key component, the brain, of a computer We’ll learn about the function of a microprocessor And its various sub-systems – Bus interface unit] – Data & instruction cache memory – Instruction decoder – Arithmetic-Logic unit – Floating-point unit – Control unit
  • 4. Microprocessor • The key element of all computers, providing the mathematical and decision making ability • Current state-of-the-art uPs (Pentium, Athlon, SPARC, PowerPC) contain complex circuits consisting of tens of millions of transistors • They operate at ultra-fast speeds – doing over a billion operations very second • Made up from a semiconductor, Silicon
  • 5. Integrated Circuits • Commonly known as an IC or a chip • A tiny piece of Silicon that has several electronic parts on it • Most of the size of an IC comes form the pins and packaging; the actual Silicon occupies a very small piece of the volume • The smallest components on an IC are much smaller than the thickness of a human hair
  • 6. Those components are … • Devices – Transistors – Diodes – Resistors – Capacitors – Wires • And are made of the following materials – Silicon - semiconductor – Copper - conductor – Silicon Dioxide - insulator
  • 7. A microprocessor system? • uPs are powerful pieces of hardware, but not much useful on their own • Just as the human brain needs hands, feet, eyes, ears, mouth to be useful; so does the uP • A uP system is uP plus all the components it requires to do a certain task • A microcomputer is 1 example of a uP system
  • 8. Micro-controllers? • Micro-controllers are another type of uP systems • They are generally not that powerful, cost a few dollars a piece, and are found embedded in video games, VCRs, microwave ovens, printers, autos, etc. • They are a complete computer on a chip containing direct input and output capability and memory along with the uP on a single chip. Many times they contain other specialized application-specific components as well
  • 9. QUESTION: Why do we ever build just uPs? Why not just build micro-controllers that contain everything on chip? Post your answers on the CS101 message board
  • 10. More than 90% of the microprocessors/micro- controllers manufactured are used in embedded computing applications In 2000 alone, 365 million uPs and 6.4 billion micro-controllers were manufactured
  • 11. The Main Memory Bottleneck • Modern super-fast uPs can process a huge amount of data in a short duration • They require quick access to data to maximize their performance • If they don’t receive the data that they require, they literally stop and wait – this results in reduced performance and wasted power • Current uPs can process an instruction in about a ns. Time required for fetching data from main memory (RAM) is of the order of 100 ns
  • 12. Solution to the Bottleneck Problem • Make the main memory faster • Problem with that approach: The 1-ns memory is extremely expensive as compared the currently popular 100-ns memory • Another solution: In addition to the relatively slow main memory, put a small amount of ultra-fast RAM right next to the uP on the same chip and make sure that frequently used data and instructions resides in that ultra-fast memory • Advantage: Much better overall performance due to fast access to frequently-used data and instructions
  • 13. On-Chip Cache Memory (1) • That small amount of memory located on the same chip as the uP is called On-Chip Cache Memory • The uP stores a copy of frequently used data and instructions in its cache memory • When the uP desires to look at a piece of data, it checks in the cache first. If it is not there, only then the uP asks for the same from the main memory
  • 14. On-Chip Cache Memory (2) • The small size and proximity to the uP makes access times short, resulting in a boost in performance (it is easy to find things in a small box placed next to you) • uPs predict what data will be required for future calculations and pre-fetches that data and places it in the cache so that it is available immediately when the need arises • The speed-advantage of cache memory is greatly dependent on the algorithm used for deciding about what to put in cache or not
  • 17. Bus Interface Unit • Receives instructions & data from main memory • Instructions are then sent to the instruction cache, data to the data cache • Also receives the processed data and sends it to the main memory
  • 18. Instruction Decoder • This unit receives the programming instructions and decodes them into a form that is understandable by the processing units, i.e. the ALU or FPU • Then, it passes on the decoded instruction to the ALU or FPU
  • 19. Arithmetic & Logic Unit (ALU) • Also known as the “Integer Unit” • It performs whole-number math calculations (subtract, multiply, divide, etc) comparisons (is greater than, is smaller than, etc.) and logical operations (NOT, OR, AND, etc) • The new breed of popular uPs have not one but two almost identical ALU’s that can do calculations simultaneously, doubling the capability
  • 20. Floating-Point Unit (FPU) • Also known as the “Numeric Unit” • It performs calculations that involve numbers represented in the scientific notation (also known as floating-point numbers). • This notation can represent extremely small and extremely large numbers in a compact form • Floating-point calculations are required for doing graphics, engineering and scientific work • The ALU can do these calculations as well, but will do them very slowly
  • 21. Registers • Both ALU & FPU have a very small amount of super-fast private memory placed right next to them for their exclusive use. These are called registers • The ALU & FPU store intermediate and final results from their calculations in these registers • Processed data goes back to the data cache and then to main memory from these registers
  • 22. Control Unit • The brain of the uP • Manages the whole uP • Tasks include fetching instructions & data, storing data, managing input/output devices
  • 24. That was the structure, now let’s talk about the language of a uP
  • 25. Instruction Set • The set of machine instructions that a uP recognizes and can execute – the only language uP knows • An instruction set includes low-level, a single step-at-a-time instructions, such as add, subtract, multiply, and divide • Each uP family has its unique instruction set • Bigger instruction-sets mean more complex chips (higher costs, reduced efficiency), but shorter programs
  • 26. The 1st uP: Intel 4004 • Introduced 1971 • 2250 transistors • 108 kHz, 60,000 ops/sec • 16 pins • 10-micron process • As powerful as the ENIAC which had 18000 tubes and occupied a large room • Targeted use: Calculators • Cost: less than $100
  • 27. Why Intel came up with the idea? • A Japanese calculator manufacturer – Busicom – wanted Intel to develop 16 separate IC’s for a line of new calculators • Intel, at that point in time known only as a memory manufacturer, was quite small and did not have the resources to do all 16 chips • Ted Hoff came up with the idea of doing all 16 on a single chip • Later, Intel realized that the 4004 could have other uses as well
  • 28. Currently Popular – Intel Pentium 4 (2.2GHz) • Introduced December 2001 • 55 million transistors • 32-bit word size • 2 ALU’s, each working at 4.4GHz • 128-bit FPU • 0.13 micron process • Targeted use: PC’s and low-end workstations • Cost: around $600
  • 29. Moore’s Law • In 1965, one of the founders of Intel – Gordon Moore – predicted that the number of transistor on an IC (and therefore the capability of microprocessors) will double every year. Later he modified it to 18-months • His prediction still holds true in ‘02. In fact, the time required for doubling is contracting to the original prediction, and is closer to a year now
  • 30. Evolution of Intel Microprocessors 4004 8008 8080 8086 286 386 486 Pentium Pentium 2 Pentium 3 Pentium 4 1,000 10,000 100,000 1,000,000 10,000,000 100,000,000 1970 1975 1980 1985 1990 1995 2000 2005
  • 31. 4-, 8-, 16-, 32-, 64-bit (Word Length) • The 4004 dealt with data in chunks of 4-bits at a time • Pentium 4 deals with data in chunks (words) of 32-bit length • The new Itanium processor deals with 64-bit chunks (words) at a time • Why have more bits (longer words)?
  • 32. kHz, MHz, GHz (Clock Frequency) • 4004 worked at a clock frequency of 108kHz • The latest processors have clock freqs. in GHz • Out of 2 uPs having similar designs, one with higher clock frequency will be more powerful • Same is not true for 2 uPs of dissimilar designs. Example: Out of PowerPC & Pentium 4 uPs working at the same freq, the former performs better due to superior design. Same for the Athlon uP when compared with a Pentium
  • 33. Enhancing the capability of a uP? The computing capability of a uP can be enhanced in many different ways: – By increasing the clock frequency – By increasing the word-width – By having a more effective caching algorithm and the right cache size – By adding more functional units (e.g. ALU’s, FPU’s, Vector/SIMD units, etc.) – Improving the architecture
  • 34. What have we learnt today? Today we learnt about the microprocessor, the key component, the brain, of a computer We learnt about the function of a microprocessor And its various sub-systems – Bus interface unit – Data & instruction cache memory – Instruction decoder – ALU – Floating-point unit – Control unit
  • 35. Next lecture is on binary numbers & logic operations 1. About the binary number system, and how it differs from the decimal system 2. Positional notation for representing binary and decimal numbers 3. A process (or algorithm) which can be used to convert decimal numbers to binary numbers 4. Basic logic operations for Boolean variables, i.e. NOT, OR, AND, XOR, NOR, NAND, XNOR 5. Construction of truth tables (How many rows?)