Study Guide Instructor view

The Fetch-Decode-Execute Cycle

Teaching notes for Lesson 3.2, with controls for presenting it.

Keep this page on your own screen. Share only the lesson window. The lesson window holds no teaching notes, so sharing it cannot show them.

Presenting

  1. Open the lesson in its own window and share that window, not this one.
  2. Use Next and Previous here, or the lesson’s own, to move through the lesson. Next reveals one thing at a time: the next idea, or the answer to the question on screen, then the next step. Previous takes the last reveal back. The line below says what is on screen and what Next will show.
  3. Reveal hints and answers when the class is ready, and reset a demonstration before using it again.

The controls need JavaScript and a browser that supports BroadcastChannel. Without them, open the lesson in presentation mode and use its own controls.

The two windows talk to each other only inside this browser, on this device. Nothing is sent to a server, and no account is needed. A second device (a phone or another tablet) cannot follow the lesson window yet.

Lesson plan

Level
Intermediate
Time
About 60 minutes; the steps below add up to 60

Pupils follow one instruction at a time through a three-instruction program (LOAD 20, ADD 21, STORE 22), predicting which register and bus is used before each transfer is shown. They then record the whole program in a trace table and apply the cycle to unseen cases. The aim is that pupils can say, for any transfer, what is moving, which register holds it and which bus carries it.

Objectives

  • Describe the three stages of the fetch-decode-execute cycle in order
  • Describe the part played by the PC, MAR, MDR, CIR and ACC, the ALU and the control unit at each stage
  • State which bus carries an address, a piece of data or instruction, and a control signal during the cycle
  • Complete a table showing the contents of the registers as a short program runs
  • Explain why the program counter is increased during each fetch

Before the lesson

  • Draw the cook and notepad picture from lesson 1 and add the CPU registers beside it: PC, MAR, MDR, CIR, ACC, with ALU and control unit. You will move one number at a time through it.
  • Write the memory on the board: address 1 LOAD 20, address 2 ADD 21, address 3 STORE 22, address 20 holds 9, address 21 holds 5, address 22 empty. Keep it visible throughout.
  • Mini whiteboards for predictions before each StepThrough is opened.
  • A copy of the trace table skeleton (columns After, PC, MAR, MDR, CIR, ACC) for pupils who prefer paper.

