S4 Computer architecture · Practice
Speculation and the reorder buffer
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
0 solved
0 in a row
0 of 10 kinds solid
Check
Each branch is predicted correctly with probability 0.95. What's the probability that an instruction 10 branches past the oldest unresolved one is on the correct path?
Check
A 512-instruction window has a branch every 1/0.15 instructions, each predicted with accuracy 0.97. How many instructions are on the correct path, on average?
Check
A core fetches and executes 4 instructions per cycle, but only 0.9 of them turn out to be on the correct path, and it commits at most 4 per cycle. What's its best IPC?
Check
A 4-wide core with a 224-entry ROB averages 50 cycles from dispatch to commit. What IPC can it sustain at best?
Check
Loads are 0.25 of instructions, 0.01 of them are caught reading before a conflicting older store and replayed, and each replay costs 20 cycles. What CPI does that add?
Check
A full 128-entry window has a branch every 5 instructions predicted with accuracy 0.95. On average, how many of its instructions are wasted work?
Check
A window of 256 instructions sees a branch every 5 instructions, predicted with accuracy 0.9.
(a)
How many branches does it span?
(b)
How many of its instructions are on the correct path, on average?
(c)
What is the most any window could have on the correct path?
Check
Chance an instruction 8 branches ahead is on the right path, accuracy 0.92?
Check
Useful instructions: window 400, branch rate 0.18, accuracy 0.95?
Check
Replay CPI: 0.2 loads, 0.005 replayed, 25 cycles each?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in S4