SlideShare a Scribd company logo
1 of 58
The Central Processing Unit:
What Goes on Inside the Computer
Objectives
• Identify the components of the central processing unit
and how they work together and interact with memory
• Describe how program instructions are executed by
the computer
• Explain how data is represented in the computer
• Describe how the computer finds instructions and
data
• Describe the components of a microcomputer system
unit’s motherboard
• List the measures of computer processing speed and
explain the approaches that increase speed
Contents
• The CPU
• Types of Storage
• Executing Programs
• Finding Data in Memory
• The System Unit
• Microprocessor
• Semiconductor Memory
• Bus Line
• Speed and Power
The CPU
The CPU
• Converts data into information
• Control center
• Set of electronic circuitry that executes
stored program instructions
• Two parts
– Control Unit (CU)
– Arithmetic Logic Unit (ALU)
Control Unit
CU
• Part of the hardware that is in-charge
• Directs the computer system to execute
stored program instructions
• Communicates with other parts of the
hardware
Arithmetic / Logic Unit
ALU
Performs arithmetic operations
Performs logical operations
Arithmetic Operations
Addition
Subtraction
Multiplication
Division
Logical Operations
• Evaluates conditions
• Makes comparisons
• Can compare
– Numbers
– Letters
– Special characters
Registers
Special-purpose
High-speed
Temporary storage
Located inside CPU
Instruction register
Holds instruction currently
being executed
Data register
Holds data waiting to be
processed
Holds results from processing
Types of Storage
• Secondary
– Data that will eventually be used
– Long-term
• Memory
– Data that will be used in the near future
– Temporary
– Faster access than storage
• Registers
– Data immediately related to the operation being
executed
– Faster access than memory
Measuring Storage Capacity
KB – kilobyte
• 1024 bytes
• Some diskettes
• Cache memory
MB – megabyte
• Million bytes
• RAM
GB – gigabyte
• Billion bytes
• Hard disks
• CDs and DVDs
TB – terabytes
• Trillion bytes
• Large hard disks
Memory
Many Names
Primary storage
Primary memory
Main storage
Internal storage
Main memory
Main Types of Memory
RAM
Random Access Memory
ROM
Read Only Memory
RAM
• Requires current to retain values
• Volatile
• Data and instructions can be read and
modified
• Users typically refer to this type of
memory
What’s in RAM?
• Operating System
• Program currently running
• Data needed by the program
• Intermediate results waiting to be output
ROM
• Non-volatile
• Instructions for booting the computer
• Data and instructions can be read, but
not modified
• Instructions are typically recorded at
factory
Executing Programs
• CU gets an instruction and places it in memory
• CU decodes the instruction
• CU notifies the appropriate part of hardware to take
action
• Control is transferred to the appropriate part of
hardware
• Task is performed
• Control is returned to the CU
Machine Cycle
I-time
• CU fetches an instruction from memory and
puts it into a register
• CU decodes the instruction and determines
the memory location of the data required
Machine Cycle
E-time
• Execution
– CU moves the data from memory to registers in
the ALU
– ALU is given control and executes the instruction
– Control returns to the CU
• CU stores the result of the operation in
memory or in a register
System Clock
• System clock produces pulses at a fixed rate
• Each pulse is one Machine Cycle
• One program instruction may actually be
several instructions to the CPU
• Each CPU instruction will take one pulse
• CPU has an instruction set – instructions that
it can understand and process
Finding Data in Memory
• Each location in memory has a unique address
– Address never changes
– Contents may change
• Memory location can hold one instruction or piece of
data
• Programmers use symbolic names
Data Representation
On/Off
Binary number system is
used to represent the state
of the circuit
Bits, Bytes, Words
• BIT
– Binary DigIT
– On/off circuit
– 1 or 0
• BYTE
– 8 bits
– Store one alphanumeric character
• WORD
– Size of the register
– Number of BITS that the CPU processes as a unit
Coding Schemes
• ASCII
– Uses one 8 bit byte
– 28
= 256 possible combinations or characters
– Virtually all PCs and many larger computers
• EBCDIC
– Uses one 8 bit byte
– 28 =256 possible combinations or characters
– Used primarily on IBM-compatible mainframes
• Unicode
– Uses two 8 bit bytes (16 bits)
– 216 = 65,536 possible combinations or characters
– Supports characters for all the world’s languages
– Downward-compatible with ASCII
The System Unit
The Black Box
• Houses electronic components
– Motherboard
– Storage devices
– Connections
• Some Apple Macintosh models have system
unit inside monitor
The System Unit
The Black Box
Motherboard
• Microprocessor chip
• Memory chips
• Connections to other parts
of the hardware
• Additional chips may be
added – math coprocessor
The System Unit
The Black Box
Storage Devices
Hard drive
Floppy drive
CD-ROM drive
DVD-ROM drive
Microprocessor
• CPU etched on a chip
• Chip size is ¼ x ¼ inch
• Composed of silicon
• Contains millions of transistors
– Electronic switches that can allow current to pass
through
Microprocessor Components
• Control Unit – CU
• Arithmetic / Logic Unit – ALU
• Registers
• System clock
Building a Better
Microprocessor
• Computers imprint circuitry onto
microchips
– Cheaper
– Faster
• Perform functions of other hardware
– Math coprocessor is now part of
microprocessor
– Multimedia instructions are now part of
microprocessor
Building a Better
Microprocessor
• The faster the computer runs
• The cheaper it is to make
• The more reliable it is
The more functions that are combined on
a microprocessor:
Types of Microprocessors
Intel
• Pentium
• Celeron
• Xeon and Itanium
Intel-compatible
• Cyrix
• AMD
Types of Microprocessors
• PowerPC
– Cooperative efforts of Apple, IBM, and
Motorola
– Used in Apple Macintosh family of PCs
– Found in servers and embedded systems
• Alpha
– Manufactured by Compaq
– High-end servers and workstations
Semiconductor Memory
• Reliable
• Compact
• Low cost
• Low power usage
• Mass-produced economically
• Volatile
• Monolithic
– All circuits together constitute an inseparable unit of storage
Semiconductor Memory
CMOS
• Complementary metal oxide semiconductor
• Uses little electricity
• Used in PC to store hardware settings that
are needed to boot the computer
• Retains information with current from battery
RAM
• Keeps the instructions and data for current
program
• Data in memory can be accessed randomly
• Easy and speedy access
• Volatile
• Erased
• Written over
Types of RAM
SRAM
• Retains contents as long as power is
maintained
• Faster than DRAM
Types of RAM
DRAM
• Must be constantly refreshed
• Used for most PC memory because of size
and cost
• SDRAM
– faster type of DRAM
• Rambus DRAM
– Faster than SDRAM
– Expensive
Adding RAM
• Purchase memory modules that are
packaged on circuit boards
• SIMMS – Chips on one side
• DIMMS – Chips on both sides
• Maximum amount of RAM that can be
installed is based upon the motherboard
design
ROM
• Programs and data that are permanently
recorded at the factory
• Read
• Use
• Cannot be changed by the user
• Stores boot routine that is activated when
computer is turned on
• Nonvolatile
PROM
• Programmable ROM
• ROM burner can change instructions on
some ROM chips
Bus Line
• Paths that transport electrical signals
• System bus
– Transports data between the CPU and memory
• Bus width
– Number of bits of data that can be carried at a
time
– Normally the same as the CPUs word size
• Speed measured in MHz
Bus Line
CPU can support a greater number and variety
of instructions
Larger bus width = More powerful
computer
CPU can transfer more
data at a time = Faster computer
CPU can reference
larger memory
addresses
= More memory
available
Expansion Buses
• Connect the motherboard to expansion slots
• Plug expansion boards into slots
– interface cards
– adapter cards
• Provides for external connectors / ports
– Serial
– Parallel
Expansion Buses
PC Buses and Ports
ISA Slow-speed devices like mouse, modem
PCI High-speed devices like hard disks and network cards
AGP Connects memory and graphics card for faster video
performance
USB Supports “daisy-chaining” eliminating the need for
multiple expansion cards; hot-swappable
IEEE 1394
(FireWire)
High-speed bus connecting video equipment to the
computer
PC Card Credit card sized PC card devices normally found on
laptops
Speed and Power
What makes a computer fast?
• Microprocessor speed
• Bus line size
• Availability of cache
• Flash memory
• RISC computers
• Parallel processing
Computer Processing Speed
Time to execute an instruction
• Millisecond
• Microsecond
• Nanosecond
– Modern computers
• Picosecond
– In the future
Microprocessor Speed
• Clock speed
– Megahertz (MHz)
– Gigahertz (GHz)
• Number of instructions per second
– Millions of Instructions Per Second (MIPS)
• Performance of complex mathematical
operations
– One million floating-point operations per second
(Megaflop )
Cache
• Small block of very fast temporary
memory
• Speed up data transfer
• Instructions and data used most
frequently or most recently
Cache
Step 1
Processor
requests
data or
instructions
Step 2
Go to address in main
memory and read
Step 3
Transfer to main CPU and cache
Next processor request
• Look first at cache
• Go to memory
P
R
O
C
E
S
S
O
R
R
A
M
Cache
Types of Cache
• Internal cache
– Level 1 (L1)
– Built into microprocessor
– Up to 128KB
• External cache
– Level 2 (L2)
– Separate chips
– 256KB or 512 KB
– SRAM technology
– Cheaper and slower than L1
– Faster and more expensive than memory
Flash Memory
• Nonvolatile RAM
• Used in
– Cellular phones
– Digital cameras
– Digital music recorders
– PDAs
Instruction Sets
• CISC Technology
– Complex Instruction Set Computing
– Conventional computers
– Many of the instructions are not used
• RISC Technology
– Reduced Instruction Set Computing
– Small subset of instructions
– Increases speed
– Programs with few complex instructions
• Graphics
• Engineering
Types of Processing
• Serial processing
– Execute one instruction at a time
– Fetch, decode, execute, store
• Parallel Processing
– Multiple processors used at the same time
– Can perform trillions of floating-point instructions
per second (teraflops)
– Ex: network servers, supercomputers
Types of Processing
• Pipelining
– Instruction’s action need not be complete before
the next begins
– Fetch instruction 1, begin to decode and fetch
instruction 2
Computer !

