SlideShare a Scribd company logo
1 of 28
F453 COMPUTER SCIENCE
FETCH DECODE EXECUTE CYCLE
THE PROCESSOR
Registers
Control
unit
ALU
Memory
Input / output
Address bus
Control bus
Data bus
REGISTERS
• Registers are memory locations within the processor itself.
They work at extremely fast speeds, so they can be used by the
processor, without causing a bottleneck.
• A bottleneck is the slowest part of the system, which limits the
speed of the system as a whole.
PROGRAM COUNTER (PC)
• The program counter keeps track of the memory location of the
line of machine code being executed. It gets incremented, to
point to the next instruction.
• The program counter is also changed by instructions that alter
the flow of control. In the case of the Little Man Computer,
instructions like Branch if Zero (BRZ), Branch Always (BRA) and
Branch if Positive (BRP) can move the program counter
backwards or forwards.
MEMORY DATA REGISTER (MDR)
• The memory data register stores the data that has been fetched
from or stored in the memory.
MEMORY ADDRESS REGISTER
• The memory address register stores the address of the data or
instructions that are to be fetched from, or sent to.
CURRENT INSTRUCTION REGISTER (CIR)
• The current instruction register stores the most recently
fetched instruction, waiting to be decoded and executed.
ACCUMULATOR (ACC)
• The accumulator stores the results of calculations made by the
ALU.
• In the Little Man Computer, the instruction LDA loads the
contents of a given memory location into the accumulator, and
STA stores the contents of the accumulator in a given memory
location.
GENERAL PURPOSE REGISTERS
• Processors may also have general purpose registers.
• These can be used temporarily to store data being used rather
than sensing data to and from the comparatively much slower
memory.
BUSSES
• Busses are the communications channels through which data
can be sent around the computer. A USB (universal serial bus) is
a common, well known bus, and is used to transfer data
between the computer and external devices.
• There are 3 busses when relating to the FDE cycle, the data
bus, control bus and address bus.
WHAT DO THE BUSES DO IN THE FDE CYCLE
• The data bus carries data between the processor and memory.
• The address bus carries the address of the memory location
being read from or written to.
• And the control bus sends control signals from the control unit.
ARITHMETIC LOGIC UNIT (ALU)
• The ALU carries out the calculations and logical decisions.
• The results of its calculations are stored in the accumulator.
CONTROL UNIT (CU)
• The control unit sends out signals to co-ordinate how the
processor works.
• It controls how the data moves around parts of the CPU and
how it moves between the CPU and memory.
• Instructions are decoded in the control unit.
HOW DOES THE PROCESSOR EXECUTE THE
FDE CYCLE
STEP 1 (FETCH)
• The first step in this set of instructions is to fetch the first
instruction from the memory.
• The program counter starts at 0 0(the program counter actually
points to the next instruction to be executed, but at the start of
the program, the next instruction is 0), and the value 0 is
loaded into the memory address register (MAR).
• The control unit (CU) then sends a fetch command, via the
control bus, and the value 0 is sent down the address bus,
meaning fetch the contents of memory location 0.
STEP 1
Instruction in
memory location 0
STEP 2
• The contents of location 0 (LDA Num1) are sent down the data
bus. This data is then stored in the memory data register
(MDR), and then moved to the current instruction register (CIR).
STEP 2
STEP 3
• The program counter is then increased by 1.
STEP 3
STEP 4 (DECODE)
• For the current instruction, the fetch step is complete, the next
step is the decode step.
• The contents of the CIR are sent to the CU.
• The CU decodes the instruction LDA Num1 as load the contents
of Num1 into the accumulator.
• As the program will be executing the instruction on Num1, this
location will be loaded onto the MAR.
STEP 4
STEP 5 (EXECUTE)
• After the contents of the CIR have been decoded, the next step
is the execute step.
• The CU sends a fetch instruction down the control bus, and the
value in the MAR (Num1) is sent down the address bus.
• The contents of memory address 4 are sent to the processor via
the data bus, and loaded into the MDR, and then sent to the
accumulator.
• This is the complete run through for the FDE cycle. The process
is now repeated for the next line of code.
STEP 5
Instruction in
memory location 4
REST OF CODE
• Fetch: The PC is copied to the MAR. The contents of memory
location 1 are loaded onto the CIR. The PC is incremented.
• Decode: The contents of the CIR are sent to the control unit,
and decoded as add the contents of Num2 (location 5) to the
contents of the accumulator.
• Execute: The contents of memory location 5 are fetched from
memory and loaded into the MDR, and then to the ALU.
REST OF CODE
• Fetch: the PC is copied into the MAR, and the contents of
memory location 2 are fetched and loaded into the CIR. The PC
is incremented to 3.
• Decode: The contents of the CIR are sent to the control unit,
and decoded as store the contents of the ACC in Total (in
memory location 6). The location for total 6 is loaded into the
MAR, and the contents of the ACC are copied to the MDR.
• Execute: A write signal is sent down the control bus, the
location 6 is sent down the address bus and the contents of the
MDR (15) is sent down the data bus. This results in the value 15
REST OF CODE
• Fetch: The PC is copied into the MAR, and the contents of
location 3 are fetched and loaded into the CIR. The PC is
incremented to 4.
• Decode: The contents of the CIR are sent to the control unit,
and decoded as Halt.
• Execute: The program terminates.
THE VON NEUMANN ARCHITECTURE
• Von Neumann is the person who created the simplified version
of the processor at the start of this presentation.
• In his diagram, the instructions and data are stored in memory
together. In the LMC, the instructions are stored in memory
locations 0 to 3, and the data in

