WayPonDEV Sipeed Tang Nano 20K

Sipeed Tang Nano 20K GW2AR-18 FPGA Single Board Computer User Manual

Model: Sipeed Tang Nano 20K

1. Introduction

The Sipeed Tang Nano 20K is a compact and powerful Field-Programmable Gate Array (FPGA) single board computer designed for various applications, including open-source RISC-V development, Linux environments, retro game console emulation, and general embedded systems projects. This manual provides essential information for setting up, operating, and maintaining your Tang Nano 20K board.

2. Product Overview

2.1 Key Features

2.2 What's in the Box

The package includes the following components:

Shipping list for Sipeed Tang Nano 20K, showing the board, gamepads, TF card, USB cables, adapter boards, and breadboard.

Image: Contents of the Sipeed Tang Nano 20K package.

2.3 Board Layout and Function Diagram

Familiarize yourself with the various components and interfaces on the Tang Nano 20K board using the function diagram below.

Function diagram of the Sipeed Tang Nano 20K board, labeling Speaker Out, User Buttons, USB Debug, GA2AR-LV18 FPGA, MIPI DPI Conn., TMDS Video Out, WS2812 LED, Flash, and BL616.

Image: Sipeed Tang Nano 20K Function Diagram.

  1. Speaker Out: Audio output connection.
  2. User Buttons: Two programmable buttons for user interaction.
  3. USB Debug: USB Type-C port for debugging and power.
  4. GA2AR-LV18 FPGA: The main FPGA chip.
  5. MIPI DPI Conn.: MIPI Display Parallel Interface connector.
  6. TMDS Video Out: HDMI video output.
  7. WS2812 LED: Addressable RGB LED.
  8. Flash: Onboard flash memory for bitstream storage.
  9. BL616: Onboard debugger chip.

2.4 Pin Diagram

The pin diagram illustrates the pinout configuration of the Sipeed Tang Nano 20K, crucial for connecting external components and peripherals.

Pin diagram of the Sipeed Tang Nano 20K board, showing detailed pin assignments and power rails.

Image: Sipeed Tang Nano 20K Pin Diagram.

3. Specifications

Detailed technical specifications for the Sipeed Tang Nano 20K board are provided below:

Detailed specifications table for Sipeed Tang Nano 20K, listing FPGA chip details, debugger, clock generator, display, LEDs, user keys, TF card, PCM amplifier, storage, and size.

Image: Sipeed Tang Nano 20K Detailed Specifications.

ItemDetailOthers
FPGA ChipGW2A-LV18QN88C8I7Logic units(LUT4): 20736
Flip-Flop(FF): 15552
Shadow SRAM (S-SRAM)(bits): 41472
Block SRAM (B-SRAM)(bits): 828K
Numbers of B-SRAM: 46
32Bits SDR SDRAM: 64Mbits
Numbers of 18x18 Multiplier: 48
Numbers of PLLs: 2
I/O Bank: 8
Onboard DebuggerBL616JTAG for FPGA
USB to UART for FPGA
USB to SPI for FPGA communication
Control MS5351 generate frequency
Clock GeneratorMS5351Provide extra 3 clocks for FPGA
Display Interface40Pins RGB LCD connector
HDMI interface
LED6Low voltage level enable
RGB LED1WS2812
User Key2
TF Card Slot1
PCM Amplifier1MAX98357A, for audio driving
Storage64Mbits FlashTo save bitstream
Size22.55mm x 54.04mm x 5mm

4. Setup Guide

4.1 Initial Hardware Connection

  1. Insert TF Card: If using, carefully insert the provided 32GB TF card into the TF card slot on the Tang Nano 20K board.
  2. Connect USB Power/Data: Connect one end of the USB Type-C data cable to the USB Debug port (S1 or S2, depending on the board orientation) on the Tang Nano 20K and the other end to your computer or a suitable 5V power adapter.
  3. Display Connection (Optional): For video output, connect an HDMI cable to the TMDS Video Out port or an RGB LCD to the 40-pin RGB LCD connector.
  4. Gamepad Connection (Optional): Connect the DS2 gamepads to the DS2 handle adapter boards, then connect the adapter boards to the appropriate pins on the Tang Nano 20K using jumper wires or a breadboard setup.

4.2 Software Environment Setup

For detailed instructions on setting up the development environment, including Gowin IDE, openFPGALoader, and RISC-V toolchains, please refer to the official Sipeed Tang Nano 20K Wiki and community forums. These resources provide comprehensive guides for programming the FPGA and running various applications.

5. Operating Instructions

5.1 Programming the FPGA

The FPGA on the Tang Nano 20K can be programmed using a bitstream file generated from your design. This typically involves:

  1. Developing your logic design using an HDL (e.g., Verilog, VHDL) in the Gowin IDE.
  2. Synthesizing and implementing the design to generate a bitstream file (.fs or .bit).
  3. Flashing the bitstream to the FPGA via the onboard BL616 debugger using tools like Gowin Programmer or openFPGALoader.
  4. The bitstream can be stored in the onboard 64Mbits Flash for persistent loading upon power-up.

5.2 Using as a Retro Game Console

The Tang Nano 20K supports running NES emulators (e.g., Nestang). To use it as a retro game console:

  1. Flash the appropriate game console emulator bitstream to the FPGA.
  2. Load game ROMs onto the TF card.
  3. Connect the DS2 gamepads using the adapter boards.
  4. Connect the board to a display via HDMI or RGB LCD.
  5. Power on the board and navigate the emulator interface using the connected gamepads.

5.3 User Interaction

6. Maintenance

7. Troubleshooting

7.1 Common Issues

7.2 Further Assistance

For more complex issues or specific technical questions, please utilize the following resources:

8. Support & Warranty

8.1 Technical Support

For technical inquiries or assistance, please contact WayPonDEV directly through the Amazon platform by clicking on "WayPonDEV" and selecting "Ask a question." You may also find support and resources on the official community forum at forum.youyeetoo.com/.

8.2 Warranty Information

Specific warranty details for the Sipeed Tang Nano 20K are provided by WayPonDEV. Please refer to the product listing on Amazon or contact WayPonDEV support for comprehensive warranty terms and conditions.