Fetch-Execute Cycle
Computer Science: OCR GCSE, topic 1.1.1
The Fetch, Decode, Execute Cycle
To process instructions and data, the processor needs to retrieve them from memory. To do this, the processor follows the fetch, decode, execute (FDE) cycle.

Fetch
- The address of the instruction/data that needs to be processed next is copied from the Program Counter (PC).
- The address is copied to the Memory Address Register (MAR).
- The PC is incremented to point to the next instruction/data that will be needed when the cycle starts again.
- The instruction stored at the location held by the MAR is copied to the Memory Data Register (MDR).

Decode
- The Control Unit decodes the contents of the MDR.
- The Control Unit sends control signals to the component within or outside the CPU that needs to act.

Execute
- The operation given by the instruction is done by the correct component.
- For example:
- The Arithmetic Logic Unit (ALU) does the operation given by the Control Unit.
- The value held by the Program Counter or Memory Address Register may change.
Test yourself on Fetch-Execute Cycle
Toggle until all are correct to show which registers are used in the fetch stage.
What happens during the fetch stage of the fetch, decode, execute cycle?
During a CPU cycle, the Arithmetic Logic Unit has been activated. During which stage of the FDE cycle was it activated?
The Fetch Stage of the Fetch, Decode, Execute Cycle