Home / Learn / AI Chips / What Is a Systolic Array?
On this page
The basic ideaWhere the idea came fromWhy it suits AIHow it differs from a conventional processorThe limitsHow it is used in real chipsSystolic arrays and other approachesCommon questionsRelated guidesWhat Is a Systolic Array?
A systolic array is a grid of identical processing cells that pass data to their neighbors on every tick of a clock. Each cell does one small calculation, hands on its result and receives the next input. The name comes from the heart: data pulses through the array in a steady rhythm, the way blood is pumped through the body. The layout is especially good at matrix multiplication, which is why it appears inside many AI chips.
The basic idea
Picture a square grid of simple cells. Each cell can do three things: multiply two numbers, add the product to a running total and pass its inputs along to the next cell.
Numbers from one matrix enter along the left edge and move right, one cell per clock tick. Numbers from the other matrix enter along the top edge and move down. Wherever two numbers meet in a cell, they are multiplied and the product is added to that cell’s total.
After enough ticks, every cell holds one element of the answer. No cell ever needs to talk to anything but its immediate neighbors, and every cell is busy on almost every tick.
Where the idea came from
The systolic array was described in the late 1970s by H. T. Kung and Charles Leiserson, as a way to build regular, highly parallel circuits for the chip technology of the time. The approach was studied for signal processing and scientific computing for many years.
It returned to prominence with deep learning. Neural networks spend most of their time multiplying matrices, and the systolic array is one of the most efficient known ways to do that in hardware.
Why it suits AI
Three properties make the design attractive for neural networks.
- Local connections. Data only moves between adjacent cells. Short wires are fast and use little energy, and energy spent moving data is a large part of an AI chip’s power budget.
- Regular structure. The same cell is repeated many times. That makes the array easier to design, verify and lay out on silicon.
- Constant activity. Once the array is full, nearly every cell does useful work on every tick. Little hardware sits idle.
Together these give a great deal of matrix arithmetic for each watt and each square millimeter of chip.
How it differs from a conventional processor
A conventional processor fetches an instruction, decodes it, runs it and then fetches the next one. A lot of its circuitry and energy goes into that control process.
A systolic array has almost no control logic. There is no instruction stream to fetch. The data moves on its own schedule, set by the clock, and the computation is defined by how the cells are wired. That is where much of the efficiency comes from.
| Conventional processor | Systolic array | |
|---|---|---|
| Control | Instruction by instruction | Fixed by the wiring and clock |
| Data movement | To and from shared memory | Between neighboring cells |
| Best at | Varied tasks | Regular matrix arithmetic |
| Flexibility | High | Low |
The limits
The strengths of a systolic array come from its rigidity, and so do its weaknesses.
- It is specialized. It excels at dense matrix operations. Work that does not have that shape gains little.
- Sparse data wastes it. If many of the numbers are zero, cells spend time multiplying by zero unless extra logic is added to skip them.
- Size is fixed. The array has a set number of rows and columns. Larger matrices have to be split into pieces and fed through in turn.
- Feeding it is hard. The array is only efficient if data arrives at the edges at the right moment. The memory and logic around it have to keep up.
How it is used in real chips
A systolic array is normally one part of an accelerator, not the whole thing. Around it sit memory to hold the model’s weights and working data, logic to line the data up and send it in, and programmable processors to handle the operations the array cannot do.
Google described a design of this kind in its first tensor processing unit, where a large matrix multiply unit sat at the center of the chip. Variations on the same idea appear in many other AI accelerators, sometimes under different names.
Because AI models keep changing, designers generally pair the fixed array with more flexible hardware. The array handles the bulk of the arithmetic efficiently, and the flexible parts cover whatever is new or unusual.
Systolic arrays and other approaches
A systolic array sits at the specialized end of the range of accelerator designs. GPUs are more flexible and less efficient per operation. Dataflow designs and manycore processors sit in between, trading some efficiency for the ability to run a wider range of work.
For a comparison, see AI Accelerator Architectures Compared.
Common questions
Why is it called a systolic array?
The term borrows from physiology, where systole is the phase in which the heart pumps blood. Data in the array moves in regular pulses driven by the clock, in a similar rhythm.
Is a systolic array the same as a GPU?
No. A GPU is a programmable processor with many parallel units that run instructions. A systolic array is a fixed grid of simple cells with almost no control logic. It is less flexible and more efficient for matrix arithmetic.
Are systolic arrays only used for AI?
No. They were first developed for signal processing and linear algebra, and they are still used there. AI is the application that brought them back into wide use.