C8 Computer organization · Practice
Pipelining and hazards
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 8 kinds solid
Check
A 5-stage pipeline with no stalls runs 100 instructions.
(a)
How many cycles does it take?
(b)
How many instructions finish per cycle, on average?
Check
A pipeline's slowest three stages take 150, 180 and 200 ps (the others less), and each pipeline register adds 50 ps.
(a)
What is the clock period?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
What is the clock frequency?
Check
0.2 of a program's instructions are loads, 0.3 of which are used immediately; 0.2 are branches, 0.6 of which are mispredicted at a 2-cycle penalty.
(a)
What is the CPI?
(b)
What percentage of the cycles are lost to mispredictions?
Check
A processor's 800 ps of logic is split into 10 equal stages, each with a 30 ps register, and there are no stalls.
(a)
What is the cycle time?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
How many times the single-cycle throughput (with one register) is that?
Check
Without forwarding, 30% of instructions wait 2 cycles for the one before. With forwarding only load-use pairs stall 1 cycle: 20% loads, 50% of them used at once.
(a)
What's the CPI without forwarding?
(b)
And with it?
Check
How many cycles do 10 instructions take in a 5-stage pipeline with no stalls?
Check
The slowest stage takes 180 ps and the pipeline register adds 25 ps. What is the cycle time?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
Loads 0.15 (used at once 0.4 of the time), branches 0.2 (taken 1 of the time, predicted not taken, 2-cycle penalty): what is the CPI?
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 C8