SlideShare uma empresa Scribd logo
1 de 61
CENTRAL PROCESSING
UNIT (CPU)
ABIN V.
ARKKATTU
The CPU
INTRODUCTION
• It acts as BRAIN OF THE COMPUTER.
• Converts data into information
• Control center
• Set of electronic circuitry that executes
stored program instructions to perform the
basic arithmetical ,logical , input and output
operations.
COMPONENTS OF CPU
• CONTROL UNIT
• ARITHMETIC LOGIC UNIT(ALU)
• A number of Registers
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 operation
 Performs logical operations
Arithmetic Operations
Addition
Subtraction
Multiplication
Division
Logical Operations
• Evaluates conditions
• Makes comparisons
• Can compare
– Numbers
– Letters
– Special characters
Registers
 A Special-purpose ,High speed , Temporary
storage located inside CPU.
 All data must be represented in register
before it can be processed.
Instruction register

Data register

Holds instruction currently
being executed

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
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
CENTRAL PROCESSING
UNIT (CPU)
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 more functions that are combined on
a microprocessor:
• The faster the computer runs
• The cheaper it is to make
• The more reliable it is
Types of Microprocessors
Intel

Intel-compatible

• Pentium

• Cyrix

• Celeron

• AMD

• Xeon and Itanium
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
Larger bus width

=

More powerful
computer

CPU can transfer more
data at a time

=

Faster computer

=

More memory
available

CPU can reference
larger memory
addresses

CPU can support a greater number and variety
of instructions
Expansion Buses
• Connect the motherboard to expansion slots
• Plug expansion boards into slots
– interface cards
– adapter cards

• Provides for external connectors / ports
– Serial
– Parallel
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 High-speed bus connecting video equipment to the
(FireWire) 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
P
R
O
C
E
S
S
O
R
Step 1
Processor
requests
data or
instructions

Step 3
Transfer to main CPU and cache
R
Cache

A
M

Step 2
Go to address in main
memory and read
Next processor request
• Look first at cache
• Go to memory
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 PORTS…
CENTRAL PROCESSING
UNIT (CPU)
ABIN .V
.ARKKATTU

Mais conteúdo relacionado

Mais procurados

CS4109 Computer System Architecture
CS4109 Computer System ArchitectureCS4109 Computer System Architecture
CS4109 Computer System Architecturektosri
 
Computer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and MicrocontrollerComputer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and MicrocontrollerAmrutaMehata
 
Central Processing Unit CUP by madridista ujjwal
Central Processing Unit CUP by madridista ujjwalCentral Processing Unit CUP by madridista ujjwal
Central Processing Unit CUP by madridista ujjwalUjwal Limbu
 
The CPU and Memory and Major Components
The CPU and Memory and  Major ComponentsThe CPU and Memory and  Major Components
The CPU and Memory and Major Componentsimtiazalijoono
 
08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)Akhila Dakshina
 
Central Processing Unit (Cpu)kurdish
Central Processing Unit (Cpu)kurdishCentral Processing Unit (Cpu)kurdish
Central Processing Unit (Cpu)kurdishRebin Daho
 
CPU (Central Processing Units)
CPU (Central Processing Units)CPU (Central Processing Units)
CPU (Central Processing Units)Prabin Maharjan
 
CPU-Central Processing Unit (With History and Complete Detail)
CPU-Central Processing Unit (With History and Complete Detail)CPU-Central Processing Unit (With History and Complete Detail)
CPU-Central Processing Unit (With History and Complete Detail)Adeel Rasheed
 
Computer Architecture and organization
Computer Architecture and organizationComputer Architecture and organization
Computer Architecture and organizationBadrinath Kadam
 
BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE Himanshu Sharma
 
Computer architecture
Computer architectureComputer architecture
Computer architectureBurhan Ahmed
 
Computer Structures
Computer StructuresComputer Structures
Computer Structuresguestfc2f62
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecturejeetesh036
 
