How do we avoid dependences between adjacent instructions without bypassing or interlocks? Interleave 4 threads on a non-bypassed 5-stage pipeline:
| t0 | t1 | t2 | t3 | t4 | t5 | t6 | t7 | t8 | |
|---|---|---|---|---|---|---|---|---|---|
| T1: LD x1, 0(x2) | F | D | X | M | W | ||||
| T2: ADD x7, x1, x4 | F | D | X | M | W | ||||
| T3: XORI x5, x4, 12 | F | D | X | M | W | ||||
| T4: SD 0(x7), x5 | F | D | X | M | W | ||||
| T1: LD x5, 12(x1) | F | D | X | M | W |
x1 in D at t5Costs
satp), exception registers| Policy | Example | How |
|---|---|---|
| Fixed interleave | CDC 6600 peripheral processors (1964), first MT hardware | Each of N threads gets 1 slot every N cycles; bubble if not ready. 10 virtual I/O processors on a 100 ns pipeline: one instruction per 1,000 ns each |
| Software-controlled | TI ASC PPUs (1971) | OS allocates S slots among N threads; hardware cycles over them |
| Hardware-controlled | Denelcor HEP (1982) | Hardware tracks ready threads, picks by priority |
F D R X M W (read in R, write in W). Minimum threads for round-robin with no RAW hazards?
181.mcf (memory-bound) gains >30% with most partners unless they hammer L2172.mgrid suffers next to L2-heavy partners