More Related Content

What's hot (20)

Computer fundamentals day02
Computer fundamentals  day02Computer fundamentals  day02
Computer fundamentals day02
 
08 operating system support
08 operating system support08 operating system support
08 operating system support
 
07 input output
07 input output07 input output
07 input output
 
Introduction to embedded systems
Introduction  to embedded systemsIntroduction  to embedded systems
Introduction to embedded systems
 
Basics of Computer! BATRA COMPUTER CENTRE IN AMBALA
Basics of Computer! BATRA COMPUTER CENTRE IN AMBALABasics of Computer! BATRA COMPUTER CENTRE IN AMBALA
Basics of Computer! BATRA COMPUTER CENTRE IN AMBALA
 
hierarchical bus system
 hierarchical bus system hierarchical bus system
hierarchical bus system
 
BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE
 
In out system
In out systemIn out system
In out system
 
chap 18 multicore computers
chap 18 multicore computers chap 18 multicore computers
chap 18 multicore computers
 
Basic computer architecture
Basic computer architectureBasic computer architecture
Basic computer architecture
 
Cpu and its execution statements
Cpu and its execution statementsCpu and its execution statements
Cpu and its execution statements
 
Ch12 io systems
Ch12   io systemsCh12   io systems
Ch12 io systems
 
09. storage-part-1
09. storage-part-109. storage-part-1
09. storage-part-1
 
