# Scratchpads let software control data placement

Markdown copy of https://realalpha.app/s/scratchpads-let-software-control-data-placement/ on Real Alpha, the best minutes from long interviews with the people building AI. Cite and link the page, not this copy.

- Speaker: [Reiner Pope](https://realalpha.app/builders/reiner-pope/) · Reiner Pope is CEO of MatX. · Co-founded MatX to design chips for LLMs, betting on HBM and SRAM; former Google TPU architect.
- Host: [Dwarkesh Patel](https://realalpha.app/people/dwarkesh-patel/) · Host, Dwarkesh Podcast · Co-wrote The Scaling Era, an oral history of AI; named to TIME100 AI.
- Show: Dwarkesh Podcast
- Episode: [Chip design from the bottom up – Reiner Pope](https://realalpha.app/v/oIk3R-sMX5o/), May 22, 2026
- Moment: 1:03:24 to 1:07:18 of the episode (4 min), playing on https://realalpha.app/s/scratchpads-let-software-control-data-placement/; the episode from there: https://realalpha.app/v/oIk3R-sMX5o/?t=3804

## Takeaways

1. Cache hits depend on recent accesses and other running programs.
2. Caches speed up CPUs but make latency less predictable.
3. Scratchpads expose local storage and HBM as separate operations.

## About this segment

CPU cache hits depend on recent system activity, making access times less predictable. TPUs expose scratchpad and HBM as separate operations, so software controls where data goes.

From “Chip design from the bottom up – Reiner Pope”, May 22, 2026. [Watch the full episode](https://realalpha.app/v/oIk3R-sMX5o/)

## Transcript

Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.

[1:03:31](https://realalpha.app/v/oIk3R-sMX5o/?t=3811) um uh and in fact like the the processes that are inside a lot of uh ai chips actually also have deterministic latency too grok has advertised this tpus have that in the core as well um the challenge is getting sort of deterministic latency and high speed at the same time and so where does the non-determinism in latency come from non-deterministic latency comes from specific design choices in a cpu it's actually possible to remove those design choices and make a cpu that has deterministic latency those are not very attractive in the market and so people don't make those cpus anymore But actually, in some sense, like deterministic latency is maybe a sort of a simpler designing starting point.

[1:04:21](https://realalpha.app/v/oIk3R-sMX5o/?t=3861) And then like some chip designers have added things in to be non-deterministic. To take a concrete example of that, probably the most important example is on a CPU just like the CPU cache itself. So in a CPU, you have the CPU, this is the CPU die itself, and then there's a memory off on the side. This is the DDR memory off on the side. And then you have a cache system here inside it is the cache that sort of remembers recent accesses to DDR and stores them.

[1:05:06](https://realalpha.app/v/oIk3R-sMX5o/?t=3906) And so when I'm running through my CPU instructions, every time I have an instruction that accesses memory, it first checks in cache, was the data stored in cache? And then if not, it fetches out to DDR. This is a huge optimization. The cache is like two orders of magnitude faster than DDR. If you never use the cache, basically all programs would run 100 times slower. So the presence of a cache is absolutely necessary for a CPU to run at reasonable speed.

[1:05:40](https://realalpha.app/v/oIk3R-sMX5o/?t=3940) But whether or not you get a cache hit is dependent on the sort of ambient environment of the CPU. Like what other programs are running, what has run recently, what is the random number generator inside the cache system doing? And so that is a big source of non-determinism in the runtime of a CPU. So this is sort of the memory system for a CPU. The big thing that you can do differently is instead of having the hardware say, I'm going to like read memory and then decide the hardware decides whether or not it comes from cache or not, you can actually bake this decision into software.

[1:06:15](https://realalpha.app/v/oIk3R-sMX5o/?t=3975) So a different design philosophy is to, so, and you see this in maybe, for example, TPUs. The TPU instead has, I mean, I'll draw the same diagram, but I'll call it a scratch pad. And so the main difference is um so this would be like a tpu and then like hbm in this case rather than ddr but it's still an off-chip memory um and instead of like the software saying first access like memory and then the hardware decides um you've got some instructions that go here this is like one kind of instruction and then a totally different kind of instruction that goes to hbm yeah and so this style is generically known as Scratchpad instead of cache. The key distinction being that you have like one kind of instruction that says read or write Scratchpad and a totally different instruction that says read or write HBM. So Scratchpad being the cache? Yeah, this thing
