Claude writes a working GPU in 121 lines of Verilog with 100% pixel-perfect validation

IgorCarron · x · 2026-11-27

A user asked Claude to design a GPU, and it produced a real rendering pipeline in just 121 lines of Verilog: vertex rotation, perspective division with its own hardware divider, backface culling, per-face lighting, and pixel filling via edge functions and a depth buffer.

The design was simulated in Icarus Verilog with a 3D shape of 2,400 triangles, cycle by cycle — 64 frames for a full rotation across 35 million clock cycles. Claude then verified itself: a separate Python model of the same math matched all 1,228,800 pixels in the chip's frame buffer exactly.

Original post →

More from coding & agent

coding & agent channel →