S4 · Problem set 3
Problem set 3: front ends, ILP, threads and heterogeneous cores
These problems use lessons 6 to 16: pipeline depth, branch and target prediction, the front end, dynamic scheduling and speculation, the predictor lab, superscalar and VLIW issue, multithreading, heterogeneous multicores, and chiplets.
Check
A 6-wide fetch stops at taken branches, which come every 5 instructions, and loses 2 cycle(s) on each redirection.
(a)
What fetch rate does it reach?
(b)
And with zero-bubble redirection?
Check
A µop cache hits 0.85 of the time, delivering 6 µops a cycle; the decoders deliver 4.
(a)
What average delivery rate results?
(b)
What fraction of the time are the decoders idle?
Check
Branches are 0.15 of instructions, predicted 0.94 right with a 20-cycle penalty; taken branches are 0.15 of instructions and hit the BTB 0.9 of the time (misses cost 2 cycles); the instruction cache misses 2 times per thousand instructions at 15 cycles.
(a)
What CPI does the front end add?
(b)
What share of it is direction mispredictions?
Check
A branch is taken independently with probability 0.8, and one 2-bit saturating counter predicts it.
(a)
What long-run accuracy does the counter reach?
Check
2000 active branches share a table of counters (n = 10).
(a)
What is the chance a given branch shares its entry?
(b)
How many branches per entry is that on average?
Check
A recursive function calls itself 24 deep and then returns all the way; the return-address stack holds 8 entries.
(a)
How many returns are mispredicted?
Check
A core of 16 base units performs as Pollack's rule says and draws power in proportion to its area.
(a)
How much faster than a base core is it?
(b)
How many times the energy does it use for the same task?
Check
A chip of 64 base units runs code that's 0.99 parallel.
(a)
What does an asymmetric design with one 16-unit core reach?
(b)
And the ideal dynamic design?
Check
A big core draws 10 times a little core's power. A memory-bound thread runs 1.2 times faster on it, and a compute-bound thread 2.5 times faster.
(a)
How much more energy does the memory-bound thread use on the big core?
(b)
And the compute-bound thread?
Check
Two threads each reach IPC 1.6 alone on an SMT core; together the core reaches 1.15 times that.
(a)
What combined IPC does the core reach?
(b)
How much slower does each thread run than alone?
Check
Each thread issues 8 cycles of work between memory accesses that take 200 cycles.
(a)
How many fine-grained threads keep the core busy?
Check
A block of 32 instructions has a longest dependence chain of 4; the core is 8 wide.
(a)
What is the best IPC on this core?
(b)
What is the dataflow limit on any machine?
Check
A reduction runs on 2 pipelined unit(s) of latency 4; each unrolled copy of the loop body needs 4 registers, from 32.
(a)
How many independent accumulators keep the units busy?
(b)
What is the most the loop can be unrolled before running out of registers?
Check
An instruction path of 100 FO4 is pipelined with 2 FO4 of overhead per stage and hazards costing 0.1 cycles per instruction per stage.
(a)
What depth is best?
(b)
What time per instruction does it reach?
Check
A 256-instruction window sees a branch every 4 instructions, predicted 0.98 right.
(a)
How many of its instructions are on the correct path on average?
(b)
What is the most any window could have on the correct path?
Check
A 600 mm² design at 0.2 defects/cm² is split into 2 chiplets (ignore interface overhead).
(a)
What is the monolithic die's yield, in percent?
(b)
And each chiplet's?
Have paper and a calculator ready. Work each problem out by hand, then enter the answer. Your first try on each one counts toward your score.
Practice
Keep practicing
16 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.