S417 of 55
0 XP
  1. Hook
  2. Problems

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 2n 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?

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.