The crossbar: a matrix multiply made of wires

A resistive crossbar performs a matrix-vector product as a consequence of two circuit laws rather than as a sequence of instructions. Ohm's law does the multiplication, Kirchhoff's current law does the addition, and the weights never move because they are the circuit. This is the bridge between what a network computes and what our array is.

21 November 2026CurrentModelled4 references

The claim

A resistive crossbar does a matrix-vector product as a physical consequence of two circuit laws. Not as a fast sequence of instructions — as a thing that happens when you apply voltages to a grid of resistors.

That is the whole idea, and everything else about compute-in-memory is a consequence of it or a complication of it.

The previous post established what the arithmetic is: one ordinary convolution layer turns 36,864 weights into 115,605,504 multiply-accumulates, each weight used 3,136 times. This post is about performing that arithmetic without fetching anything.

Two laws

Picture a grid. Horizontal wires are rows, vertical wires are columns, and at every crossing sits a resistive memory cell whose conductance is programmable. Set each cell's conductance to a weight. Apply a voltage to each row proportional to an input value.

Ohm's law does the multiplication. The current through one cell is the voltage on its row multiplied by that cell's conductance. Voltage carries the input, conductance carries the weight, and the current is their product. No multiplier circuit exists anywhere.

Kirchhoff's current law does the addition. All the cells in one column dump their current onto the same wire, and currents on a shared conductor sum. The column carries the sum of every product in it.

One column, one step, one dot product. A grid of columns is a matrix-vector product, and it happened because of how the circuit is wired rather than because anything executed.

Why this could be cheaper

Not because multiplication is expensive. It is not, particularly.

The expensive part of conventional arithmetic is getting the operands to the place that does it. A weight sitting in memory has to be addressed, read, moved along a bus, and latched before a multiplier can use it, and that journey costs far more energy than the multiply at the end of it — the accounting behind this has been clear since Horowitz's ISSCC tutorial [1]. Conventional accelerators spend most of their design effort on this problem: caches, dataflows and reuse schemes all exist to move each weight as few times as possible [4].

A crossbar does not move the weight at all. The weight is the resistance of the cell that the current passes through. Recall from the previous post that one layer uses each weight 3,136 times; a crossbar fetches it zero times. The question stops being how cheaply a weight can be moved and becomes whether the arithmetic can be done where it already sits.

One bit per cell changes what is happening

Most crossbar work stores several bits per cell, using intermediate conductance levels. We store one.

With a single bit, a cell is either conducting or not. The multiplication collapses into a selection: a cell contributes its share of current when its row is driven and its stored bit is one, and contributes nothing otherwise. The column's current is then no longer an analog sum of varying magnitudes but a count of how many cells met both conditions.

The result is an integer, and integers are exactly representable. There is no rounding of an analog magnitude into a digital approximation, because the quantity was discrete to begin with. That is what lets us say the result is bit-identical to the same network run in digital rather than close to it.

The cost is density: representing an 8-bit weight takes eight cells rather than one. We think that is the right trade, and the one-bit post is the argument for why.

What the array does not do

The column has a current. A network needs a number. Something has to resolve one into the other, and that something is a converter.

This is where the cost went. Our own end-to-end model puts the array itself at a few percent of total energy with the readout as the largest single line item, and the best measured 22 nm foundry RRAM macro we know of spends roughly 60% of its energy in the same place [3]. The architectural accounting that first made this visible predates both [2].

It is worth being precise about what that means, because it is easy to read as a failure. The crossbar removes operand movement, which was the dominant cost. What remains concentrates at the one boundary the architecture cannot remove, where a physical quantity has to become a digital one. The converter being expensive is a consequence of the rest working, not evidence that it does not. The readout post has the numbers.

How we intend to resolve that boundary is the part of our design that is not published.

Three honest limits

Columns cannot be arbitrarily tall. Every cell on a column contributes something, including cells that are supposed to contribute nothing, and the resistance of the wire itself is not negligible against the resistance of a cell. Both effects worsen as a column grows, and they set a practical limit well below what the geometry would allow. What binds it, and at what height.

The cell has to be good enough. Our accuracy depends on the gap between a cell's on and off states, and more precisely on that gap relative to how much the off state varies between cells. Production data on that spread is not published, and obtaining it is the largest technical dependency we carry.

None of this is our silicon. The energy model is ours and it is a model. The measured figures in this post are other people's, on their own parts, at boundaries their authors stated. We have no PDK, no RTL and no fabricated part, and nothing here is a measurement of one.

What to take from this

A crossbar is not a faster multiplier. It is an arrangement in which the multiplication and the addition are properties of the circuit, the weights never travel, and the output is a count rather than an estimate.

Everything we build follows from that, including the problem it creates.

References

  1. M. Horowitz, “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.
  2. A. Shafiee et al., “ISAAC: a convolutional neural network accelerator with in-situ analog arithmetic in crossbars,” Proc. 43rd ACM/IEEE International Symposium on Computer Architecture (ISCA), pp. 14–26, 2016. doi:10.1109/ISCA.2016.12simulationAn architectural evaluation rather than silicon. Cited for the tile-level accounting that first made the peripheral cost of crossbar computing visible.
  3. J.-M. Hung et al., “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, single-level cells, 21.6 TOPS/W at the macro boundary. The closest measured silicon to the process we build on.
  4. V. Sze, Y.-H. Chen, T.-J. Yang and J. S. Emer, “Efficient processing of deep neural networks: a tutorial and survey,” Proceedings of the IEEE, vol. 105, no. 12, pp. 2295–2329, 2017. doi:10.1109/JPROC.2017.2761740reviewDataflow and reuse in conventional accelerators, and the standard framing of utilisation against peak.

Corrections. If a figure here is wrong, or a citation does not support the sentence it is attached to, tell us. The post gets corrected in place and says what changed.

All research notes