SlideShare a Scribd company logo
Reusable learning object on the
           CPU cycle
               BY
         Jeanne Ndatirwa
         March 24th, 2013
Introduction
• The CPU which is often described as the “brain of the
  computer”.
• Most CPUs are collections of digital circuits imprinted
  on silicon wafers, or chips, no bigger than the tip of a
  pencil eraser.
• The increased speed the current in a CPUS travels at,
  can be increased by reducing the distance between
  points which has resulted in ever smaller chips (see
  Moore’s Law).
• The CPU cycle is closely associated with primary
  storage also known as main memory.
Purpose of the CPU
• The job of the CPU is to execute programs
• A program is a list of unambiguous instructions
  designed to be followed mechanically by a
  computer.
• Once the CPU executes a program, it is stored in a
  computer’s main memory (RAM or random
  access memory).
• The CPU can also store information in memory by
  specifying the information to be stored and the
  address of the location where it is to be stored.
Hardware Components
The CPU consists of three elements:
  The arithmetic/logic unit (ALU): performs mathematical
  calculations and makes logical comparisons.
  The control unit: sequentially accesses program
  instructions, decodes them, and coordinates the flow of
  data in and out of the ALU.
  Registers (storage area): are high-speed storage areas
  used to temporarily hold small units of program
  instructions and data immediately before, during, and
  after execution by the CPU.
Components in action
Executing any machine-level instruction involves two
phases: instruction and execution.

The instruction phase consists of:
1. Fetch instruction: the computer reads the next
    program instruction to be executed and any necessary
    data into the processor.
2. Decode instruction: instruction is decoded and passed
    to the appropriate processor execution unit.
The time it takes to perform the instruction phase is
called the instruction time (I-time).
Components in action
The execution phase consists of
3. Execute instruction: hardware
   element, freshly fed with an instruction and
   data, carries out the instruction.
4. Store results: results are stored in registers
The time it takes to complete the execution
phase is called the execution time (E-time).
Processing
Processing
                Fetch
           Instructions from
                Memory




Execute                          Decode
 ALU                           Control Unit
Processing
Various measures are used to gauge processing
speed:
1. Machine cycle time: measured by how many
   instructions are executed in one second, also
   measured in nanoseconds or picoseconds.
2. Clock Speed: series of electronic pulses
   produced at a predetermined rate that
   affects machine cycle, measured in mega or
   gigahertz.
Processing
Multiprocessing: involves the simultaneous execution of two
or more instructions at the same time.
Coprocessor: the part of the computer that speeds processing
by executing specific types of instructions while the CPU
works on another processing activity.
Multicore Microprocessor: a processor that combines two or
more independent processors into a single computer as they
share the workload.
Parallel Computing: simultaneous execution of the same task
on multiple processors to obtain results faster.
Grid Computing: use of a collection of computers , usually
owned by multiple individuals or organizations to work in a
coordinated manner to solve a common problem.
Memory characteristics and function
Main memory provides the CPU with a working
storage area for programs and data.
Computer memory takes several forms:
• Random access memory (RAM): a form of
  memory in which instructions or data can be
  temporarily stored.
• Ready-only memory (ROM): a non-volatile form
  of memory.
• Cache memory: a type of high-speed memory
  that a processor can access more rapidly than
  main memory.
Knowledge Assessment
Credits
• http://www.teach-
  ict.com/gcse_computing/ocr/212_computing_hardware/cpu/
  miniweb/pg2.htm
• http://math.hws.edu/javanotes/c1/s1.html
• http://www.teach-
  ict.com/gcse_computing/ocr/212_computing_hardware/cpu/
  quiz/penalty_cpu.htm
• Stair, R. & Reynolds, G “Principles of information
  systems”, 10th ed., pp. 91-97.

More Related Content

What's hot

Presentation on Operating System & its Components
Presentation on Operating System & its ComponentsPresentation on Operating System & its Components
Presentation on Operating System & its ComponentsMahmuda Rahman
 
Single &Multi Core processor
Single &Multi Core processorSingle &Multi Core processor
Single &Multi Core processor
Justify Shadap
 
Booting and Start-up Sequence
Booting and Start-up SequenceBooting and Start-up Sequence
Booting and Start-up Sequence
Trinity Dwarka
 
Basic Components of Computer
Basic Components of ComputerBasic Components of Computer
Basic Components of Computer
RajGopalAgrawal
 
