SlideShare a Scribd company logo
1 of 10
Instruction Cycle
By
P.Aruna Devi
The Instruction Cycle
• Instruction Cycle helps to tell us the completion of instruction
execution in a predetermined manner.
• The Instruction Cycle can be
– Basic
– Intermediate
– Exceptions
The Instruction Cycle - Basic View
• Once the computer has been
started it continually executes
instructions
• Different instructions take
different amounts of time to
execute
• All instructions and data are
stored in main memory
Fetch
Instruction
Start
Execute
Instruction
The Instruction Cycle - Intermediate View
• Instruction Cycle follows
– Fetch
– Decode and
– Execute
• A complete instruction consists of
– operation code
– addressing mode
– zero or more operands
• immediately available data
• the address where the data
can be found in main memory
Fetch
Instruction
Start
Execute
Instruction
Fetch
Operand
Decode
Instruction
The Instruction Cycle - Exceptions
• Exceptions, or errors, may occur at
various points in the instruction
cycle, for example:
Fetch
Instruction
Start
Execute
Instruction
Fetch
Operand
Decode
Instruction
Possible
Exception
?
Possible
Exception
?
Possible
Exception
?
Possible
Exception?
The Instruction Cycle - Exceptions
• Exceptions, or errors, may occur at
various points in the instruction
cycle, for example:
– Addressing - the memory does not
exist or is inaccessible
Fetch
Instruction
Start
Execute
Instruction
Fetch
Operand
Decode
Instruction
The Instruction Cycle - Exceptions
• Exceptions, or errors, may occur at
various points in the instruction
cycle, for example:
– Operation - the operation code does
not denote a valid operation
Fetch
Instruction
Start
Execute
Instruction
Fetch
Operand
Decode
Instruction
The Instruction Cycle - Exceptions
• Exceptions, or errors, may occur at
various points in the instruction
cycle, for example:
– Execution - the instruction logic fails,
typically due to the input data
• divide by zero
• integer addition/subtraction
overflow
• floating point underflow/overflow
Fetch
Instruction
Start
Execute
Instruction
Fetch
Operand
Decode
Instruction
Completion of Execution
• Once the instruction has no exception, it follows
the cycle and completes its execution
• After completion the next instruction will be
fetched and take into consideration for
execution
Thank You

More Related Content

Similar to Instructioncycle.ppt

Procedures%20 april%203,%202013[2]
Procedures%20 april%203,%202013[2]Procedures%20 april%203,%202013[2]
Procedures%20 april%203,%202013[2]
Robert Kozin
 

Similar to Instructioncycle.ppt (20)

Clock-8086 bus cycle
Clock-8086 bus cycleClock-8086 bus cycle
Clock-8086 bus cycle
 
Process Scheduling Algorithms | Interviews | Operating system
Process Scheduling Algorithms | Interviews | Operating systemProcess Scheduling Algorithms | Interviews | Operating system
Process Scheduling Algorithms | Interviews | Operating system
 
IDVA Note Taking in Science
IDVA Note Taking in ScienceIDVA Note Taking in Science
IDVA Note Taking in Science
 
RIFLI-Computer-Basics-Part-1-1 lecture not
RIFLI-Computer-Basics-Part-1-1  lecture notRIFLI-Computer-Basics-Part-1-1  lecture not
RIFLI-Computer-Basics-Part-1-1 lecture not
 
Practical Malware Analysis: Ch 8: Debugging
Practical Malware Analysis: Ch 8: Debugging Practical Malware Analysis: Ch 8: Debugging
Practical Malware Analysis: Ch 8: Debugging
 
Performance Enhancement with Pipelining
Performance Enhancement with PipeliningPerformance Enhancement with Pipelining
Performance Enhancement with Pipelining
 
Lecture- 2_Process Management.pdf
Lecture- 2_Process Management.pdfLecture- 2_Process Management.pdf
Lecture- 2_Process Management.pdf
 
Os concepts 4 functions of os
Os concepts 4 functions of osOs concepts 4 functions of os
Os concepts 4 functions of os
 
Operating system 05 functions of os
Operating system 05 functions of osOperating system 05 functions of os
Operating system 05 functions of os
 
代码大全(内训)
代码大全(内训)代码大全(内训)
代码大全(内训)
 
Introduction.pptx
Introduction.pptxIntroduction.pptx
Introduction.pptx
 
12 Lessons Learnt in Boot Time Reduction
12 Lessons Learnt in Boot Time Reduction12 Lessons Learnt in Boot Time Reduction
12 Lessons Learnt in Boot Time Reduction
 