More Related Content

What's hot

Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.CS_GDRCST
 
Windows V/S Linux OS - Comparison
Windows V/S Linux OS - ComparisonWindows V/S Linux OS - Comparison
Windows V/S Linux OS - ComparisonHariharan Ganesan
 
Hard Disk Drive
Hard Disk Drive Hard Disk Drive
Hard Disk Drive Rohan Awale
 
System Booting Process overview
System Booting Process overviewSystem Booting Process overview
System Booting Process overviewRajKumar Rampelli
 
Computer architecture
Computer architectureComputer architecture
Computer architectureBurhan Ahmed
 
Dwh lecture-07-denormalization
Dwh lecture-07-denormalizationDwh lecture-07-denormalization
Dwh lecture-07-denormalizationSulman Ahmed
 
Parallel computing
Parallel computingParallel computing
Parallel computingVinay Gupta
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OSvampugani
 
Chapter 21 - The Linux System
Chapter 21 - The Linux SystemChapter 21 - The Linux System
Chapter 21 - The Linux SystemWayne Jones Jnr
 
Expansion Bus, Internal & External Buses, Northbridge/Southbridge, Device Dri...
Expansion Bus, Internal & External Buses, Northbridge/Southbridge, Device Dri...Expansion Bus, Internal & External Buses, Northbridge/Southbridge, Device Dri...
Expansion Bus, Internal & External Buses, Northbridge/Southbridge, Device Dri...Maria Gizelle Aragon
 
Fetch decode-execute presentation
Fetch decode-execute presentationFetch decode-execute presentation
Fetch decode-execute presentationchantellemallia
 
09. Memory, Storage (RAM, Cache, HDD, ODD, SSD, Flashdrives)
09. Memory, Storage (RAM, Cache, HDD, ODD, SSD, Flashdrives)09. Memory, Storage (RAM, Cache, HDD, ODD, SSD, Flashdrives)
09. Memory, Storage (RAM, Cache, HDD, ODD, SSD, Flashdrives)Akhila Dakshina
 

What's hot (20)

Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.
 
Windows File Systems
Windows File SystemsWindows File Systems
Windows File Systems
 
Windows V/S Linux OS - Comparison
Windows V/S Linux OS - ComparisonWindows V/S Linux OS - Comparison
Windows V/S Linux OS - Comparison
 
Hard Disk Drive
Hard Disk Drive Hard Disk Drive
Hard Disk Drive
 
System Booting Process overview
System Booting Process overviewSystem Booting Process overview
System Booting Process overview
 
Booting
BootingBooting
Booting
 
Memory Hierarchy
Memory HierarchyMemory Hierarchy
Memory Hierarchy
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Operating System.pdf
Operating System.pdfOperating System.pdf
Operating System.pdf
 
Dwh lecture-07-denormalization
Dwh lecture-07-denormalizationDwh lecture-07-denormalization
Dwh lecture-07-denormalization
 