Processors and its Types
Processors and its TypesProcessors and its Types
Processors and its Types
Nimrah Shahbaz
 
Central Processing Unit
Central Processing UnitCentral Processing Unit
Central Processing Unit
Jan Ralph
 
what is ROM? Rom(read only memory)
what is ROM? Rom(read only memory)what is ROM? Rom(read only memory)
what is ROM? Rom(read only memory)
shire ali
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
Burhan Ahmed
 
File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating System
Janki Shah
 
CPU (Central Processing Units)
CPU (Central Processing Units)CPU (Central Processing Units)
CPU (Central Processing Units)
Prabin Maharjan
 
Computer organization & architecture chapter-1
Computer organization & architecture chapter-1Computer organization & architecture chapter-1
Computer organization & architecture chapter-1
Shah Rukh Rayaz
 
Types and components of computer system
Types and components of computer systemTypes and components of computer system
Types and components of computer system
mkhisalg
 
Computer Memory
Computer MemoryComputer Memory
Computer Memory
Md. Rafid Abrar Miah
 
Types of memory in Computer
Types of memory in ComputerTypes of memory in Computer
Types of memory in Computer
Fazle Rabbi Ador
 
Function of Operating system
Function of Operating systemFunction of Operating system
Function of Operating system
Amit Mehla
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann Architecture
Jawad Farooqi
 
Comuputer processor
Comuputer processorComuputer processor
Comuputer processorSanjeev Jain
 
types of computer
types of computer types of computer
types of computer
Haritha Karthigeyan
 

What's hot (20)

Presentation on Operating System & its Components
Presentation on Operating System & its ComponentsPresentation on Operating System & its Components
Presentation on Operating System & its Components
 
Rajesh ppt
Rajesh pptRajesh ppt
Rajesh ppt
 
Single &Multi Core processor
Single &Multi Core processorSingle &Multi Core processor
Single &Multi Core processor
 
Booting and Start-up Sequence
Booting and Start-up SequenceBooting and Start-up Sequence
Booting and Start-up Sequence
 
Basic Components of Computer
Basic Components of ComputerBasic Components of Computer
Basic Components of Computer
 
Processors and its Types
Processors and its TypesProcessors and its Types
Processors and its Types
 
Central Processing Unit
Central Processing UnitCentral Processing Unit
Central Processing Unit
 
what is ROM? Rom(read only memory)
what is ROM? Rom(read only memory)what is ROM? Rom(read only memory)
what is ROM? Rom(read only memory)
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating System
 
CPU (Central Processing Units)
CPU (Central Processing Units)CPU (Central Processing Units)
CPU (Central Processing Units)
 
Computer organization & architecture chapter-1
Computer organization & architecture chapter-1Computer organization & architecture chapter-1
Computer organization & architecture chapter-1
 
Types and components of computer system
Types and components of computer systemTypes and components of computer system
Types and components of computer system
 
Computer Memory
Computer MemoryComputer Memory
Computer Memory
 
Types of memory in Computer
Types of memory in ComputerTypes of memory in Computer
Types of memory in Computer
 
Function of Operating system
Function of Operating systemFunction of Operating system
Function of Operating system
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann Architecture
 
Comuputer processor
Comuputer processorComuputer processor
Comuputer processor
 
System call
System callSystem call
System call
 
types of computer
types of computer types of computer
types of computer
 

Similar to The cpu cycle

Chap 3 CA.pptx
Chap 3 CA.pptxChap 3 CA.pptx
Chap 3 CA.pptx
SahalAhmed4
 
1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdf
1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdf1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdf
1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdf
aniyathikitchen
 
ch1.pptx
ch1.pptxch1.pptx
ch1.pptx
berekethailu2
 
Computer Processor.pptx
Computer Processor.pptxComputer Processor.pptx
Computer Processor.pptx
KnockKnock19
 
Lecture 3 Computer architecture-cpu.pptx
Lecture 3 Computer architecture-cpu.pptxLecture 3 Computer architecture-cpu.pptx
Lecture 3 Computer architecture-cpu.pptx
samgamingofficial01
 
Module 1 Introduction.ppt
Module 1 Introduction.pptModule 1 Introduction.ppt
Module 1 Introduction.ppt
shreesha16
 