06 External Memory
06  External  Memory06  External  Memory
06 External Memory
 
Input output
Input outputInput output
Input output
 
Cpu
CpuCpu
Cpu
 
Os ch1
Os ch1Os ch1
Os ch1
 
Intro to the unit
Intro to the unitIntro to the unit
Intro to the unit
 
Introduction to Embedded system
Introduction to Embedded systemIntroduction to Embedded system
Introduction to Embedded system
 
Aca module 1
Aca module 1Aca module 1
Aca module 1
 

Similar to Computer ! (20)

Chapter4 Data Processing
Chapter4 Data ProcessingChapter4 Data Processing
Chapter4 Data Processing
 
Computer Basics
Computer BasicsComputer Basics
Computer Basics
 
BAIT1003 Chapter 2
BAIT1003 Chapter 2BAIT1003 Chapter 2
BAIT1003 Chapter 2
 
Chap 3 CA.pptx
Chap 3 CA.pptxChap 3 CA.pptx
Chap 3 CA.pptx
 
CISSP - Chapter 3 - CPU Architecture
CISSP - Chapter 3 - CPU ArchitectureCISSP - Chapter 3 - CPU Architecture
CISSP - Chapter 3 - CPU Architecture
 
computer system structure
computer system structurecomputer system structure
computer system structure
 
