L3 Lesson Plan - Computer Systems - KS4
L3 Lesson Plan - Computer Systems - KS4
Learning objectives
● Explain how the fetch-decode-execute cycle works by describing what happens
at each stage
● Describe the role of each part of the CPU as part of the fetch-decode-execute
cycle
Key vocabulary
Fetch, decode, execute
Preparation
Subject knowledge:
You will need to have a clear understanding of how the FDE cycle works in order to
teach this lesson. To prepare, you could read this A level explanation to deepen your
understanding.
We would suggest that you practise using the LMC simulator before you try it with
learners. On this page https://www.101computing.net/LMC/ you can see some practise
exercises that you could use to familiarise yourself with assembly language and the FDE
cycle in action.
This simulator is slightly less abstract, as it has a control unit and ALU. There are sample
programs you can step through to see the FDE cycle using these parts of the CPU
http://www.peterhigginson.co.uk/AQA/
● Slides
● FDE jumble! - Activity 1 worksheet
● FDE jumble! - Activity 1 solutions
● Observing the FDE cycle: Activity 2 worksheet
● Question log: Plenary worksheet
Assessment opportunities
The ’Key components of the CPU’ activity is an opportunity to revisit terms from the last
lesson. The ‘High-level language’ activity will allow you to see if learners can sequence
the FDE correctly.
Outline plan
Please note that the slide deck labels the activities in the top right-hand corner to help
you navigate the lesson.
There are animations on slide 3 to reveal each answer from the top down.
Project the high-level language to the class. You could use the animation to
hide the questions from the learners, or show the learners the questions at
the same time.
You could expand this activity by asking learners how they could improve
the program, ask them why ‘WHILE True’ could be a problem, etc.
Give the learners an outline of each of the stages before they attempt a
jumble activity where they have to order the full step descriptions that
make up the cycle.
Start with fetch, and explain that all the instructions are loaded into RAM
(in order), before the program starts and any cycles have been completed.
The first stage is for an instruction to be grabbed from RAM and put in the
appropriate registers (more on this later). The instruction is then ready for
the next stages.
The control unit then decodes the instruction, reading the binary value and
figuring out which command it responds to. The mapping of binary to
commands will be different for every processor.
Finally, the instruction is executed and the control unit will send signals to
the other components that are required for the instruction.
The learners are then given the stages jumbled up (as a Parson’s Problem)
and have to order them correctly before colour coding as either fetch,
decode, or execute. You should then lead the learners through the correct
order and discuss/debate any other order presented by them.
using the single step arrow (right-hand red arrow). Point out the log
file that explains what has happened in the FDE cycle for that
instruction.
Instruct the learners to load the simulator and follow the instructions on
their worksheets, the questions on slide 13 are there for them to answer.
Note: Make sure they are using the ‘Adding 2 inputs’ program — it is
simpler and will allow them to focus on the cycle.
Once they have had time to record their observations, pull this class
together to provide answers for the exploration questions on slide 14.
Next the learners are going to step through the program and make notes
on what each component does in each stage of the cycle. They can use the
logs for this. Be aware that the ALU and control unit are not on this
simulator so they will need to use their prior learning to fill in those sections.
You can also use the other simulator —
http://www.peterhigginson.co.uk/AQA/ — to help them see what they are
doing.
Give them a few minutes to do this and then bring them back together to
show the answers using slides 16–19.
Particularly focus on the fact that both data and instructions are in RAM
and need to be fetched.
Resources are updated regularly — the latest version is available at: ncce.io/tcc.
This resource is licensed under the Open Government Licence, version 3. For more information on this
licence, see ncce.io/ogl.