HHCJ AMUMARA: COMPUTER STUDIES LECTURE NOTE FOR SS2-001
HHCJ AMUMARA: COMPUTER STUDIES LECTURE NOTE FOR SS2-001HHCJ AMUMARA: COMPUTER STUDIES LECTURE NOTE FOR SS2-001
HHCJ AMUMARA: COMPUTER STUDIES LECTURE NOTE FOR SS2-001
SOLOMONCHINAEMEUCHEA
 
OS Content.pdf
OS Content.pdfOS Content.pdf
OS Content.pdf
VAIBHAVSAHU55
 
Computer Architecture and Organization.pptx
Computer Architecture and Organization.pptxComputer Architecture and Organization.pptx
Computer Architecture and Organization.pptx
LearnersCoach
 
CPU
CPUCPU
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptx
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptxParallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptx
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptx
Sumalatha A
 
CSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxCSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptx
akhilagajjala
 
computer devices and memory unit 2 notes.pdf
computer devices and memory unit 2 notes.pdfcomputer devices and memory unit 2 notes.pdf
computer devices and memory unit 2 notes.pdf
shubhangisonawane6
 
fundamentals of digital communication unit 2 notes.pdf
fundamentals of digital communication  unit 2 notes.pdffundamentals of digital communication  unit 2 notes.pdf
fundamentals of digital communication unit 2 notes.pdf
shubhangisonawane6
 
Comp App Lect 2.pptx
Comp App Lect 2.pptxComp App Lect 2.pptx
Comp App Lect 2.pptx
MehwishKanwal14
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
jeetesh036
 
Basic-Role-of-Operating-System-send.pptx
Basic-Role-of-Operating-System-send.pptxBasic-Role-of-Operating-System-send.pptx
Basic-Role-of-Operating-System-send.pptx
iloveyoucarlo0923
 
2 the computer system hardware
2  the computer system hardware2  the computer system hardware
2 the computer system hardware
arslanzafar13162
 
MK Sistem Operasi.pdf
MK Sistem Operasi.pdfMK Sistem Operasi.pdf
MK Sistem Operasi.pdf
wisard1
 
Engg-0505-IT-Operating-Systems-2nd-year.pdf
Engg-0505-IT-Operating-Systems-2nd-year.pdfEngg-0505-IT-Operating-Systems-2nd-year.pdf
Engg-0505-IT-Operating-Systems-2nd-year.pdf
nikhil287188
 

Similar to The cpu cycle (20)

Chap 3 CA.pptx
Chap 3 CA.pptxChap 3 CA.pptx
Chap 3 CA.pptx
 
1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdf
1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdf1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdf
1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdf
 
ch1.pptx
ch1.pptxch1.pptx
ch1.pptx
 
Computer Processor.pptx
Computer Processor.pptxComputer Processor.pptx
Computer Processor.pptx
 
Lecture 3 Computer architecture-cpu.pptx
Lecture 3 Computer architecture-cpu.pptxLecture 3 Computer architecture-cpu.pptx
Lecture 3 Computer architecture-cpu.pptx
 
Module 1 Introduction.ppt
Module 1 Introduction.pptModule 1 Introduction.ppt
Module 1 Introduction.ppt
 
HHCJ AMUMARA: COMPUTER STUDIES LECTURE NOTE FOR SS2-001
HHCJ AMUMARA: COMPUTER STUDIES LECTURE NOTE FOR SS2-001HHCJ AMUMARA: COMPUTER STUDIES LECTURE NOTE FOR SS2-001
HHCJ AMUMARA: COMPUTER STUDIES LECTURE NOTE FOR SS2-001
 
OS Content.pdf
OS Content.pdfOS Content.pdf
OS Content.pdf
 
Computer Architecture and Organization.pptx
Computer Architecture and Organization.pptxComputer Architecture and Organization.pptx
Computer Architecture and Organization.pptx
 
CPU
CPUCPU
CPU
 
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptx
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptxParallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptx
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptx
 
CSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxCSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptx
 
computer devices and memory unit 2 notes.pdf
computer devices and memory unit 2 notes.pdfcomputer devices and memory unit 2 notes.pdf
computer devices and memory unit 2 notes.pdf
 
fundamentals of digital communication unit 2 notes.pdf
fundamentals of digital communication  unit 2 notes.pdffundamentals of digital communication  unit 2 notes.pdf
fundamentals of digital communication unit 2 notes.pdf
 