DMA operation
DMA operationDMA operation
DMA operation
 
Disk management
Disk managementDisk management
Disk management
 
Unix case-study
Unix case-studyUnix case-study
Unix case-study
 
Parallel computing
Parallel computingParallel computing
Parallel computing
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Chapter 21 - The Linux System
Chapter 21 - The Linux SystemChapter 21 - The Linux System
Chapter 21 - The Linux System
 
Expansion Bus, Internal & External Buses, Northbridge/Southbridge, Device Dri...
Expansion Bus, Internal & External Buses, Northbridge/Southbridge, Device Dri...Expansion Bus, Internal & External Buses, Northbridge/Southbridge, Device Dri...
Expansion Bus, Internal & External Buses, Northbridge/Southbridge, Device Dri...
 
Fetch decode-execute presentation
Fetch decode-execute presentationFetch decode-execute presentation
Fetch decode-execute presentation
 
09. Memory, Storage (RAM, Cache, HDD, ODD, SSD, Flashdrives)
09. Memory, Storage (RAM, Cache, HDD, ODD, SSD, Flashdrives)09. Memory, Storage (RAM, Cache, HDD, ODD, SSD, Flashdrives)
09. Memory, Storage (RAM, Cache, HDD, ODD, SSD, Flashdrives)
 

Viewers also liked

Viewers also liked (18)

Memory & the fetch decode-execute cycle
Memory & the fetch decode-execute cycleMemory & the fetch decode-execute cycle
Memory & the fetch decode-execute cycle
 
13.computer buses
13.computer buses13.computer buses
13.computer buses
 
Mother Board
Mother BoardMother Board
Mother Board
 
Expansion cards
Expansion cardsExpansion cards
Expansion cards
 
Introduction to CPU registers
Introduction to CPU registersIntroduction to CPU registers
Introduction to CPU registers
 
04. Computer Casing (Case, Housing)
04. Computer Casing (Case, Housing)04. Computer Casing (Case, Housing)
04. Computer Casing (Case, Housing)
 
External Cards and Slots
External Cards and SlotsExternal Cards and Slots
External Cards and Slots
 
Buses in a computer
Buses in a computerBuses in a computer
Buses in a computer
 
Mother board
Mother boardMother board
Mother board
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
 
Computer memory
Computer memoryComputer memory
Computer memory
 
Cancer cervicouterino
Cancer cervicouterinoCancer cervicouterino
Cancer cervicouterino
 
siddhartsharma
siddhartsharmasiddhartsharma
siddhartsharma
 
1 BUF AW 14
1 BUF AW 141 BUF AW 14
1 BUF AW 14
 
Partnership-Study-Vietnam-Summary_Donor-Platform-2008
Partnership-Study-Vietnam-Summary_Donor-Platform-2008Partnership-Study-Vietnam-Summary_Donor-Platform-2008
Partnership-Study-Vietnam-Summary_Donor-Platform-2008
 
Modelo genecologico
Modelo genecologicoModelo genecologico
Modelo genecologico
 
Citologia exfoliativa 1
Citologia exfoliativa 1Citologia exfoliativa 1
Citologia exfoliativa 1
 

Similar to F453 computer science fde cycle

310471266 chapter-7-notes-computer-organization
310471266 chapter-7-notes-computer-organization310471266 chapter-7-notes-computer-organization
310471266 chapter-7-notes-computer-organizationsrinoni
 
COMPUTER ORGANIZATION NOTES Unit 7
COMPUTER ORGANIZATION NOTES Unit 7COMPUTER ORGANIZATION NOTES Unit 7
COMPUTER ORGANIZATION NOTES Unit 7Dr.MAYA NAYAK
 
Computer Organization & Architecture (COA) Unit 2
Computer Organization & Architecture (COA) Unit 2Computer Organization & Architecture (COA) Unit 2
Computer Organization & Architecture (COA) Unit 2parthivrathodlits
 
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdfSAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdfDrKalaavathiBuvanesh
 
Control unit design
Control unit designControl unit design
Control unit designDhaval Bagal
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationAmrutaMehata
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Subhasis Dash
 
