4.10 – Fetch-Execute Cycle
Previous: 4.09 - The CPU
The Fetch-Execute Cycle (sometimes called the Fetch-Decode-Execute Cycle) describes how a CPU carries out instructions
The cycle consists of three stages:
-
The Fetch Stage
The next instruction is loaded from main memory into the Instruction Register in the CPU. The Program
Counter (the register that stores what memory address the next instruction is at) is incremented to
point to the next instruction.
-
The Decode Stage
The CPU works out what needs to be done in order to carry out the instruction.
-
The Execute Stage
The operation is carried out by the CPU. If necessary, data is sent between the CU and the ALU. Data may
be written to or read from main memory. Any relevant registers are updated.
Then, the cycle starts again. Each stage takes exactly one clock tick.
How will the clock speed of a CPU affect its performance?
Tap/click to reveal
If the clock speed is higher, the Fetch-Execute Cycle takes less time and therefore the CPU performs
better. However, increasing the clock speed above the recommended level is called "overclocking" -
which could be dangerous for your computer.
Next: 4.11 - CPU Performance
© Rujul Nayak 2024-