דלג לתוכן

Labs · 9618 A2 15.1

זרימת פקודות

Five stages, one clock cycle each. Fetch the next instruction while the last one is still being decoded, and watch the program finish in far fewer cycles. Then see what a jump does to the pipeline.

5 levelsFree bench

In the exam

9618/32 May/June 2023 · Question 8(a) · 2 marks

Describe how pipelining is used in Reduced Instruction Set Computers (RISC).

Points that gain marks

  • Several instructions are processed at the same time (concurrently).
  • So more instructions are completed per unit of time: the throughput goes up.
  • Each stage of an instruction takes one clock cycle.
  • No two instructions can be in the same stage in the same clock cycle.
  • For example, while one instruction is decoded, the next one is fetched.

In this lab: Levels 2 and 3 show exactly this: one instruction per stage per cycle, and 5 instructions in 9 cycles instead of 25.

9618/33 May/June 2024 · Question 11(c) · 3 marks

Explain how pipelining affects the way a RISC processor handles interrupts.

Points that gain marks

  • It adds complexity: several instructions may still be in the pipeline when the interrupt arrives.
  • Usually all the instructions in the pipeline are discarded, except the one in the last stage (write back).
  • The interrupt is then handled.
  • After the interrupt has been serviced, the processor restarts with the next instruction in the sequence.

In this lab: The jump level shows the same idea: instructions already in the pipeline are discarded, and fetching starts again from a new address.

More real experiments

היכנס או צור חשבון

IGCSE, A-Level & AP