Contains reverse engineered schematics of the Game Boy DMG-CPU B chip, including the SM83 CPU core, as well as VLSI layouts and parsable netlists.
Originally, the DMG-CPU B schematics in this repository were derived from the schematics in furrtek/DMG-CPU-Inside (CC-BY-SA 4.0 Furrtek). They contain a lot of fixes that were never applied to DMG-CPU-Inside.
Most recent PDF exports can be found in the release section on github.
| File(s) | Description |
|---|---|
| ./dmg_cpu_b/* | KiCad project with schematics of the DMG-CPU B chip. |
| ./sm83/* | KiCad project with schematics of the SM83 CPU core. |
| ./dmg_cpu_b/overlay/dmg-cpu-b_overlay.svg | Modified version of Furrtek's overlay for the chip's die shot. |
| ./dmg_cells/dmg-cpu.jelib | Electric VLSI cell library containing layouts of the standard cells used in the chip. |
| ./sm83_cells/sm83.jelib | Electric VLSI cell library containing the layout of the complete SM83 CPU core. |
| ./netlist/* | Text files containing all cells and wires, and their connections and coordinates. |
The overlay SVG image contains the contours of the cells in the die shot and highlights all the wires connecting the cells. Also, the cells are labeled with the same names they have in the schematics.
We took the overlay from Furrtek and modified it to keep it in sync with the fixed schematics.
To open the overlay with an SVG viewer/editor (like Inkscape) you need to download the die shots and place
them into the same directory where the overlay file is.
The die shots (nintendo_dmg-cpu-b_mcmaster_mz_mit20x.jpg and nintendo_dmg-cpu-b_mcmaster_s1-1_mit20x.jpg)
can be downloaded from here.
The Electric VLSI libraries contain layouts for the standard cells used in the chip as well as the complete SM83 CPU core.
Screenshots of these layouts can be seen in the cell reference documentations: dmg_cells, sm83_cells
The files in the netlist folder contain definitions for all cells and wires of the chip. They can be parsed by the nlconv tool. This tool is currently capable of converting the netlists into the following products:
- HTML file with colors and links that make the netlists more readable.
- PNG images that are used for the overlays on the Leaflet maps of the chip: dmg_cpu_b_map and sm83_map.
- JavaScript code that is used by the same Leaflet maps for allowing the user to click on and select cells and wires, to get more information about them.
- SystemVerilog code for simulating the chip: dmg-sim



