A pipeline uses the stage sequence fetch, decode, execute, memory, write back. An instruction visits every stage. How many stages does it visit?
In our ideal same-clock model, which quantity does instruction overlap increase?
An add result is ready after execute. If it reaches the next instruction in time, forwarding can supply it before register write-back.
Circle one: True False
A following add needs a load result before that result is available. Even forwarding cannot deliver it in time. What must the add do?
An empty five-stage pipeline starts one instruction per cycle. Each stage takes one cycle and there are no stalls. How many cycles are needed to complete five instructions?
Answer: ______________
A branch prediction selected the incorrect path. What happens to younger instructions fetched from that path?
Discarding wrong-path instructions after a branch misprediction guarantees that every cache effect of those instructions is also undone.
Circle one: True False
An empty five-stage pipeline starts one instruction per cycle. Stages take one cycle. Eight instructions would take 12 cycles without stalls. Two stall cycles are added. What is the total?