S3 Digital design with HDL · Practice
Pipelining the core: hazards and forwarding
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
How many cycles do 10 instructions take on a 7-stage pipeline with no stalls?
Check
A pipeline with forwarding runs code with 0.2 loads (0.3 of them used at once), 0.2 branches, a 0.2 misprediction rate and a 2-cycle penalty. What's the CPI?
Check
Without forwarding, 0.2 of instructions depend on the one just before and 0.1 on the one two before. Ignoring branches, what's the CPI?
Check
A single-cycle core runs at 800 ps per instruction; its pipelined version has a 250 ps clock and a CPI of 1.4. What's the speedup?
Check
A five-stage pipeline runs 20 instructions with 2 load-use stalls and 3 mispredicted branches at a 3-cycle penalty. How many cycles in all?
Check
A pipeline predicts branches not taken and resolves them in stage 3 (fetch is stage 1). How many cycles does a misprediction cost?
Check
A program has 0.2 loads (0.3 of them used by the next instruction) and 0.2 branches (0.3 of them mispredicted, 1 cycles each). The pipeline runs at 250 ps; the single-cycle core it replaces ran at 900 ps.
(a)
What is the pipeline's CPI?
(b)
How much faster is it than the single-cycle core?
Check
Cycles for 30 instructions on 4 stages, no stalls?
Check
CPI: 0.15 loads, 0.2 used at once, 0.25 branches, 0.3 mispredicted, 2-cycle penalty?
Check
Speedup: 900 ps single cycle, 220 ps pipeline, CPI 1.6?
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 S3