Personal project · Nov 2026

Systolic-Array GEMM Hardware Accelerator

SystemVerilog · Python · cocotb · Verilator · Yosys · nextpnr · OpenROAD (SKY130)

A matrix-multiply engine built from scratch, in the style of a TPU matrix unit: a weight-stationary 8×8 array of multiply-add units in SystemVerilog with DMA, ping-pong buffers, an int32 accumulator and a command controller, plus a Python tiling compiler that splits any GEMM into hardware commands and a cycle-accurate performance model that predicts the cycle count before the hardware runs.

The systolic array computing one tile, cycle by cycle
The array at work · one frame per clock cycle (4×4 version, from RTL simulation)
ResultValue
Random GEMMs from the tiling compiler matching NumPy1,000 / 1,000 (cocotb + Verilator)
PE utilization on a 256×256×256 GEMM, with double buffering0.44 → 0.78 · 1.77× fewer cycles
Performance model vs measured hardware cycles16 / 16 exact
FPGA flow · Lattice ECP5 (Yosys + nextpnr)core clock 60.55 → 98.93 MHz
ASIC flow · SkyWater SKY130 (OpenROAD)1.05 mm² core, placed and routed, timing met at 66.7 MHz
SysArray architecture
Architecture · compiler → controller → DMA → buffers → 8×8 PE array → accumulator
PE utilization per layer
Utilization · first version vs double buffering, with the model's prediction
Roofline of the 8x8 array
Roofline · useful MACs per cycle against arithmetic intensity
← All projects Get in touch