GATE / CS ARCHIVE

GATE CSE 1992 / QUESTION 1(iv)

Why instruction prefetch can speed execution

Computer Organization & Architecture · Pipelining & Hazards · Full GATE CSE 1992 paper

GATE 1992, Q1(iv) Other
Report issue

Pipelining & Hazards

Question 1(iv), GATE 1992: Why does prefetching instructions into a buffer improve processing speed?
Question 1(iv), GATE 1992: Why does prefetching instructions into a buffer improve processing speed?
Tap to enlarge
Answer & solution

Answer: It overlaps instruction fetch with execution and reduces fetch waiting (no official key was published)

While the execution unit works on one instruction, a fetch unit can use available bus cycles to obtain later instructions into a queue. When execution needs the next instruction, it may already be present, hiding some memory latency rather than performing fetch and execution strictly serially. The gain is conditional on resources and a sufficiently predictable instruction stream. Branches can invalidate prefetched instructions, and a saturated shared memory bus can limit overlap, so prefetch is not a guarantee of speedup for every program.

Original paper, page 1