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.
| Result | Value |
|---|---|
| Random GEMMs from the tiling compiler matching NumPy | 1,000 / 1,000 (cocotb + Verilator) |
| PE utilization on a 256×256×256 GEMM, with double buffering | 0.44 → 0.78 · 1.77× fewer cycles |
| Performance model vs measured hardware cycles | 16 / 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 |