Cpu and its functions
Cpu and its functionsCpu and its functions
Cpu and its functionsmyrajendra
 
Introduction to Computer Architecture
Introduction to Computer ArchitectureIntroduction to Computer Architecture
Introduction to Computer ArchitectureAnkush Srivastava
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architectureKumar
 

Mais procurados (20)

Cpu
CpuCpu
Cpu
 
Basic computer architecture
Basic computer architectureBasic computer architecture
Basic computer architecture
 
CS4109 Computer System Architecture
CS4109 Computer System ArchitectureCS4109 Computer System Architecture
CS4109 Computer System Architecture
 
Computer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and MicrocontrollerComputer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and Microcontroller
 
Central Processing Unit CUP by madridista ujjwal
Central Processing Unit CUP by madridista ujjwalCentral Processing Unit CUP by madridista ujjwal
Central Processing Unit CUP by madridista ujjwal
 
The CPU and Memory and Major Components
The CPU and Memory and  Major ComponentsThe CPU and Memory and  Major Components
The CPU and Memory and Major Components
 
Slides of cpu
Slides of cpuSlides of cpu
Slides of cpu
 
08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)
 
Central Processing Unit (Cpu)kurdish
Central Processing Unit (Cpu)kurdishCentral Processing Unit (Cpu)kurdish
Central Processing Unit (Cpu)kurdish
 
CPU (Central Processing Units)
CPU (Central Processing Units)CPU (Central Processing Units)
CPU (Central Processing Units)
 
CPU-Central Processing Unit (With History and Complete Detail)
CPU-Central Processing Unit (With History and Complete Detail)CPU-Central Processing Unit (With History and Complete Detail)
CPU-Central Processing Unit (With History and Complete Detail)
 
Computer Architecture and organization
Computer Architecture and organizationComputer Architecture and organization
Computer Architecture and organization
 
Unit 1
Unit 1Unit 1
Unit 1
 
BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Computer Structures
Computer StructuresComputer Structures
Computer Structures
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
 
Cpu and its functions
Cpu and its functionsCpu and its functions
Cpu and its functions
 
Introduction to Computer Architecture
Introduction to Computer ArchitectureIntroduction to Computer Architecture
Introduction to Computer Architecture
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
 

Destaque

Central processing unit
Central processing unitCentral processing unit
Central processing unitKumar
 
central processing unit and pipeline
central processing unit and pipelinecentral processing unit and pipeline
central processing unit and pipelineRai University
 
Central processing unit
Central processing unitCentral processing unit
Central processing unitjyoti_lakhani
 
Central processing unit
Central processing unitCentral processing unit
Central processing unitKamal Acharya
 
Decoder for digital electronics
Decoder for digital electronicsDecoder for digital electronics
Decoder for digital electronicsIIT, KANPUR INDIA
 

Destaque (7)

Central processing unit
Central processing unitCentral processing unit
Central processing unit
 
central processing unit and pipeline
central processing unit and pipelinecentral processing unit and pipeline
central processing unit and pipeline
 
Central processing unit
Central processing unitCentral processing unit
Central processing unit
 
Central processing unit
Central processing unitCentral processing unit
Central processing unit
 
Decoder for digital electronics
Decoder for digital electronicsDecoder for digital electronics
Decoder for digital electronics
 
Computer Architecture
Computer ArchitectureComputer Architecture
Computer Architecture
 
CO Module 5
CO Module 5CO Module 5
CO Module 5
 

Semelhante a Cpu

The Central Processing Unit(CPU) for Chapter 4
The Central Processing Unit(CPU) for Chapter 4The Central Processing Unit(CPU) for Chapter 4
The Central Processing Unit(CPU) for Chapter 4MKKhaing
 
Chapter4 Data Processing
Chapter4 Data ProcessingChapter4 Data Processing
Chapter4 Data ProcessingMuhammad Waqas
 
BAIT1003 Chapter 2
BAIT1003 Chapter 2BAIT1003 Chapter 2
BAIT1003 Chapter 2limsh
 
