The Fetch Decode Execute Cycle

The Fetch Decode Execute Cycle, also known as the Fetch Execute Cycle is the foundation of how all computers work.

Purpose of the CPU - fetch decode execute

When computers were first created, basic instructions were provided directly to the computer along with the data to be used. The machine claimed to be the first real computer was the Difference Engine, created by Charles Babbage and programmed by Ada Lovelace.

Today, our machines are far more complex and use a system known as the Stored Program Concept. What this means is that both our instructions and data are stored in the same format…. binary!

In order for the computer to understand what is instruction and what is data, it needs to perform a set of tasks that fetches the required information, understands it, then processes it. This is known as the Fetch, Decode, Execute Cycle (also referred to as the Fetch Execute Cycle).

Fetch

In this stage, the processor gets the next instruction from main memory along with any data needed and holds these in special memory locations called registers.

Decode

Once the required information is obtained from the main memory, the processor has to decode the binary into two parts. The first part is the instruction, and at this stage of the cycle is called the Opcode.

The second part is the data which is referred to as the Operand.

These words should be familiar to you from maths. When you perform a mathematical calculation, the Operator (what we called the Opcode) is the function to be performed. Eg. Add, or subtract. Whereas the data / numbers to be operated upon is called the Operand… the same!

Execute

Finally, the processor knows what to do with the instruction and data and can complete the task. Once the outcome is known, this is stored in the final register called the Accumulator.

Imagine this as the screen of your calculator that is showing you a running total as you perform more operations.

Grab a calculator and have a go – how does that running total work? (hint. It’s the processor!)

The Fetch Decode Execute Cycle is the process that is used to measure the speed of the CPU. Click here to see the factors that affect the speed of the processor.

Find this page helpful? Please consider sharing this page on your social media mentioning @TeachAllAboutIT

Share on facebook
Share on google
Share on twitter
Share on linkedin
Share on pinterest
Share on reddit

Looking For More?

Lesson Plan

Presentation

Homework

Not a member yet? Sign Up Here

Or log in below

Sign Up For Membership Today

Computer Science Student

Individual Site License
Topic Introduction Pages
Additional Revision Resources
Revision Videos
Exam Question Walkthroughs
Discounted Group Lessons
£2.50 per Month. After your initial payment, your first payment is Free.

Whole School

Whole School Site License (teacher access)
Up to 50 student accounts (£3 per student, per annum for additional students)
Online Topic Lesson Plans
Differentiated Homework Tasks
Monthly Bundle of Downloadable Resources
Discounted Live Lessons
£12.50 per Month.
Number of courses 00
GET IT NOW GET IT NOW