Coding for fun - the hard way. Trying to implement a Game Boy® compatible machine with Verilog.
This project consists of two parts:
- An open source Game Boy® compatible console Verilog RTL implementation (the VerilogBoy Core)
- An open source FPGA-based handheld game console hardware (the VerilogBoy Handheld, or vbh for short.)
Both are hosted in this repository.
The main system architecture is designed as follows (outdated):
There are three major parts needs to be implemented: the Game Boy CPU (8-bit CISC Processor called SM83, Intel 8080 like), the PPU (Pixel Processing Unit), and the sound unit. Several interfacing modules are needed to support the IO capability provided by the specific hardware (FPGA development board or "VerilogBoy Handheld").
Several targets are supported by this project. See target folder for details.
Refactoring in progress. Previous version could run The Legend of Zelda: Link's Awakening and Pokemon Yellow with no noticable glitch on the Xilinx ML505 board (as shown in the photo). See 'master' branch for previous version, at least for now.
- SM83 CPU <- Refactor in progress
- PPU
- PSG
For progress regarding different ports, view README.md under the specific target folder.
This project is not built to be entirely accurate, but built with accuracy in mind. Most of the CPU timing should follow the original DMG-CPU, and implement a rudimentary 2-stage pipelining just as the original one does.
See INSTALL.md
VerilogBoy Handheld is an open source FPGA-based handheld game console. All design sources of the VerilogBoy Handheld are hosted in this repository.
Note: the architecture is subject to change.
- FPGA: Xilinx® Spartan®-6 XC6SLX16
- RAM: Using on-board PSRAM for VRAM/WRAM
- ROM: Using on-board PSRAM for game cartridge emulation
- Video output: 1.54" MIPI-DSI 320x320 IPS TFT-LCD
- Audio output: On-board I2S codec (WM8960)
This project reused codes from several other projects. A great thanks to their efforts!
- https://github.com/nightslide7/Gameboy
- https://github.com/cliffordwolf/picorv32
- https://github.com/u-boot/u-boot
- https://github.com/twlostow/dsi-shield
- https://github.com/MParygin/v.vga.font8x16
These projects are used as references. Again, thanks for sharing.
These are extremely helpful resources about the Game Boy® itself:
I'm not affiliated with Nintendo in any way. Game Boy® is a registered trademark by Nintendo. Nintendo® is a registered trademark. All other trademarks are property of their respective owner.
The dsicore is made by twlostow, released under LGPL 3.0.
The PicoRV32 is free and open hardware licensed under the ISC license (a license that is similar in terms to the MIT license or the 2-clause BSD license).
Some firmware code of pano-g1 target are released to public domain.
All other software codes are licensed under GNU GPL 2.0.
All other HDL codes are licensed under OHDL 1.0.
All other text documents are licensed under CC BY-SA 4.0