Introduction to embedded systems
Introduction  to embedded systemsIntroduction  to embedded systems
Introduction to embedded systemsRAMPRAKASHT1
 
computer system structure
computer system structurecomputer system structure
computer system structureHAMZA AHMED
 
Computer Main Comppponents.pdf
Computer Main Comppponents.pdfComputer Main Comppponents.pdf
Computer Main Comppponents.pdfthinalost
 
MK Sistem Operasi.pdf
MK Sistem Operasi.pdfMK Sistem Operasi.pdf
MK Sistem Operasi.pdfwisard1
 
Unit 1 processormemoryorganisation
Unit 1 processormemoryorganisationUnit 1 processormemoryorganisation
Unit 1 processormemoryorganisationKarunamoorthy B
 
Unit 2 processor&memory-organisation
Unit 2 processor&memory-organisationUnit 2 processor&memory-organisation
Unit 2 processor&memory-organisationPavithra S
 
CISSP - Chapter 3 - CPU Architecture
CISSP - Chapter 3 - CPU ArchitectureCISSP - Chapter 3 - CPU Architecture
CISSP - Chapter 3 - CPU ArchitectureKarthikeyan Dhayalan
 

Semelhante a Cpu (20)

3rd the cpu
3rd the cpu3rd the cpu
3rd the cpu
 
Computer !
Computer !Computer !
Computer !
 
Chap4.ppt
Chap4.pptChap4.ppt
Chap4.ppt
 
Chap4.ppt
Chap4.pptChap4.ppt
Chap4.ppt
 
Chap4.ppt
Chap4.pptChap4.ppt
Chap4.ppt
 
The Central Processing Unit(CPU) for Chapter 4
The Central Processing Unit(CPU) for Chapter 4The Central Processing Unit(CPU) for Chapter 4
The Central Processing Unit(CPU) for Chapter 4
 
Chapter4 Data Processing
Chapter4 Data ProcessingChapter4 Data Processing
Chapter4 Data Processing
 
Computer Basics
Computer BasicsComputer Basics
Computer Basics
 
Chap 3 CA.pptx
Chap 3 CA.pptxChap 3 CA.pptx
Chap 3 CA.pptx
 
BAIT1003 Chapter 2
BAIT1003 Chapter 2BAIT1003 Chapter 2
BAIT1003 Chapter 2
 
Introduction to embedded systems
Introduction  to embedded systemsIntroduction  to embedded systems
Introduction to embedded systems
 
computer system structure
computer system structurecomputer system structure
computer system structure
 
Computer Main Comppponents.pdf
Computer Main Comppponents.pdfComputer Main Comppponents.pdf
Computer Main Comppponents.pdf
 
MK Sistem Operasi.pdf
MK Sistem Operasi.pdfMK Sistem Operasi.pdf
MK Sistem Operasi.pdf
 
Unit 1 processormemoryorganisation
Unit 1 processormemoryorganisationUnit 1 processormemoryorganisation
Unit 1 processormemoryorganisation
 
Unit 2 processor&memory-organisation
Unit 2 processor&memory-organisationUnit 2 processor&memory-organisation
Unit 2 processor&memory-organisation
 
CISSP - Chapter 3 - CPU Architecture
CISSP - Chapter 3 - CPU ArchitectureCISSP - Chapter 3 - CPU Architecture
CISSP - Chapter 3 - CPU Architecture
 
Processors
ProcessorsProcessors
Processors
 
07 input output
07 input output07 input output
07 input output
 
Cs intro-ca
Cs intro-caCs intro-ca
Cs intro-ca
 

Mais de abinarkt

Depositional landforms
Depositional landformsDepositional landforms
Depositional landformsabinarkt
 
Solid waste management
Solid waste managementSolid waste management
Solid waste managementabinarkt
 
Flatbed scanner
Flatbed scannerFlatbed scanner
Flatbed scannerabinarkt
 
