Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 4.2 KB

README.md

File metadata and controls

59 lines (37 loc) · 4.2 KB

NESTang - NES for Sipeed Tang FPGA Boards

NESTang is an open source project to recreate the Nintendo Entertainment System (NES) with Sipeed Tang FPGA boards, including Sipeed Tang Primer 25K, Tang Nano 20K and Tang Primer 20K.

Main features,

  • 720p HDMI output with sound.
  • Cycle accurate gameplay quality has been achieved since the NES circuits have been almost entirely replicated.
  • Rom loading from MicroSD cards with an easy-to-use menu system.
  • Playstation 2 controllers support and experimental USB gamepads support.

Pick a Board

You need either the Sipeed Tang Primer 25K or Tang Nano 20K FPGA board to run the latest NESTang.

Installation

A step-by-step instructions is available for installation. Here are quick instructions for the more experienced,

  • Tang Primer 25K needs 4 modules: Tang sdram, DVI, Dualshock2, SD and a pair of dualshock controllers. Currently these should cost ~$60 in total. Tang Nano 20K just needs controller adapters. Check instructions for how to connect the modules / adapters.
  • Download a NESTang release from github. The bitstream (nestang_*.fs) should be written to flash at address 0. The firmware (firmware.bin) should be written to 0x500000 (5MB).
  • A MicroSD card to hold ROMs.
  • Connect one or two DualShock2 controllers to the DS2 pmod. Or you can connect one USB gamepad to use the experimental USB gamepad support. The board only has one USB port. So use DS2 if you want two players.
  • Insert the MicroSD card, connect an HDMI monitor or TV, and enjoy your games.

Version 0.4 also supports tang primer 20k.

Development

If you want to generate the bitstream from source, see Build Instructions. The recommended Gowin IDE version is 1.9.9 commercial (requires a free license).

Usb_hid_host was development so NESTang could support USB gamepads. Follow the link if you want to use it for your FPGA projects. It supports keyboards and mice too.

Next steps

See NESTang changes.md.

Here are what I may work on when I get time. No promise though. Suggestions and pull requests are welcome!

  • Cheats support.
  • Saves and loads.

Special Thanks

nand2mario (nand2mario at outlook.com)

Since 2022.9