Advanced processor Principles
Advanced processor PrinciplesAdvanced processor Principles
Advanced processor Principles
 
Why Software Test Performance Matters
Why Software Test Performance MattersWhy Software Test Performance Matters
Why Software Test Performance Matters
 
Computer_Organization and architecture _unit 1.pptx
Computer_Organization and architecture _unit 1.pptxComputer_Organization and architecture _unit 1.pptx
Computer_Organization and architecture _unit 1.pptx
 
Principle of Computer Operation.ppt
Principle of Computer Operation.pptPrinciple of Computer Operation.ppt
Principle of Computer Operation.ppt
 
Game design 2 (2013): Lecture 10 - Expert Evaluation Methods for Game UI
Game design 2 (2013): Lecture 10 - Expert Evaluation Methods for Game UIGame design 2 (2013): Lecture 10 - Expert Evaluation Methods for Game UI
Game design 2 (2013): Lecture 10 - Expert Evaluation Methods for Game UI
 
Managing yourself: how to be productive with your time
Managing yourself: how to be productive with your timeManaging yourself: how to be productive with your time
Managing yourself: how to be productive with your time
 
Procedures%20 april%203,%202013[2]
Procedures%20 april%203,%202013[2]Procedures%20 april%203,%202013[2]
Procedures%20 april%203,%202013[2]
 
Mba admission in india
Mba admission in indiaMba admission in india
Mba admission in india
 

More from ArunaDevi63 (8)

FuzzySet.pptx
FuzzySet.pptxFuzzySet.pptx
FuzzySet.pptx
 
Asynchronous Data Transfer.pptx
Asynchronous Data Transfer.pptxAsynchronous Data Transfer.pptx
Asynchronous Data Transfer.pptx
 
Mf formulation and parameterization
Mf formulation and parameterizationMf formulation and parameterization
Mf formulation and parameterization
 
Soft Computing
Soft ComputingSoft Computing
Soft Computing
 
Cookies in php
Cookies in phpCookies in php
Cookies in php
 
Laws of boolean algebra
Laws of boolean algebraLaws of boolean algebra
Laws of boolean algebra
 
Operator overloading
Operator overloadingOperator overloading
Operator overloading
 
Computer Organisation - Addressing Modes
Computer Organisation - Addressing ModesComputer Organisation - Addressing Modes
Computer Organisation - Addressing Modes
 

Recently uploaded

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Recently uploaded (20)

Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 

Instructioncycle.ppt

  • 2. The Instruction Cycle • Instruction Cycle helps to tell us the completion of instruction execution in a predetermined manner. • The Instruction Cycle can be – Basic – Intermediate – Exceptions
  • 3. The Instruction Cycle - Basic View • Once the computer has been started it continually executes instructions • Different instructions take different amounts of time to execute • All instructions and data are stored in main memory Fetch Instruction Start Execute Instruction
  • 4. The Instruction Cycle - Intermediate View • Instruction Cycle follows – Fetch – Decode and – Execute • A complete instruction consists of – operation code – addressing mode – zero or more operands • immediately available data • the address where the data can be found in main memory Fetch Instruction Start Execute Instruction Fetch Operand Decode Instruction
  • 5. The Instruction Cycle - Exceptions • Exceptions, or errors, may occur at various points in the instruction cycle, for example: Fetch Instruction Start Execute Instruction Fetch Operand Decode Instruction Possible Exception ? Possible Exception ? Possible Exception ? Possible Exception?
  • 6. The Instruction Cycle - Exceptions • Exceptions, or errors, may occur at various points in the instruction cycle, for example: – Addressing - the memory does not exist or is inaccessible Fetch Instruction Start Execute Instruction Fetch Operand Decode Instruction
  • 7. The Instruction Cycle - Exceptions • Exceptions, or errors, may occur at various points in the instruction cycle, for example: – Operation - the operation code does not denote a valid operation Fetch Instruction Start Execute Instruction Fetch Operand Decode Instruction
  • 8. The Instruction Cycle - Exceptions • Exceptions, or errors, may occur at various points in the instruction cycle, for example: – Execution - the instruction logic fails, typically due to the input data • divide by zero • integer addition/subtraction overflow • floating point underflow/overflow Fetch Instruction Start Execute Instruction Fetch Operand Decode Instruction
  • 9. Completion of Execution • Once the instruction has no exception, it follows the cycle and completes its execution • After completion the next instruction will be fetched and take into consideration for execution