Computer Organization and Architechuture basics
Computer Organization and Architechuture basicsComputer Organization and Architechuture basics
Computer Organization and Architechuture basicsLucky Sithole
 
computer architecture
computer architecturecomputer architecture
computer architecturePandiya Rajan
 
introduction COA(M1).pptx
introduction COA(M1).pptxintroduction COA(M1).pptx
introduction COA(M1).pptxBhavanaMinchu
 
Computer Architecture | Computer Fundamental and Organization
Computer Architecture | Computer Fundamental and OrganizationComputer Architecture | Computer Fundamental and Organization
Computer Architecture | Computer Fundamental and OrganizationSmit Luvani
 

Similar to F453 computer science fde cycle (20)

310471266 chapter-7-notes-computer-organization
310471266 chapter-7-notes-computer-organization310471266 chapter-7-notes-computer-organization
310471266 chapter-7-notes-computer-organization
 
COMPUTER ORGANIZATION NOTES Unit 7
COMPUTER ORGANIZATION NOTES Unit 7COMPUTER ORGANIZATION NOTES Unit 7
COMPUTER ORGANIZATION NOTES Unit 7
 
Central processing unit i
Central processing unit iCentral processing unit i
Central processing unit i
 
Basic non pipelined cpu architecture
Basic non pipelined cpu architectureBasic non pipelined cpu architecture
Basic non pipelined cpu architecture
 
CPU.ppd
CPU.ppdCPU.ppd
CPU.ppd
 
Digital-Unit-III.ppt
Digital-Unit-III.pptDigital-Unit-III.ppt
Digital-Unit-III.ppt
 
Computer Organization & Architecture (COA) Unit 2
Computer Organization & Architecture (COA) Unit 2Computer Organization & Architecture (COA) Unit 2
Computer Organization & Architecture (COA) Unit 2
 
Chap 3 CA.pptx
Chap 3 CA.pptxChap 3 CA.pptx
Chap 3 CA.pptx
 
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdfSAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
 
Control unit design
Control unit designControl unit design
Control unit design
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organization
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1)
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
 
CAO.pptx
CAO.pptxCAO.pptx
CAO.pptx
 
Computer Organization and Architechuture basics
Computer Organization and Architechuture basicsComputer Organization and Architechuture basics
Computer Organization and Architechuture basics
 
computer architecture
computer architecturecomputer architecture
computer architecture
 
introduction COA(M1).pptx
introduction COA(M1).pptxintroduction COA(M1).pptx
introduction COA(M1).pptx
 
Computer Architecture | Computer Fundamental and Organization
Computer Architecture | Computer Fundamental and OrganizationComputer Architecture | Computer Fundamental and Organization
Computer Architecture | Computer Fundamental and Organization
 
Unit I.pptx
Unit I.pptxUnit I.pptx
Unit I.pptx
 
SUDHARSAN.V.pptx
SUDHARSAN.V.pptxSUDHARSAN.V.pptx
SUDHARSAN.V.pptx
 

Recently uploaded

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 

Recently uploaded (20)

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 

