TangNano-20K-example
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1.6 KiB

Litex

What is this firmware

This firmware is generate on litex.

The LiteX framework provides a convenient and efficient infrastructure to create FPGA Cores/SoCs, to explore various digital design architectures and create full FPGA based systems.

How to use this firmware

Flash this firmware into Tang Nano 20K, both GOWIN programmer or openFPGALoader works fine.

Then open the serial port of Tang Nano 20K with 115200 baudrate, you can test the litex terminal

How to compile this firmware by myself

Here we use ubuntu 20.04 as the system to compile this firmware.

  1. Get litex
  2. Install litex
  3. Get Gowin toolchain
  4. Compile the firmware

Get litex

mkdir ~/litex
cd ~/litex
wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py

Install litex

cd ~/litex
chmod +x litex_setup.py
python ./litex_setup.py --init --install --user `whoami` --config=full

Get Gowin toolchain

Get GOWIN IDE (Chinese | English).

Here we use Education edition IDE as the example, make sure that your IDE is V1.9.8.11 version or newer. Otherwise you need license or your IDE does not support Tang Nano 20K FPGA Chip GW2AR-QN88C6I5

mkdir ~/gowin
cd ~/gowin
wget http://cdn.gowinsemi.com.cn/Gowin_V1.9.8.11_Education_linux.tar.gz
tar zxvf Gowin_V1.9.8.11_Education_linux.tar.gz
export PATH=~/gowin/IDE/bin:$PATH # Add gowin toolchain PATH

Compile the firmware

cd ~/litex
python3 -m litex_boards.targets.sipeed_tang_nano_20k --build