1.1.1 Structure and function of the processor
Practise exam questionsStructure and function of the processor — Note 4 of 5
Candidates need to understand what is meant by pipelining and how it allows the fetch, decode and execute stages of different instructions to overlap. Candidates need to understand how pipelining improves processor efficiency, and why branch instructions can cause the pipeline to be flushed.
Pipelining allows the processor to work on several instructions at once by overlapping the stages of the fetch-decode-execute cycle. While one instruction is being executed, the next can be decoded and the one after that fetched, so the processor completes more instructions in the same time.
Exam tipCommon mistake
Overlapping the fetch, decode and execute stages so that different instructions are at different stages at the same time.
When a branch (jump) instruction is executed, the instructions already fetched and decoded behind it are no longer needed and must be discarded, so the pipeline has to refill.
Cycle: 1 2 3 4 5
Fetch: I1 I2 I3 I4 I5
Decode: I1 I2 I3 I4
Execute: I1 I2 I3
If I2 is a branch, I3 and I4 (already fetched/decoded)
are discarded and the pipeline is flushed.Ready to test yourself?
Practise 1.1.1 questions