1-ComputerBasics.ppt
1-ComputerBasics.ppt1-ComputerBasics.ppt
1-ComputerBasics.ppt
 
Processors
ProcessorsProcessors
Processors
 
01IntroductiontoInformationTechnology_special.ppt
01IntroductiontoInformationTechnology_special.ppt01IntroductiontoInformationTechnology_special.ppt
01IntroductiontoInformationTechnology_special.ppt
 
MK Sistem Operasi.pdf
MK Sistem Operasi.pdfMK Sistem Operasi.pdf
MK Sistem Operasi.pdf
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
Computer Main Comppponents.pdf
Computer Main Comppponents.pdfComputer Main Comppponents.pdf
Computer Main Comppponents.pdf
 
I.T for Management: What is a computer and how does it work
I.T for Management: What is a computer and how does it work I.T for Management: What is a computer and how does it work
I.T for Management: What is a computer and how does it work
 
What is computer and how it works
What is computer and how it worksWhat is computer and how it works
What is computer and how it works
 
Computer Architecture & Organization.ppt
Computer Architecture & Organization.pptComputer Architecture & Organization.ppt
Computer Architecture & Organization.ppt
 
12429908.ppt
12429908.ppt12429908.ppt
12429908.ppt
 
Challenges in Embedded Computing
Challenges in Embedded ComputingChallenges in Embedded Computing
Challenges in Embedded Computing
 
Cao u1
Cao u1Cao u1
Cao u1
 
computer organisation architecture.pptx
computer organisation architecture.pptxcomputer organisation architecture.pptx
computer organisation architecture.pptx
 
hard.ppt
hard.ppthard.ppt
hard.ppt
 

More from Usman Shah

Pneumatic and hydraulic conveying
Pneumatic and hydraulic conveyingPneumatic and hydraulic conveying
Pneumatic and hydraulic conveyingUsman Shah
 
Pelletization and granulation
Pelletization and granulationPelletization and granulation
Pelletization and granulationUsman Shah
 
Particulate technology (electrostatic precipitator)
Particulate technology (electrostatic precipitator)Particulate technology (electrostatic precipitator)
Particulate technology (electrostatic precipitator)Usman Shah
 
Particle size distribution
Particle size distributionParticle size distribution
Particle size distributionUsman Shah
 
Flow pattern of fluids
Flow pattern of fluidsFlow pattern of fluids
Flow pattern of fluidsUsman Shah
 
Cyclone separator
Cyclone separatorCyclone separator
Cyclone separatorUsman Shah
 
Belt conveyors and elevators
Belt conveyors and elevatorsBelt conveyors and elevators
Belt conveyors and elevatorsUsman Shah
 
Assignment cre lab
Assignment cre labAssignment cre lab
Assignment cre labUsman Shah
 
Intro to reactor design
Intro to reactor designIntro to reactor design
Intro to reactor designUsman Shah
 
Differential method of analysis of data
Differential method of analysis of dataDifferential method of analysis of data
Differential method of analysis of dataUsman Shah
 
Difference between batch,mixed flow & plug-flow reactor
Difference between  batch,mixed flow & plug-flow reactorDifference between  batch,mixed flow & plug-flow reactor
Difference between batch,mixed flow & plug-flow reactorUsman Shah
 
Catalyst activation
Catalyst activationCatalyst activation
Catalyst activationUsman Shah
 
