SlideShare a Scribd company logo
1 of 13
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 (20)

cache memory
cache memorycache memory
cache memory
 
Device Drivers
Device DriversDevice Drivers
Device Drivers
 
Assembly language
Assembly languageAssembly language
Assembly language
 
File Management in Operating Systems
File Management in Operating SystemsFile Management in Operating Systems
File Management in Operating Systems
 
Cache memory
Cache memoryCache memory
Cache memory
 
Assembly and Machine Code
Assembly and Machine CodeAssembly and Machine Code
Assembly and Machine Code
 
Operating System.pdf
Operating System.pdfOperating System.pdf
Operating System.pdf
 
Cache memory
Cache memoryCache memory
Cache memory
 
File system
File systemFile system
File system
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
 
Processors and its Types
Processors and its TypesProcessors and its Types
Processors and its Types
 
Daemons
DaemonsDaemons
Daemons
 
control unit
control unitcontrol unit
control unit
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann Architecture
 
Booting
BootingBooting
Booting
 
The purpose of an operating system
The purpose of an operating systemThe purpose of an operating system
The purpose of an operating system
 
Distributed operating system(os)
Distributed operating system(os)Distributed operating system(os)
Distributed operating system(os)
 
Computer architecture memory system
Computer architecture memory systemComputer architecture memory system
Computer architecture memory system
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Memory Hierarchy
Memory HierarchyMemory Hierarchy
Memory Hierarchy
 

Similar to The cpu cycle

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 .pdfaniyathikitchen
 
Computer Processor.pptx
Computer Processor.pptxComputer Processor.pptx
Computer Processor.pptxKnockKnock19
 
Presentation on Computer Processor
Presentation on Computer ProcessorPresentation on Computer Processor
Presentation on Computer ProcessorMoizAlSamad
 
Lecture 3 Computer architecture-cpu.pptx
Lecture 3 Computer architecture-cpu.pptxLecture 3 Computer architecture-cpu.pptx
Lecture 3 Computer architecture-cpu.pptxsamgamingofficial01
 
Module 1 Introduction.ppt
Module 1 Introduction.pptModule 1 Introduction.ppt
Module 1 Introduction.pptshreesha16
 
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-001SOLOMONCHINAEMEUCHEA
 
Comuputer processor
Comuputer processorComuputer processor
Comuputer processorSanjeev Jain
 
Computer Architecture and Organization.pptx
Computer Architecture and Organization.pptxComputer Architecture and Organization.pptx
Computer Architecture and Organization.pptxLearnersCoach
 
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.pptxSumalatha A
 
CSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxCSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxakhilagajjala
 
CPU Architecture - Basic
CPU Architecture - BasicCPU Architecture - Basic
CPU Architecture - BasicYong Heui Cho
 
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.pdfshubhangisonawane6
 
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.pdfshubhangisonawane6
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecturejeetesh036
 
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.pptxiloveyoucarlo0923
 

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
 
Presentation on Computer Processor
Presentation on Computer ProcessorPresentation on Computer Processor
Presentation on Computer Processor
 
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
 
Comuputer processor
Comuputer processorComuputer processor
Comuputer processor
 
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
 
CPU Architecture - Basic
CPU Architecture - BasicCPU Architecture - Basic
CPU Architecture - Basic
 
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
 

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.