You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
This lesson provides a detailed examination of the fetch-decode-execute (FDE) cycle, which is the fundamental process by which the CPU carries out instructions. This is a core topic in OCR J277 Section 1.1.1.
The fetch-decode-execute cycle is the continuous process that the CPU repeats for every instruction it processes. The cycle has three stages:
This cycle repeats continuously from the moment the computer is powered on until it is shut down. A modern CPU operating at 3 GHz completes approximately 3 billion of these cycles every second.
The following diagram shows the continuous cycle the CPU follows:
graph LR
F["1. FETCH\nRetrieve instruction\nfrom memory"] --> D["2. DECODE\nInterpret the\ninstruction"]
D --> E["3. EXECUTE\nCarry out the\ninstruction"]
E --> F
The purpose of the fetch stage is to retrieve the next instruction from main memory (RAM) and bring it into the CPU.
At the end of the fetch stage, the instruction is stored in the MDR, ready to be decoded.
OCR Exam Tip: Remember the order: PC -> MAR -> Memory -> MDR. This sequence is often tested in exam questions that ask you to describe the fetch stage.
The purpose of the decode stage is to interpret the instruction so the CPU knows what action to take.
Consider the instruction: ADD 5
| Part | Value | Meaning |
|---|---|---|
| Opcode | ADD | Perform addition |
| Operand | 5 | Add the value 5 (or the value at memory address 5) |
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.