Batch reactor designing
Batch reactor designingBatch reactor designing
Batch reactor designingUsman Shah
 

More from Usman Shah (20)

Pneumatic and hydraulic conveying
Pneumatic and hydraulic conveyingPneumatic and hydraulic conveying
Pneumatic and hydraulic conveying
 
Pelletization and granulation
Pelletization and granulationPelletization and granulation
Pelletization and granulation
 
Particulate technology (electrostatic precipitator)
Particulate technology (electrostatic precipitator)Particulate technology (electrostatic precipitator)
Particulate technology (electrostatic precipitator)
 
Particle size distribution
Particle size distributionParticle size distribution
Particle size distribution
 
Flow pattern of fluids
Flow pattern of fluidsFlow pattern of fluids
Flow pattern of fluids
 
Cyclone separator
Cyclone separatorCyclone separator
Cyclone separator
 
Belt conveyors and elevators
Belt conveyors and elevatorsBelt conveyors and elevators
Belt conveyors and elevators
 
Assignment cre lab
Assignment cre labAssignment cre lab
Assignment cre lab
 
Group 2
Group 2Group 2
Group 2
 
Group 1
Group 1Group 1
Group 1
 
Jamshaid ppt
Jamshaid pptJamshaid ppt
Jamshaid ppt
 
Intro to reactor design
Intro to reactor designIntro to reactor design
Intro to reactor design
 
Differential method of analysis of data
Differential method of analysis of dataDifferential method of analysis of data
Differential method of analysis of data
 
Difference between batch,mixed flow & plug-flow reactor
Difference between  batch,mixed flow & plug-flow reactorDifference between  batch,mixed flow & plug-flow reactor
Difference between batch,mixed flow & plug-flow reactor
 
Cre24
Cre24Cre24
Cre24
 
Cre ppt
Cre pptCre ppt
Cre ppt
 
Cre ppt saud
Cre ppt saudCre ppt saud
Cre ppt saud
 
Catalyst activation
Catalyst activationCatalyst activation
Catalyst activation
 
Batch reactor designing
Batch reactor designingBatch reactor designing
Batch reactor designing
 
What is cre
What is creWhat is cre
What is cre
 

Recently uploaded

Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...caitlingebhard1
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityVictorSzoltysek
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingWSO2
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard37
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfdanishmna97
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governanceWSO2
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)Samir Dash
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 

Recently uploaded (20)

Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governance
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 