Chorographical Maps
Chorographical Maps Chorographical Maps
Chorographical Maps abinarkt
 
Spatial enhancement
Spatial enhancement Spatial enhancement
Spatial enhancement abinarkt
 

Mais de abinarkt (6)

Depositional landforms
Depositional landformsDepositional landforms
Depositional landforms
 
Solid waste management
Solid waste managementSolid waste management
Solid waste management
 
Flatbed scanner
Flatbed scannerFlatbed scanner
Flatbed scanner
 
Chorographical Maps
Chorographical Maps Chorographical Maps
Chorographical Maps
 
Faults
FaultsFaults
Faults
 
Spatial enhancement
Spatial enhancement Spatial enhancement
Spatial enhancement
 

Último

Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 

Último (20)

Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 

Cpu

  • 3. INTRODUCTION • It acts as BRAIN OF THE COMPUTER. • Converts data into information • Control center • Set of electronic circuitry that executes stored program instructions to perform the basic arithmetical ,logical , input and output operations.
  • 4.
  • 5. COMPONENTS OF CPU • CONTROL UNIT • ARITHMETIC LOGIC UNIT(ALU) • A number of Registers
  • 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 operation  Performs logical operations
  • 9. Logical Operations • Evaluates conditions • Makes comparisons • Can compare – Numbers – Letters – Special characters
  • 10. Registers  A Special-purpose ,High speed , Temporary storage located inside CPU.  All data must be represented in register before it can be processed. Instruction register Data register Holds instruction currently being executed 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. Main Types of Memory RAM Random Access Memory ROM Read Only Memory
  • 14. RAM • Requires current to retain values • Volatile • Data and instructions can be read and modified • Users typically refer to this type of memory
  • 15. What’s in RAM? • Operating System • Program currently running • Data needed by the program • Intermediate results waiting to be output
  • 16. ROM • Non-volatile • Instructions for booting the computer • Data and instructions can be read, but not modified • Instructions are typically recorded at factory
  • 17. 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
  • 18. 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
  • 19. 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
  • 20. 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
  • 21. 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
  • 22. Data Representation On/Off Binary number system is used to represent the state of the circuit
  • 23. 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
  • 24. 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
  • 25. The System Unit The Black Box • Houses electronic components – Motherboard – Storage devices – Connections • Some Apple Macintosh models have system unit inside monitor
  • 26. 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
  • 27. The System Unit The Black Box Storage Devices Hard drive Floppy drive CD-ROM drive DVD-ROM drive
  • 28. 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 more functions that are combined on a microprocessor: • The faster the computer runs • The cheaper it is to make • The more reliable it is
  • 33. Types of Microprocessors Intel Intel-compatible • Pentium • Cyrix • Celeron • AMD • Xeon and Itanium
  • 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 Larger bus width = More powerful computer CPU can transfer more data at a time = Faster computer = More memory available CPU can reference larger memory addresses CPU can support a greater number and variety of instructions
  • 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
  • 46. 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 High-speed bus connecting video equipment to the (FireWire) computer PC Card Credit card sized PC card devices normally found on laptops
  • 47. Speed and Power What makes a computer fast? • Microprocessor speed • Bus line size • Availability of cache • Flash memory • RISC computers • Parallel processing
  • 48. Computer Processing Speed Time to execute an instruction • Millisecond • Microsecond • Nanosecond – Modern computers • Picosecond – In the future
  • 49. 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 )
  • 50. Cache • Small block of very fast temporary memory • Speed up data transfer • Instructions and data used most frequently or most recently
  • 51. Cache P R O C E S S O R Step 1 Processor requests data or instructions Step 3 Transfer to main CPU and cache R Cache A M Step 2 Go to address in main memory and read Next processor request • Look first at cache • Go to memory
  • 52. 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
  • 53. Flash Memory • Nonvolatile RAM • Used in – Cellular phones – Digital cameras – Digital music recorders – PDAs
  • 54. 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
  • 55. 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
  • 56. 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
  • 57.
  • 59.
  • 60.