F453 computer science fde cycle

  • 1. F453 COMPUTER SCIENCE FETCH DECODE EXECUTE CYCLE
  • 2. THE PROCESSOR Registers Control unit ALU Memory Input / output Address bus Control bus Data bus
  • 3. REGISTERS • Registers are memory locations within the processor itself. They work at extremely fast speeds, so they can be used by the processor, without causing a bottleneck. • A bottleneck is the slowest part of the system, which limits the speed of the system as a whole.
  • 4. PROGRAM COUNTER (PC) • The program counter keeps track of the memory location of the line of machine code being executed. It gets incremented, to point to the next instruction. • The program counter is also changed by instructions that alter the flow of control. In the case of the Little Man Computer, instructions like Branch if Zero (BRZ), Branch Always (BRA) and Branch if Positive (BRP) can move the program counter backwards or forwards.
  • 5. MEMORY DATA REGISTER (MDR) • The memory data register stores the data that has been fetched from or stored in the memory.
  • 6. MEMORY ADDRESS REGISTER • The memory address register stores the address of the data or instructions that are to be fetched from, or sent to.
  • 7. CURRENT INSTRUCTION REGISTER (CIR) • The current instruction register stores the most recently fetched instruction, waiting to be decoded and executed.
  • 8. ACCUMULATOR (ACC) • The accumulator stores the results of calculations made by the ALU. • In the Little Man Computer, the instruction LDA loads the contents of a given memory location into the accumulator, and STA stores the contents of the accumulator in a given memory location.
  • 9. GENERAL PURPOSE REGISTERS • Processors may also have general purpose registers. • These can be used temporarily to store data being used rather than sensing data to and from the comparatively much slower memory.
  • 10. BUSSES • Busses are the communications channels through which data can be sent around the computer. A USB (universal serial bus) is a common, well known bus, and is used to transfer data between the computer and external devices. • There are 3 busses when relating to the FDE cycle, the data bus, control bus and address bus.
  • 11. WHAT DO THE BUSES DO IN THE FDE CYCLE • The data bus carries data between the processor and memory. • The address bus carries the address of the memory location being read from or written to. • And the control bus sends control signals from the control unit.
  • 12. ARITHMETIC LOGIC UNIT (ALU) • The ALU carries out the calculations and logical decisions. • The results of its calculations are stored in the accumulator.
  • 13. CONTROL UNIT (CU) • The control unit sends out signals to co-ordinate how the processor works. • It controls how the data moves around parts of the CPU and how it moves between the CPU and memory. • Instructions are decoded in the control unit.
  • 14. HOW DOES THE PROCESSOR EXECUTE THE FDE CYCLE
  • 15. STEP 1 (FETCH) • The first step in this set of instructions is to fetch the first instruction from the memory. • The program counter starts at 0 0(the program counter actually points to the next instruction to be executed, but at the start of the program, the next instruction is 0), and the value 0 is loaded into the memory address register (MAR). • The control unit (CU) then sends a fetch command, via the control bus, and the value 0 is sent down the address bus, meaning fetch the contents of memory location 0.
  • 17. STEP 2 • The contents of location 0 (LDA Num1) are sent down the data bus. This data is then stored in the memory data register (MDR), and then moved to the current instruction register (CIR).
  • 19. STEP 3 • The program counter is then increased by 1.
  • 21. STEP 4 (DECODE) • For the current instruction, the fetch step is complete, the next step is the decode step. • The contents of the CIR are sent to the CU. • The CU decodes the instruction LDA Num1 as load the contents of Num1 into the accumulator. • As the program will be executing the instruction on Num1, this location will be loaded onto the MAR.
  • 23. STEP 5 (EXECUTE) • After the contents of the CIR have been decoded, the next step is the execute step. • The CU sends a fetch instruction down the control bus, and the value in the MAR (Num1) is sent down the address bus. • The contents of memory address 4 are sent to the processor via the data bus, and loaded into the MDR, and then sent to the accumulator. • This is the complete run through for the FDE cycle. The process is now repeated for the next line of code.
  • 25. REST OF CODE • Fetch: The PC is copied to the MAR. The contents of memory location 1 are loaded onto the CIR. The PC is incremented. • Decode: The contents of the CIR are sent to the control unit, and decoded as add the contents of Num2 (location 5) to the contents of the accumulator. • Execute: The contents of memory location 5 are fetched from memory and loaded into the MDR, and then to the ALU.
  • 26. REST OF CODE • Fetch: the PC is copied into the MAR, and the contents of memory location 2 are fetched and loaded into the CIR. The PC is incremented to 3. • Decode: The contents of the CIR are sent to the control unit, and decoded as store the contents of the ACC in Total (in memory location 6). The location for total 6 is loaded into the MAR, and the contents of the ACC are copied to the MDR. • Execute: A write signal is sent down the control bus, the location 6 is sent down the address bus and the contents of the MDR (15) is sent down the data bus. This results in the value 15
  • 27. REST OF CODE • Fetch: The PC is copied into the MAR, and the contents of location 3 are fetched and loaded into the CIR. The PC is incremented to 4. • Decode: The contents of the CIR are sent to the control unit, and decoded as Halt. • Execute: The program terminates.
  • 28. THE VON NEUMANN ARCHITECTURE • Von Neumann is the person who created the simplified version of the processor at the start of this presentation. • In his diagram, the instructions and data are stored in memory together. In the LMC, the instructions are stored in memory locations 0 to 3, and the data in