Computer !

  • 1. The Central Processing Unit: What Goes on Inside the Computer
  • 2. Objectives • Identify the components of the central processing unit and how they work together and interact with memory • Describe how program instructions are executed by the computer • Explain how data is represented in the computer • Describe how the computer finds instructions and data • Describe the components of a microcomputer system unit’s motherboard • List the measures of computer processing speed and explain the approaches that increase speed
  • 3. Contents • The CPU • Types of Storage • Executing Programs • Finding Data in Memory • The System Unit • Microprocessor • Semiconductor Memory • Bus Line • Speed and Power
  • 5. The CPU • Converts data into information • Control center • Set of electronic circuitry that executes stored program instructions • Two parts – Control Unit (CU) – Arithmetic Logic Unit (ALU)
  • 6. Control Unit CU • Part of the hardware that is in-charge • Directs the computer system to execute stored program instructions • Communicates with other parts of the hardware
  • 7. Arithmetic / Logic Unit ALU Performs arithmetic operations Performs logical operations
  • 9. Logical Operations • Evaluates conditions • Makes comparisons • Can compare – Numbers – Letters – Special characters
  • 10. Registers Special-purpose High-speed Temporary storage Located inside CPU Instruction register Holds instruction currently being executed Data register Holds data waiting to be processed Holds results from processing
  • 11. Types of Storage • Secondary – Data that will eventually be used – Long-term • Memory – Data that will be used in the near future – Temporary – Faster access than storage • Registers – Data immediately related to the operation being executed – Faster access than memory
  • 12. Measuring Storage Capacity KB – kilobyte • 1024 bytes • Some diskettes • Cache memory MB – megabyte • Million bytes • RAM GB – gigabyte • Billion bytes • Hard disks • CDs and DVDs TB – terabytes • Trillion bytes • Large hard disks
  • 13. Memory Many Names Primary storage Primary memory Main storage Internal storage Main memory
  • 14. Main Types of Memory RAM Random Access Memory ROM Read Only Memory
  • 15. RAM • Requires current to retain values • Volatile • Data and instructions can be read and modified • Users typically refer to this type of memory
  • 16. What’s in RAM? • Operating System • Program currently running • Data needed by the program • Intermediate results waiting to be output
  • 17. ROM • Non-volatile • Instructions for booting the computer • Data and instructions can be read, but not modified • Instructions are typically recorded at factory
  • 18. Executing Programs • CU gets an instruction and places it in memory • CU decodes the instruction • CU notifies the appropriate part of hardware to take action • Control is transferred to the appropriate part of hardware • Task is performed • Control is returned to the CU
  • 19. Machine Cycle I-time • CU fetches an instruction from memory and puts it into a register • CU decodes the instruction and determines the memory location of the data required
  • 20. Machine Cycle E-time • Execution – CU moves the data from memory to registers in the ALU – ALU is given control and executes the instruction – Control returns to the CU • CU stores the result of the operation in memory or in a register
  • 21. System Clock • System clock produces pulses at a fixed rate • Each pulse is one Machine Cycle • One program instruction may actually be several instructions to the CPU • Each CPU instruction will take one pulse • CPU has an instruction set – instructions that it can understand and process
  • 22. Finding Data in Memory • Each location in memory has a unique address – Address never changes – Contents may change • Memory location can hold one instruction or piece of data • Programmers use symbolic names
  • 23. Data Representation On/Off Binary number system is used to represent the state of the circuit
  • 24. Bits, Bytes, Words • BIT – Binary DigIT – On/off circuit – 1 or 0 • BYTE – 8 bits – Store one alphanumeric character • WORD – Size of the register – Number of BITS that the CPU processes as a unit
  • 25. Coding Schemes • ASCII – Uses one 8 bit byte – 28 = 256 possible combinations or characters – Virtually all PCs and many larger computers • EBCDIC – Uses one 8 bit byte – 28 =256 possible combinations or characters – Used primarily on IBM-compatible mainframes • Unicode – Uses two 8 bit bytes (16 bits) – 216 = 65,536 possible combinations or characters – Supports characters for all the world’s languages – Downward-compatible with ASCII
  • 26. The System Unit The Black Box • Houses electronic components – Motherboard – Storage devices – Connections • Some Apple Macintosh models have system unit inside monitor
  • 27. The System Unit The Black Box Motherboard • Microprocessor chip • Memory chips • Connections to other parts of the hardware • Additional chips may be added – math coprocessor
  • 28. The System Unit The Black Box Storage Devices Hard drive Floppy drive CD-ROM drive DVD-ROM drive
  • 29. Microprocessor • CPU etched on a chip • Chip size is ¼ x ¼ inch • Composed of silicon • Contains millions of transistors – Electronic switches that can allow current to pass through
  • 30. Microprocessor Components • Control Unit – CU • Arithmetic / Logic Unit – ALU • Registers • System clock
  • 31. Building a Better Microprocessor • Computers imprint circuitry onto microchips – Cheaper – Faster • Perform functions of other hardware – Math coprocessor is now part of microprocessor – Multimedia instructions are now part of microprocessor
  • 32. Building a Better Microprocessor • The faster the computer runs • The cheaper it is to make • The more reliable it is The more functions that are combined on a microprocessor:
  • 33. Types of Microprocessors Intel • Pentium • Celeron • Xeon and Itanium Intel-compatible • Cyrix • AMD
  • 34. Types of Microprocessors • PowerPC – Cooperative efforts of Apple, IBM, and Motorola – Used in Apple Macintosh family of PCs – Found in servers and embedded systems • Alpha – Manufactured by Compaq – High-end servers and workstations
  • 35. Semiconductor Memory • Reliable • Compact • Low cost • Low power usage • Mass-produced economically • Volatile • Monolithic – All circuits together constitute an inseparable unit of storage
  • 36. Semiconductor Memory CMOS • Complementary metal oxide semiconductor • Uses little electricity • Used in PC to store hardware settings that are needed to boot the computer • Retains information with current from battery
  • 37. RAM • Keeps the instructions and data for current program • Data in memory can be accessed randomly • Easy and speedy access • Volatile • Erased • Written over
  • 38. Types of RAM SRAM • Retains contents as long as power is maintained • Faster than DRAM
  • 39. Types of RAM DRAM • Must be constantly refreshed • Used for most PC memory because of size and cost • SDRAM – faster type of DRAM • Rambus DRAM – Faster than SDRAM – Expensive
  • 40. Adding RAM • Purchase memory modules that are packaged on circuit boards • SIMMS – Chips on one side • DIMMS – Chips on both sides • Maximum amount of RAM that can be installed is based upon the motherboard design
  • 41. ROM • Programs and data that are permanently recorded at the factory • Read • Use • Cannot be changed by the user • Stores boot routine that is activated when computer is turned on • Nonvolatile
  • 42. PROM • Programmable ROM • ROM burner can change instructions on some ROM chips
  • 43. Bus Line • Paths that transport electrical signals • System bus – Transports data between the CPU and memory • Bus width – Number of bits of data that can be carried at a time – Normally the same as the CPUs word size • Speed measured in MHz
  • 44. Bus Line CPU can support a greater number and variety of instructions Larger bus width = More powerful computer CPU can transfer more data at a time = Faster computer CPU can reference larger memory addresses = More memory available
  • 45. Expansion Buses • Connect the motherboard to expansion slots • Plug expansion boards into slots – interface cards – adapter cards • Provides for external connectors / ports – Serial – Parallel
  • 47. PC Buses and Ports ISA Slow-speed devices like mouse, modem PCI High-speed devices like hard disks and network cards AGP Connects memory and graphics card for faster video performance USB Supports “daisy-chaining” eliminating the need for multiple expansion cards; hot-swappable IEEE 1394 (FireWire) High-speed bus connecting video equipment to the computer PC Card Credit card sized PC card devices normally found on laptops
  • 48. Speed and Power What makes a computer fast? • Microprocessor speed • Bus line size • Availability of cache • Flash memory • RISC computers • Parallel processing
  • 49. Computer Processing Speed Time to execute an instruction • Millisecond • Microsecond • Nanosecond – Modern computers • Picosecond – In the future
  • 50. Microprocessor Speed • Clock speed – Megahertz (MHz) – Gigahertz (GHz) • Number of instructions per second – Millions of Instructions Per Second (MIPS) • Performance of complex mathematical operations – One million floating-point operations per second (Megaflop )
  • 51. Cache • Small block of very fast temporary memory • Speed up data transfer • Instructions and data used most frequently or most recently
  • 52. Cache Step 1 Processor requests data or instructions Step 2 Go to address in main memory and read Step 3 Transfer to main CPU and cache Next processor request • Look first at cache • Go to memory P R O C E S S O R R A M Cache
  • 53. Types of Cache • Internal cache – Level 1 (L1) – Built into microprocessor – Up to 128KB • External cache – Level 2 (L2) – Separate chips – 256KB or 512 KB – SRAM technology – Cheaper and slower than L1 – Faster and more expensive than memory
  • 54. Flash Memory • Nonvolatile RAM • Used in – Cellular phones – Digital cameras – Digital music recorders – PDAs
  • 55. Instruction Sets • CISC Technology – Complex Instruction Set Computing – Conventional computers – Many of the instructions are not used • RISC Technology – Reduced Instruction Set Computing – Small subset of instructions – Increases speed – Programs with few complex instructions • Graphics • Engineering
  • 56. Types of Processing • Serial processing – Execute one instruction at a time – Fetch, decode, execute, store • Parallel Processing – Multiple processors used at the same time – Can perform trillions of floating-point instructions per second (teraflops) – Ex: network servers, supercomputers
  • 57. Types of Processing • Pipelining – Instruction’s action need not be complete before the next begins – Fetch instruction 1, begin to decode and fetch instruction 2