Tang Mega 138K Dock

Update history
Date Version Author Update content
06-26-2024 v0.1 Serika
  • Create document

Overview

Tang Mega 138K uses a 22nm process GW5AST-LV138PG484A FPGA chip, which has 138,240 lookup table units and nearly 300 DSP units. It contains eight high-speed transceivers with a speed range of 270Mbps ~ 6.6Gbps, suitable for transmitting data through high-speed ports such as PCIe. In addition, the chip contains a hard-core PCIe, which consumes better resources when using PCIe and achieves better performance. It is suitable for high-speed communication, protocol conversion, high-performance computing, and other occasions.

Compared to the 138K Pro Dock, the 138K Dock has a smaller size and a lower price, and it replaces the SFP transceiver with USB3 SS(5Gbps). This not only effectively reduces the cost of high-speed communication but also brings better versatility.

aliexpress purchase link: Click me

Board Features

  • Large capacity LUT4
  • Large capacity memory
  • PCIe 2.0 x 4
  • USB3.0 x 1
  • RISCV hard core

Product Appearance

Block Diagram

TBD

Hardware Parameters

SOM Board Parameters

Item Parameter comment
FPGA Chip GW5AST-LV138PG484A
Logic Unit (LUT4) 138240
Register (FF) 138240
Distributed SRAM
(S-SRAM) (Kbits)
1080
Block SRAM (B-SRAM) (Kbits) 6120
Number of Block SRAMs (B-SRAM) (pcs) 340
Multiplier (18x18 Multiplier)/td> 298
Phase-Locked Loop (PLLs) 12
Global Clock 16
High-Speed Clock 24
Transceivers 4
Transceivers Rate 270Mbps-6.6Gbps
PCIe HardCore x1
Speed optional x1, x2, x4, x8 PCIe 2.0
LVDS (Gbps) 1.25
DDR3 (Mbps) 1333
Hard Core SoC RiscV AE350_SOC
ADC 2
Total I/O Bank< 10
Memory 1GB DDR3 512MB x 2
Flash 128Mbits Flash x 1 See How to Burn to Flash
>Debug Interface Jtag + Uart JST SH1.0 8Pins CONN.
Overall Package 35mm x 45mm Size BTB CONN. Connects the SOM and the Dock Board

Dock board Parameters

Item Quantity Remarks
LEDs 4+8 4x Battery-Indicator+ 8x PMOD_LED
WS2812 1 The WS2812 & aRGB strip CONN. share the same pin
Buttons 3+1 3x User-KEY + 1x Reconfig-KEY
PCIe 1 4-lane @ 5Gbps,CH569 16bit HSPI
USB3 2 SuperSpeed @ 5Gbps
GbE 1 1000Mbps Ethernet
DVI 1 DVI supports both RX and TX
PMOD 2 Multiplexed with the the DVP CONN. & 2x20P header at the top of the Dock board
ADC 2 2x differential input channels
WS2812 1 The aRGB strip CONN. & WS2812 share the same pin
DVP Interface 1 Multiplexed with the the PMOD & 2x20P header at the top of the Dock board
RGB Interface 1 Supports RGB888 screen
MIC ARRAY Interface 1 Supports Sipeed 6+1 microphone array
SD Slot 1 1-bit SDIO/MMC or SPI mode
BATT CONN. 1 Supports 3.7V li-on battery, with built-in charge management
PWM FAN CONN. 1 Supports PWM fan with TACHO
Speaker CONN. 2 Support stereo output, 2x 3W Speaker
3.5mm Headphone CONN. 1 Supports stereo output, without Mic
MS5351 1 Provides RefClk for Serdes; control output via onboard UART
USB JTAG & UART 1 Supports FPGA programming and provides UART function
2x20P headers 2 2x20P header at the top of the Dock board multiplexed with the the PMOD & DVP CONN.
Power button 1 Press and hold for 2 seconds to toggle power state
12V DC 1 DC5521

Hardware Resources

Getting Started

Note that 138K is currently not supported by the education version, and you need to download V1.9.9 or a newer version of the commercial IDE for use.
Lic can be applied on the Gowin official website, or you can use the online Lic service provided by Sipeed. In the IDE, select Float Lic and fill in the following information:

ip: 106.55.34.119
port: 10559

if the ip not work, try use "gowinlic.sipeed.com" domain's IP.

Install IDE Click me

Example code github

Precautions

Item Precautions
Chip Model The specific model of the FPGA chip used by Tang Mega 138K is GW5AST-LV138FPG676A.
Please select the package model PBG484A in the IDE.
Static Electricity Please avoid static electricity hitting the PCBA; release the static electricity from your hands before touching the PCBA.
Tolerance Voltage When using GPIO pin headers for external communication, ensure that the IO voltage is 3.3V. Excessive voltage will permanently damage the PCBA.
FPC Socket When connecting the FPC soft cable, please ensure that the cable is completely and correctly inserted into the socket without any deviation.
PCIE Gold Finger When testing the PCIE gold finger, ensure that both the host and the board are in the off or unpowered state to avoid short-circuiting the gold finger due to displacement during the insertion process.
Plug and Unplug Please completely power off before plugging and unplugging.
Avoid Short Circuit Please avoid any liquid or metal touching the solder pads of the components on the PCBA during the power-on process, otherwise it may cause a short circuit and burn the PCBA.

Contact

Tang Mega 138K can meet different needs of customers in various scenarios. For technical support and business cooperation, please contact support@sipeed.com

Frequently Asked Questions (FAQs)

After powering on the board, only four indicator lights on the dockboard are on, the SOM indicator light is not on

  1. Please check if the board’s power has been turned on, press and hold the PWR button (next to the HDMI port) for 2 seconds to turn on the power.

After powering on the board, the Battery-Indicator light on the dcokboard is flashing

  1. This is normal behavior, usually, the last LED (near the 12V DC connector) is flashing;
  2. When the board is connected to a 3.7V lithium battery, these LEDs will serve as battery level indicators.

After pressing and holding the PWR button for 2 seconds, all the indicator lights on the dockboard turn off and then light up in sequence

  1. Check your power supply method, this situation means that the power supply is insufficient;
  2. Solutions (choose one):
    a. Connect both the board’s USB-3.0 and USB-DEBUG for power supply, i.e., dual 5V USB power supply;
    b. Connect a 12V DC power supply to the board, if using the USB-C to 12V DC connector from the accessories, a PD power source with 12V output capability is required;
    c. Connect a 3.7V lithium battery to power the board, note that the battery voltage must be ≥3.6V and the continuous discharge capacity must be ≥600mA.

IDE cannot find the model GW5AST-LV138PG484A

  1. The educational version does not support 138K, please switch to the commercial version. The following image shows the educational version (which does not support 138K);
  1. IDE version is too low to use, update the IDE version ≥ 1.9.9.

How to burn the bitstream to FLASH

  1. Setting the Programmer as shown in the figure below:
flash_mode
  1. Check the position of the DIP switch; the correct position is shown in the figure below:
dip-key_defualt

No Response or Undesirable Pin Phenomenon After Burning

  1. First, ensure that the IDE has selected the correct model GW5AST-LV138PG484AC1/10; every parameter in the figure below MUST be consistent.
device_choose
  1. Then, check your code and the corresponding simulation waveforms to meet the requirements. The GAO tools in GOWIN IDE maybe helpful. For more information, please refer to the GOWIN document SUG100(require login).

For more questions and solutions, go to Related Questions to view