Comp App Lect 2.pptx
Comp App Lect 2.pptxComp App Lect 2.pptx
Comp App Lect 2.pptx
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
 
Basic-Role-of-Operating-System-send.pptx
Basic-Role-of-Operating-System-send.pptxBasic-Role-of-Operating-System-send.pptx
Basic-Role-of-Operating-System-send.pptx
 
2 the computer system hardware
2  the computer system hardware2  the computer system hardware
2 the computer system hardware
 
MK Sistem Operasi.pdf
MK Sistem Operasi.pdfMK Sistem Operasi.pdf
MK Sistem Operasi.pdf
 
Engg-0505-IT-Operating-Systems-2nd-year.pdf
Engg-0505-IT-Operating-Systems-2nd-year.pdfEngg-0505-IT-Operating-Systems-2nd-year.pdf
Engg-0505-IT-Operating-Systems-2nd-year.pdf
 

The cpu cycle

  • 1. Reusable learning object on the CPU cycle BY Jeanne Ndatirwa March 24th, 2013
  • 2. Introduction • The CPU which is often described as the “brain of the computer”. • Most CPUs are collections of digital circuits imprinted on silicon wafers, or chips, no bigger than the tip of a pencil eraser. • The increased speed the current in a CPUS travels at, can be increased by reducing the distance between points which has resulted in ever smaller chips (see Moore’s Law). • The CPU cycle is closely associated with primary storage also known as main memory.
  • 3. Purpose of the CPU • The job of the CPU is to execute programs • A program is a list of unambiguous instructions designed to be followed mechanically by a computer. • Once the CPU executes a program, it is stored in a computer’s main memory (RAM or random access memory). • The CPU can also store information in memory by specifying the information to be stored and the address of the location where it is to be stored.
  • 4. Hardware Components The CPU consists of three elements: The arithmetic/logic unit (ALU): performs mathematical calculations and makes logical comparisons. The control unit: sequentially accesses program instructions, decodes them, and coordinates the flow of data in and out of the ALU. Registers (storage area): are high-speed storage areas used to temporarily hold small units of program instructions and data immediately before, during, and after execution by the CPU.
  • 5. Components in action Executing any machine-level instruction involves two phases: instruction and execution. The instruction phase consists of: 1. Fetch instruction: the computer reads the next program instruction to be executed and any necessary data into the processor. 2. Decode instruction: instruction is decoded and passed to the appropriate processor execution unit. The time it takes to perform the instruction phase is called the instruction time (I-time).
  • 6. Components in action The execution phase consists of 3. Execute instruction: hardware element, freshly fed with an instruction and data, carries out the instruction. 4. Store results: results are stored in registers The time it takes to complete the execution phase is called the execution time (E-time).
  • 8. Processing Fetch Instructions from Memory Execute Decode ALU Control Unit
  • 9. Processing Various measures are used to gauge processing speed: 1. Machine cycle time: measured by how many instructions are executed in one second, also measured in nanoseconds or picoseconds. 2. Clock Speed: series of electronic pulses produced at a predetermined rate that affects machine cycle, measured in mega or gigahertz.
  • 10. Processing Multiprocessing: involves the simultaneous execution of two or more instructions at the same time. Coprocessor: the part of the computer that speeds processing by executing specific types of instructions while the CPU works on another processing activity. Multicore Microprocessor: a processor that combines two or more independent processors into a single computer as they share the workload. Parallel Computing: simultaneous execution of the same task on multiple processors to obtain results faster. Grid Computing: use of a collection of computers , usually owned by multiple individuals or organizations to work in a coordinated manner to solve a common problem.
  • 11. Memory characteristics and function Main memory provides the CPU with a working storage area for programs and data. Computer memory takes several forms: • Random access memory (RAM): a form of memory in which instructions or data can be temporarily stored. • Ready-only memory (ROM): a non-volatile form of memory. • Cache memory: a type of high-speed memory that a processor can access more rapidly than main memory.
  • 13. Credits • http://www.teach- ict.com/gcse_computing/ocr/212_computing_hardware/cpu/ miniweb/pg2.htm • http://math.hws.edu/javanotes/c1/s1.html • http://www.teach- ict.com/gcse_computing/ocr/212_computing_hardware/cpu/ quiz/penalty_cpu.htm • Stair, R. & Reynolds, G “Principles of information systems”, 10th ed., pp. 91-97.