Why specialize
Free clock speedups ended; Amdahl limits multicore. Large wins now come from hardware for one big, regular domain.
Hennessy–Patterson: dedicated memories, transistors into arithmetic and memory, simplest fitting parallelism, narrowest sufficient types, a domain language — not a full OoO general core.
Worked example. The peak is 65,536 MACs×2×700×106 s−1=91.75≈9265{,}536 MACs × 2 × 700 × 10^6\ s^{-1} = 91.75 ≈ 9265,536 MACs×2×700×106 s−1=91.75≈92 TOPS. One weight tile takes 65,536 B/(34×109 B/s)=1.9365{,}536\ B / (34 × 10^9\ B/s) = 1.9365,536 B/(34×109 B/s)=1.93 µs to fetch, which is 1,349 cycles at 700 MHz. A MatrixMultiply with a batch of M=200 rows keeps the array busy for only 200 cycles. Unless a tile is reused for at least about 1,350 rows, the array waits for weights. The paper’s choice of 4,096 accumulators comes from the same number: about 1,350 rows rounded up to 2,048, doubled so that one half can be filled while the other is read (Jouppi et al., 2017, §2).
The previous note took one matrix product on one core of a general-purpose processor from 0.55 to 14.6 GFLOP/s by rewriting loops, and a vendor library reached 255 GFLOP/s. Every step fitted the computation better to hardware designed to run any program. This note goes the other way: hardware designed for one kind of program. It covers why such domain-specific architectures (DSAs) became attractive, the guidelines for designing one, and the best documented example, Google’s first Tensor Processing Unit, whose heart is a grid of 65,536 multipliers that does nothing but matrix products. This note is a branch: the rest of the course does not depend on it.