A-level Computer Science revision · Processors, software and development

The CPU and the fetch-decode-execute cycle

The idea

The CPU contains the ALU (arithmetic and logic), the control unit (coordinates and decodes) and registers: the PC (address of the next instruction), MAR (address to access), MDR (data fetched or to be written), CIR (current instruction) and accumulator. Buses carry addresses, data and control signals.

  1. Fetch: PC → MAR; memory → MDR; MDR → CIR; PC increments.
  2. Decode: the control unit interprets the instruction.
  3. Execute: carry it out, using the ALU if needed.

Watch out The PC holds the address of the next instruction, not the instruction itself.

See it worked

Worked example

Describe the fetch stage.

  1. The address in the PC is copied to the MAR.
  2. The instruction at that address is loaded into the MDR, then copied to the CIR.
  3. The PC is incremented.

Answer PC → MAR, memory → MDR → CIR, PC + 1

Your turn

Question 11 mark

Which register holds the address of the next instruction?

Choose one
Question 21 mark

Which bus is one-directional, from the CPU to memory?

Choose one
Question 32 marks

Explain the role of the MDR.

Write your answer, then see a model answer
  1. Data fetched.
  2. Data to be written.

Answer The Memory Data Register holds the data or instruction just fetched from memory, or the data about to be written to memory.

A-level Computer Science Pro, OCR H446

A-level Computer Science Pro

£119 once

Price rises to £199 on 1 January. Save £80 by joining before then.

At least 12 months of access

By paying you agree to our Terms and get access straight away, which ends your 14-day cancellation right.

No VAT is charged.

Independent practice for OCR A-level Computer Science (H446), not endorsed by OCR.

Privacy · Terms