DMG-CPU Research

Die-level reverse engineering

DMG-CPU Research

The DMG-CPU is the system-on-a-chip of the original Nintendo Game Boy. This project rebuilds it from silicon: modules are traced from die photographs with the Deroute utility into netlists and die-perfect Verilog — and the real netlists are exercised by Icarus regression suites for the SM83 core, PPU, APU and the small clock/arbiter/MMIO/serial domain.

  • die-perfect Verilog netlist
  • Icarus regression suites on the real netlist
  • open research, sources in the repo
Photograph of the Nintendo DMG-CPU die
DMG-CPU A — photo by Christian Bassow (Wikimedia Commons)

§1 The SoC

functional blocks of the LR35902 system-on-a-chip

§2 SM83 core

the Game Boy CPU: topology, buses, ALU, decoders, sequencer

§3 Verilog & regression suites

die-perfect HDL driven by Icarus testbenches

§4 References & process

how the research is done and where the data lives