Steps

  1. Introduction Opening

    On screen: the lesson’s title, module and number; Next adds its objectives and key terms, as the lesson page lists them; Next again begins the first step.

    Objectives on screen

    • Describe the three stages of the fetch-decode-execute cycle in order
    • Describe the part played by the PC, MAR, MDR, CIR and ACC, the ALU and the control unit at each stage
    • State which bus carries an address, a piece of data or instruction, and a control signal during the cycle
    • Complete a table showing the contents of the registers as a short program runs
    • Explain why the program counter is increased during each fetch

    Purpose: Pupils follow one instruction at a time through a three-instruction program (LOAD 20, ADD 21, STORE 22), predicting which register and bus is used before each transfer is shown. They then record the whole program in a trace table and apply the cycle to unseen cases. The aim is that pupils can say, for any transfer, what is moving, which register holds it and which bus carries it.

  2. 1. The cook’s routine, again Think 5 min

    Purpose: Recall the cook’s routine and the notepad so that fetch, decode and execute are names for steps pupils already put in order, and the PC increase is expected.

    Ask

    • Name the three things the cook does with each card, in order.
    • What must the cook change on the notepad before going back for the next card?

    Responses to expect

    • Take the card, work out what it says, do it
    • Add one to the next-card number

    Misconceptions to challenge

    • A learner may believe: “The notepad number stays the same until the whole lunch is made.” Respond: Ask what would happen at the next fetch if it did not change: the same card would be taken again.
    • A learner may believe: “The cook works out what the card says before taking it.” Respond: The cook cannot read the card until it is in their hand; fetch comes before decode.

    On the board or with the pen

    • Write the three words beside the kitchen picture and draw a loop arrow back from the end to the start.

    What learners should notice

    • The order is fixed: take, work out, do.
    • The PC increase happens at the end of fetch, before the instruction is carried out.

    Checking understanding: Pupils show the three words in order on mini whiteboards; check the order and the notepad change.

    Depending on the answers

    • If pupils omit the notepad change: ask what happens to the cook who forgets to move on the number.
    • If they are secure: ask which CPU part is the notepad and which is the cook’s brain before moving on.

    English as an additional language

    • Check the verbs take, work out and carry out; show them with simple actions.

    Discussion pause: Thirty seconds of silent thinking before anyone answers.

    In the lesson window

    • Think it through: Name the three things the cook does with each card, in order. And what must the cook change on the notepad before going back for the next card?
  3. 2. Fetch: getting the instruction Discover 8 min

    Purpose: Pupils predict the registers and buses for fetching LOAD 20 before the StepThrough shows them, so the fetch order is reasoned, not memorised.

    Ask

    • Which registers would be involved in bringing LOAD 20 into the CPU, and in what order?
    • At the start of a fetch, the PC holds 2: what happens first?
    • Why does the instruction arrive in the MDR and not straight in the CIR?

    Responses to expect

    • PC to MAR, then memory to MDR, then MDR to CIR, and the PC increases
    • The address 2 is copied from the PC to the MAR
    • Everything from memory arrives in the MDR first

    Misconceptions to challenge

    • A learner may believe: “The instruction goes from memory straight to the CIR.” Respond: Everything arriving from memory comes through the MDR; the CIR holds the instruction while it is obeyed. Use the misconception callout.
    • A learner may believe: “The MAR holds the instruction.” Respond: The MAR holds an address only. Ask what the MAR sends along the address bus.
    • A learner may believe: “The ALU adds one to the PC.” Respond: The PC is increased as part of the fetch by the CPU’s own control, not as an arithmetic result held in the ACC. Ask which register the ALU’s answers go to.

    On the board or with the pen

    • Write the fetch as five numbered arrows on the register picture as the class predicts them, then compare with the StepThrough.

    What learners should notice

    • The address bus carries the address one way; the data bus carries the instruction back.
    • The control bus carries the read signal.

    Checking understanding: Check predictions on whiteboards before revealing; then pupils answer first-in-the-mar and explain why the other two options fail.

    Depending on the answers

    • If most predictions skip the MDR: ask where the instruction waits on arrival and restate that the CIR is where it is kept while it is obeyed.
    • If the class predicts correctly: ask them to predict what the PC holds when the fetch is finished.

    Support

    • Provide the five transfers as cards to be put in order before the StepThrough.

    English as an additional language

    • Check fetch, increase and arrive; draw each arrow as the step is said.

    Discussion pause: Pairs write their predicted order before the StepThrough is opened.

    In the lesson window

    • Think it through: Before the CPU can obey LOAD 20, it has to bring it from memory into the CPU. Using the registers and buses from the last lesson, which would you expect to be involved, and in what order?
    • Check your understanding: At the start of a fetch, the PC holds 2. What happens first?
  4. 3. Decode: working out what it means Discover 6 min

    Purpose: Pupils work out that bits in the CIR must be interpreted before anything is done, and that the control unit does it, separating decode from fetch and from the ALU’s work.

    Ask

    • The CIR holds the bits for LOAD 20: what does the CPU need to work out?
    • Which part of the CPU does that?
    • What are the two parts of an instruction?

    Responses to expect

    • What operation it is and which address it refers to
    • The control unit
    • The operation and the address

    Misconceptions to challenge

    • A learner may believe: “The ALU decodes, because it is the brain of the CPU.” Respond: The ALU calculates and compares; the control unit directs. Decoding works out what to direct next.
    • A learner may believe: “Decode is when the instruction is brought from memory.” Respond: That was fetch. By decode the instruction is already in the CIR.
    • A learner may believe: “Decode increases the PC.” Respond: The PC was increased during fetch so that it already points at the next instruction.

    On the board or with the pen

    • Split the word LOAD 20 into two boxes labelled operation and address.

    What learners should notice

    • An instruction is a pattern of bits until it is decoded.
    • Decode produces no result that is stored; it prepares execute.

    Checking understanding: The what-decode-does check; ask pupils to place each wrong option at the stage it really belongs to (execute, fetch, fetch).

    Depending on the answers

    • If pupils choose the ALU option: ask which part of the CPU sends the signals that start other parts working, and map it to the control unit.

    English as an additional language

    • Check interpret and operation; use a code-breaking analogy only if it helps.

    In the lesson window

    • Think it through: The CIR holds the bits for LOAD 20. Before the computer can carry it out, what does the CPU need to work out, and which part of the CPU do you think does that?
    • Check your understanding: Which statement describes what happens during decode?
  5. 4. Execute: carrying out LOAD 20 Discover 7 min

    Purpose: Pupils predict the path of the value from address 20 into the ACC and see that data uses the same registers and buses as an instruction did.

    Ask

    • Which register must first hold the address 20?
    • Which two registers does the value pass through on its way to the ACC?
    • Which bus brings the value back from memory?

    Responses to expect

    • The MAR
    • The MDR, then the ACC
    • The data bus

    Misconceptions to challenge

    • A learner may believe: “The value goes straight from memory to the ACC.” Respond: Everything arriving from memory passes through the MDR, instruction or data.
    • A learner may believe: “The CIR holds the 9 because it is the value just loaded.” Respond: The CIR still holds LOAD 20, the instruction being obeyed.
    • A learner may believe: “The PC changes when a value is loaded.” Respond: The PC changed in the fetch; execute LOAD does not touch it.

    On the board or with the pen

    • Add a second route to the register picture in a different colour from the fetch route, labelled MAR, address bus, memory, data bus, MDR, ACC.

    What learners should notice

    • The same MAR and MDR serve for instructions and for data.
    • At the end the ACC holds 9.

    Checking understanding: Ask pupils to say aloud what the MAR and the MDR each hold at the end of the load (20 and 9).

    Depending on the answers

    • If predictions bypass the MDR: return to the callout in the fetch step and re-run the question: does the instruction go straight in?
    • If predictions are all correct: ask what would change for a STORE instruction.

    English as an additional language

    • Pair each register with a word: place (MAR), arrival tray (MDR), running total (ACC).

    Discussion pause: Pupils predict the three transfers silently before the StepThrough is opened.

    In the lesson window

    • Think it through: Which two registers do you expect the value from address 20 to pass through on its way to the ACC, and which register must first hold the address 20?
  6. 5. Execute: ADD and STORE Predict 8 min

    Purpose: Pupils see that ADD routes the value to the ALU rather than the ACC, and that STORE reverses the direction of the data bus.

    Ask

    • Which part does the addition and where does the answer end up?
    • In ADD, where does the value 5 go, compared with LOAD?
    • During STORE 22, what travels on the data bus and what on the address bus?

    Responses to expect

    • The ALU adds, and the answer 14 ends in the ACC
    • To the ALU, not straight to the ACC
    • The value 14 on the data bus, the address 22 on the address bus

    Misconceptions to challenge

    • A learner may believe: “The control unit does the addition.” Respond: The control unit directs; the ALU adds. Ask who calculated in the kitchen.
    • A learner may believe: “The data bus carries the address 22 in a STORE.” Respond: The address says where, so it travels on the address bus; the data bus carries the value 14.
    • A learner may believe: “The write signal is on the data bus.” Respond: A command travels on the control bus.

    On the board or with the pen

    • Draw the memory with 22 filled in as the store completes, so pupils see the result.

    What learners should notice

    • The data bus carries values in both directions: into the CPU for LOAD, out of it for STORE.
    • The ACC holds 14 after the add.

    Checking understanding: The store-data-bus check; ask pupils to name which option is the address and which the signal and give the bus for each.

    Depending on the answers

    • If pupils pick the address option: ask which sentence would answer ‘where?’ and which ‘what?’ and map them to the two buses.
    • If most are secure: ask what the ACC and memory hold after the program: 14 in both.

    Stretch

    • What would change if the instruction were SUBTRACT 21 instead of ADD 21?

    English as an additional language

    • Check addition, store and travel; point at each register as it is mentioned.

    In the lesson window

    • Think it through: Executing ADD 21 means adding the contents of address 21, which is 5, to the 9 in the ACC. Which part of the CPU does the addition, and where do you expect the answer to end up?
    • Check your understanding: During STORE 22, which of these travels along the data bus?
  7. 6. Tracing the whole program Experiment 10 min

    Purpose: Pupils record the registers after each stage of the whole program, turning the cycle into a table they can complete independently.

    Ask

    • What do the PC, MAR, MDR, CIR and ACC hold after each stage?
    • Why does the MAR hold 20 after executing LOAD 20, but 1 after the fetch?
    • Which values stay the same from one row to the next?

    Responses to expect

    • Values built row by row from the previous row
    • It holds whichever address was last sent to memory
    • Registers keep their old values until something changes them

    Misconceptions to challenge

    • A learner may believe: “Every register is emptied at the start of each row.” Respond: A register keeps its value until it is overwritten. Compare two rows to see what stayed.
    • A learner may believe: “The PC increases after an instruction is executed.” Respond: It increases during the fetch, so after fetching LOAD 20 the PC already holds 2.
    • A learner may believe: “The MDR holds the address of the data.” Respond: The MAR holds the address; the MDR holds what arrived.

    On the board or with the pen

    • Copy the trace table on the board and fill it in with pupils’ answers row by row, circling each value that changed.

    What learners should notice

    • The ACC changes only in an execute stage.
    • The PC changes only in a fetch stage.

    Checking understanding: Walk the room as pupils type into the table; watch for MAR and MDR swapped, and the PC increasing late.

    Depending on the answers

    • If many fill the MAR and MDR the wrong way round: return to the register picture and trace one row aloud together, saying what is sent and what arrives.
    • If the table is done quickly: ask them to predict a fourth row if the program carried on to address 4.

    Support

    • Give a row with half the cells filled in and ask pupils to supply the rest.

    Stretch

    • Trace the program again with address 20 holding 12 and address 21 holding 7; what is stored at 22?

    English as an additional language

    • Read each column heading aloud with its meaning before filling in.

    Discussion pause: Pupils complete a row alone before comparing with a partner.

  8. 7. Which bus carries it? Experiment 5 min

    Purpose: Pupils classify every transfer in the program by the kind of message it carries, which makes the three buses a rule they can apply, not a list.

    Ask

    • Is each thing travelling an address, a value or a command?
    • Why does an instruction coming from memory use the data bus?
    • Which bus is the only one that never carries data or addresses?

    Responses to expect

    • Address bus for places, data bus for values and instructions, control bus for read and write signals
    • An instruction is data to memory: bits being moved
    • The control bus

    Misconceptions to challenge

    • A learner may believe: “An instruction travels on the control bus because it controls the CPU.” Respond: In memory an instruction is stored bits and travels as data. The control bus carries signals such as read and write.
    • A learner may believe: “The MAR’s contents travel on the data bus.” Respond: The MAR holds an address; addresses travel on the address bus.

    What learners should notice

    • The kind of message, not the register, decides the bus.

    Checking understanding: Pupils complete the bus-sort table; ask one pupil to give the reason, not just the answer, for each row.

    Depending on the answers

    • If instructions are put on the control bus: ask whether an instruction is a place, a value or a command, and use ‘value’ for bits stored in memory.

    Support

    • Colour code the three kinds of message before the table.

    English as an additional language

    • Teach place, value and command as the three words for the three buses.
  9. 8. Using the cycle in new situations Apply 7 min

    Purpose: Pupils apply the cycle to new numbers, to a mistaken explanation and to a new instruction, with no hints before answering.

    Ask

    • With the PC at 40 at the start of a fetch, what do the PC and MAR hold at the end?
    • What has Rae got wrong about the MAR?
    • Which path does the value from address 30 take before the subtraction?

    Responses to expect

    • PC 41 and MAR 40
    • The MAR holds an address, and the instruction arrives in the MDR
    • Memory, data bus, MDR, ALU

    Misconceptions to challenge

    • A learner may believe: “The PC and the MAR both hold 41 after the fetch.” Respond: The MAR was given the address 40 before the PC increased; it keeps it until the next fetch.
    • A learner may believe: “Nothing is wrong, because the MAR is where anything arriving from memory waits.” Respond: Something does wait on arrival, but in a different register. Ask which register has data in its name.
    • A learner may believe: “A value passes through the CIR on the way to the ALU.” Respond: The CIR holds the instruction; values pass through the MDR.

    What learners should notice

    • Each of the three questions has a plausible wrong option that comes from a real earlier mistake.

    Checking understanding: Show-me answers before each reveal; ask a pupil to justify a wrong option as if they were Rae.

    Depending on the answers

    • If pupils choose PC 40 for the first question: ask when the PC increases and rerun the fetch for address 40 step by step.
    • If the class is confident: ask them to write the path for a LOAD from address 55 as a short list.

    Stretch

    • If the PC holds 40 at the start and the instruction at 40 is STORE 90, what are the MAR and the data bus carrying at each stage?

    English as an additional language

    • Offer a sentence frame: The ___ holds ___ and the ___ carries ___.

    In the lesson window

    • Apply it: A fetch begins with the PC holding 40. What do the PC and the MAR hold when the fetch has finished?
    • Apply it: Rae writes: “During a fetch, the MAR holds the instruction as it arrives from memory.” What is wrong with this?
    • Apply it: A different instruction, SUBTRACT 30, takes the value stored at address 30 away from the value in the ACC. Which path does the value from address 30 follow before the subtraction?
  10. 9. Show what you know Consolidate 4 min

    Purpose: Pupils explain, in their own words, why the PC is increased and recall the order of the stages, to check that the cycle is understood as a loop with a reason.

    Ask

    • Why does the PC have to be increased during every fetch, and what would happen if it were not?
    • Which list gives the stages in the right order?

    Responses to expect

    • It holds the address of the next instruction; without it the same instruction would be fetched again
    • Fetch, decode, execute

    Misconceptions to challenge

    • A learner may believe: “The program would just stop if the PC were not increased.” Respond: It would not stop; it would repeat the same instruction because the next fetch would find the same address.
    • A learner may believe: “The cycle runs once per program.” Respond: It repeats for every instruction. Link back to the cook taking card after card.

    On the board or with the pen

    • Write the class’s best explanation under the fetch-decode-execute loop diagram.

    Checking understanding: Collect explanations; look for the PC pointing to the next instruction and the idea of repeating the same one.

    Depending on the answers

    • If explanations only restate the stage order: ask what would the program do on a second fetch if the PC still held 1?
    • If answers are strong: ask them to explain what a jump instruction might change about the PC.

    English as an additional language

    • Allow a labelled drawing in place of a paragraph.

    Discussion pause: Ninety seconds of silent writing before pairs compare.

    In the lesson window

    • Think it through: In your own words, explain why the PC has to be increased during every fetch. What would happen if it were not?
    • Check your understanding: Which list shows the correct order of the cycle’s stages for one instruction?
  11. Lesson recap Closing

    On screen: the lesson’s objectives again; Next adds the closing question, which asks the class to explain each one in their own words without looking back. It says nothing about what anyone has learnt: use the answers to decide what to revisit.

    Points to listen for

    • Ask pupils to say aloud, without notes, what the PC, MAR, MDR, CIR and ACC hold, and one thing each bus carries.
    • Take one trace row from the table and ask pupils to explain how each cell was worked out and not just what it is.
    • Look ahead: the next lesson asks what makes some CPUs faster than others (cores, clock speed, cache), so pupils should think about what the cycle would look like if it ran many times a second.
    • Ask pupils to pick one mistake from the lesson (for example the MAR holding an instruction) and write a one-line correction for a younger pupil.

Consolidation

  • Ask pupils to say aloud, without notes, what the PC, MAR, MDR, CIR and ACC hold, and one thing each bus carries.
  • Take one trace row from the table and ask pupils to explain how each cell was worked out and not just what it is.
  • Look ahead: the next lesson asks what makes some CPUs faster than others (cores, clock speed, cache), so pupils should think about what the cycle would look like if it ran many times a second.
  • Ask pupils to pick one mistake from the lesson (for example the MAR holding an instruction) and write a one-line correction for a younger pupil.