What actually separates one compute-in-memory part from another
Parts are named after the memory they are built from — SRAM, resistive, phase-change, magnetic — and the memory is the last decision the designer made. Two earlier ones separate the field far more: whether the array computes at all, and whether its sum is a number or a physical quantity. Each of those decides what the chip is; the memory settles something narrower, and it is not what the name suggests.
Every compute-in-memory part is introduced by its memory. SRAM compute-in-memory, resistive compute-in-memory, phase-change, magnetic. It is a good label for finding the paper and a poor one for understanding the part, because two designs built on the same memory can have less in common than two designs built on different ones.
Three decisions sit above the memory, and the first two of them settle what kind of chip it is.
Each fork removes more options than the one below it. The first decides whether there is an array doing arithmetic at all. The second decides whether the sum arrives as a number or as a physical quantity, and it is the fork that creates the converter — everything to the right of it has a conversion problem and everything to the left does not. Only the third is about how the quantity is carried. The memory technology is not on this drawing, because it can be chosen after all three.
Decision one: whether the array computes at all
Much of what is called computing in memory does not compute in the memory. It places ordinary digital arithmetic next to the memory — inside the same die, or the same stack — so that operands travel micrometres instead of millimetres. The clearest published example with a real part behind it is a commercial 20 nm DRAM with arithmetic units added inside it, driven by an unmodified host processor [1].
Nothing about that is analog. The arithmetic is exact, there is no converter, and the whole win is the shortened fetch: moving an operand costs far more than the arithmetic performed on it [3], so shortening the move is worth doing even when nothing else about the computation changes.
In-memory computing is the other branch, and it is the one the rest of this post is about: the array itself produces the sum, as a consequence of how it is wired rather than as a sequence of operations. The two branches share a name and a motivation and very little else. One is a packaging and placement problem. The other is a circuits problem, and it begins by giving up the thing digital hardware is best at.
Decision two: whether the sum is a number or a quantity
Suppose the array does compute. The multiply can still be done two ways.
Digitally. The cell's bit and the input's bit meet in a logic gate, and an adder tree inside the macro sums the partial products. Nothing is ever a voltage that means a number, so nothing has to be converted and nothing can be slightly wrong: the macro's output is the arithmetic result, full stop. A 22 nm all-digital SRAM macro of this kind reports 89 TOPS/W and 16.3 TOPS/mm² with no accuracy loss in the multiply-accumulate [2].
What it costs is that an adder tree is logic. It occupies area at the density of logic rather than the density of memory, inside a macro whose argument was memory density, and it grows with how many rows are summed. Digital compute-in-memory is best understood as very tightly coupled near-memory computing — the operands move almost nowhere, and everything else about the arithmetic is conventional.
In the analog domain. Every driven cell contributes a physical quantity to a shared line, and the line adds them because that is what a wire does. There is no adder tree. There is one sum, and it arrives in about the time it takes the line to settle.
The cost arrives immediately after: a physical quantity is not a number until something converts it. That converter is the defining feature of the whole branch. It is where the energy goes — in our own end-to-end model it is the largest single line item, and the published silicon agrees at the row counts those designs use, which is its own post. It is also where the accuracy goes. The standard review of resistive memory puts the ceiling at around eight bits of computational accuracy however many bits are stored in the cell, because the wire's own resistance becomes the dominant term before the device does [11].
So the second fork is the expensive one. Everything to the right of it has a conversion problem, and everything to the left of it does not.
Decision three: what the quantity is
Only now does the question most papers open with arrive, and it has three published answers.
Current. The driven cells pull current onto the line and the readout measures how much. Nothing is added to the cell, multi-level weights sum for free, and almost all of the fabricated resistive silicon is here [6], [7].
Charge. Each contribution is a packet of charge on a capacitor and the readout measures the settled voltage. No steady current flows through the array at the moment of measurement, so the wire's resistance does not enter the answer, and precision comes from capacitor matching instead [4]. It costs area in the cell or the column.
Time. The line is pre-charged and allowed to discharge, and the readout measures how long that takes. No steady current either, and no capacitor per cell. The most efficient exact resistive readout published works this way, at eight rows per operation [10].
Which of the three wins depends almost entirely on one number that is rarely in the headline: how many rows are summed into a single conversion. That is the subject of its own post, including what the charge domain does not fix.
The memory settles four things, and the name is not one of them
What the device actually decides is narrower than its prominence suggests: whether the weights survive the supply going off, what separates the two states and by how much, what a write costs, and whether a foundry will make it.
| Memory | Holds the weight with the supply off | What separates the states | Cited silicon in this post |
|---|---|---|---|
| SRAM | no — every power-on reloads the model | a cross-coupled transistor pair | a 22 nm all-digital macro [2]; a 64-tile charge-domain accelerator [4] |
| DRAM | no — it is refreshed continuously | charge on a capacitor | a commercial 20 nm part with arithmetic inside [1] |
| Resistive (RRAM) | yes | the resistance of an oxide filament; published 22 nm production average on/off 4.51 [5] | a 4 Mb 22 nm macro [5]; a 48-core chip [6]; embedded at 22 nm in a shipping part [12] |
| Phase-change (PCM) | yes, but the resistance drifts: a power law with an exponent near 0.06 [8] | crystalline against amorphous phase | a 64-core chip [7] |
| Magnetic (STT-MRAM) | yes | a magnetic junction, with a resistance ratio of about 2.5 [9] | a 28 nm macro [9] |
Read down the third column and the memory's real contribution appears. It sets the ratio between the two states, and the ratio is what decides how many rows can be summed before the cells that should be contributing nothing out-vote the ones that should. A magnetic junction at 2.5 cannot be read by letting its own current onto a shared line in any quantity, which is why that macro switches the cell current with a transistor instead [9]. Phase change holds its state but does not hold its value, so a system built on it needs a drift correction that a system built on a binary resistive cell does not [8]. SRAM has an enormous ratio and no retention at all, which is the trade in one line.
Charge-trap and floating-gate flash is the sixth family and it is missing from the table on purpose: we have not yet read a macro paper on it carefully enough to put a row in, and a row we cannot defend is worse than a gap.
Where this leaves us
Four of our own decisions, each answering one of the forks above.
- In-memory, not near-memory. The array produces the sum. We are not shortening a fetch, we are removing it.
- Analog, not digital. One conversion per column instead of an adder tree, which buys the density back and buys the conversion problem with it. We think that trade is the right one and we are honest that it is a trade.
- One bit per cell, with the bits combined outside the array. Every individual read is a decision between well-separated states rather than a measurement of a small analog difference, which is what makes an exact result reachable at all. That is its own argument.
- Resistive and non-volatile. The weights are still there with the supply off, which is the property the whole product rests on, and the 4.51 in the table is the number we care most about in this entire post.
How the analog sum is resolved — the third fork, for us — is pre-filing and is not described here or anywhere else public.
What we do not know
The binding number for a design like ours is not the on/off ratio but its distribution, at the hottest temperature the part has to work at, after program-and-verify. No public source gives that for a production 22 nm cell, and a cell with a modest ratio and a tight spread beats a cell with a wide one.
The categories also blur at the edges, and anyone using this taxonomy as a filing system will be disappointed. A part can be digital inside the macro and analog between macros. Time-domain readout is neither current nor charge and behaves like both in different respects. A near-memory part with enough arithmetic inside it starts to look like a small processor that happens to live in DRAM. The three decisions are useful because they are the order the costs arrive in, not because they sort the world into five boxes.
References
- , “Hardware architecture and software stack for PIM based on commercial DRAM technology,” Proc. ACM/IEEE 48th Annual International Symposium on Computer Architecture (ISCA), pp. 43–56, 2021. doi:10.1109/ISCA52012.2021.00013measured siliconNear-memory rather than in-memory: ordinary digital arithmetic units placed inside a commercial 20 nm DRAM, driven by an unmodified host processor. Reported as 11.2x on memory-bound neural-network kernels and 3.5x at application level. Cited for the distinction, not for the speedups. The author list runs to more than a dozen and is abbreviated here.
- , “An 89TOPS/W and 16.3TOPS/mm2 all-digital SRAM-based full-precision compute-in-memory macro in 22nm for machine-learning applications,” IEEE International Solid-State Circuits Conference (ISSCC) Digest of Technical Papers, 2021. research.tsmc.com/english/collaborations/events/event/conferences-5.htmlmeasured siliconThe all-digital branch: the multiply is logic inside the macro and there is no converter, so the result carries no analog error. Quoted from the foundry's own conference listing, which states 89 TOPS/W, 16.3 TOPS/mm2 and MAC operation without accuracy loss at 22 nm. Secondary sources give the paper as 16.4 and the digest pages as 252–254, and give the title with and without the word 'edge'; we could not confirm a DOI, so the URL is the listing we actually read and the page range is left out rather than stated as checked.
- , “1.1 Computing's energy problem (and what we can do about it),” IEEE International Solid-State Circuits Conference (ISSCC) Digest of Technical Papers, pp. 10–14, 2014. doi:10.1109/ISSCC.2014.6757323reviewThe 45 nm accounting behind the claim that fetching an operand costs far more than the arithmetic performed on it. Direction, not a current-node figure.
- , “A 64-tile 2.4-Mb in-memory-computing CNN accelerator employing charge-domain compute,” IEEE Journal of Solid-State Circuits, vol. 54, no. 6, pp. 1789–1799, 2019. doi:10.1109/JSSC.2019.2899730measured siliconThe clearest published statement of the charge-domain argument, and the fabricated SRAM part behind it: capacitor matching, set by lithography and film thickness, is better behaved than a transistor's current transfer function.
- , “A four-megabit compute-in-memory macro with eight-bit precision based on CMOS and resistive random-access memory for AI edge devices,” Nature Electronics, vol. 4, no. 12, pp. 921–930, 2021. doi:10.1038/s41928-021-00676-9measured siliconExtended Data Fig. 1b: a 22 nm production 1T1R single-level cell, average HRS/LRS ratio 4.51 after on-chip program-and-verify. The only published average on/off ratio we have found for a production 22 nm cell.
- , “A compute-in-memory chip based on resistive random-access memory,” Nature, vol. 608, no. 7923, pp. 504–512, 2022. doi:10.1038/s41586-022-04992-8measured silicon48-core RRAM chip, weights programmed over a 1–40 µS conductance range. Cited here as a fabricated resistive part that sums many rows at once and accepts an approximate result.
- , “A 64-core mixed-signal in-memory compute chip based on phase-change memory for deep neural network inference,” Nature Electronics, vol. 6, no. 9, pp. 680–693, 2023. doi:10.1038/s41928-023-01010-1measured silicon256 × 256 cells per core, one current-controlled-oscillator converter per unit-cell row, with the maximum programmed conductance capped so that no bit-line current exceeds roughly 100 µA.
- , “Accurate deep neural network inference using computational phase-change memory,” Nature Communications, vol. 11, art. 2473, 2020. doi:10.1038/s41467-020-16108-9measured siliconConductance drifts as a power law in time with an exponent of about 0.06 on average. Without compensation a ResNet-32 falls to chance accuracy within about a thousand seconds; with per-layer drift compensation and periodic batch-norm recalibration it stays above 92.6% over a day.
- , “A 492.8-TOPS/W STT-MRAM sparsity-adaptive compute-in-memory macro for edge AI inference,” IEEE Journal of Solid-State Circuits, vol. 61, no. 10, pp. 5883–5893, 2026. doi:10.1109/JSSC.2026.3698324measured silicon28 nm. Sixteen rows per conversion, resolved by a comparator array. The magnetic cell's own resistance ratio is about 2.5, which is why the cell current is switched by a transistor rather than set by the storage element.
- , “8-b precision 8-Mb ReRAM compute-in-memory macro using direct-current-free time-domain readout scheme for AI edge devices,” IEEE Journal of Solid-State Circuits, vol. 58, no. 1, pp. 303–315, 2023. doi:10.1109/JSSC.2022.3200515measured silicon22 nm foundry RRAM. The bit line is pre-charged and allowed to discharge rather than carrying a steady current, and eight rows are summed per operation for a 19-bit exact result. The time-domain route, which is neither current nor charge.
- , “Resistive Switching Random-Access Memory (RRAM): Applications and Requirements for Memory and Computing,” Chemical Reviews, vol. 125, pp. 5584–5625, 2025. doi:10.1021/acs.chemrev.4c00845reviewThe field's standard review. Cited for its conclusion that computational accuracy saturates near eight bits however many bits are stored in the cell, because IR drop becomes the dominant factor rather than device noise. Open access under CC-BY.
- , “Advanced TSMC 22ULL embedded RRAM chip unveiled,” TechInsights blog, teardown report, undated. www.techinsights.com/blog/advanced-tsmc-22ull-embedded-rram-chip-unve…measured siliconA teardown, carrying no byline and no publication date. Reports a memory-block density of 17.5 bits/µm² with the resistive layers at metal 3. A block-level figure including periphery, not a bit-cell area.