Skip to content

LiteX + Tang nano 9K run under Windows powershell/WSL

Notifications You must be signed in to change notification settings

curliph/tang_nano_9k_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiteX test for tang_nano_9k under Windows Powershell/WSL

Test run with oss-cad-suite (https://github.com/yosyshq/oss-cad-suite-build):

Step Guide

  1. download and install Gowin IDE (Education Version is also okay)
  2. download and install oss-cad-suite
  3. download and install riscv toolchain
  4. setup risc-v toolchain path to system environments
  5. setup Gowin IDE/Programmer binary directory to system environments
  6. download litex_setup.py
  7. start oss-cad-suite box by running 'start.bat' inside its directory
# follow steps run inside oss-cad-suite box

[OSS CAD Suite] > mkdir enjoy-digital
[OSS CAD Suite] > cd enjoy-digital
[OSS CAD Suite] > cp ../litex_setup.py . 
[OSS CAD Suite] > python3 litex_setup.py --init --install --config=full

[OSS CAD Suite] > pip3 install meson ninja
 
[OSS CAD Suite] > git clone https://github.com/curliph/tang_nano_9k_test 
[OSS CAD Suite] > cd tang_nano_9k_test

# patches have been merged to LiteX/Litex-boards
# so following 4 steps not needed now.
# [OSS CAD Suite] > cp patch/litex/programmer.py ../enjoy-digital/litex/litex/build/gowin 
# [OSS CAD Suite] > cp patch/litex/gowin.py ../enjoy-digital/litex/litex/build/gowin 
# [OSS CAD Suite] > cp patch/litex-boards/platforms/*.py ../enjoy-digital/litex-boards/litex-boards/platforms 
# [OSS CAD Suite] > cp patch/litex-boards/targets/*.py ../enjoy-digital/litex-boards/litex-boards/targets 

for programming with Gowin Programmer

[OSS CAD Suite] > python3 test.py --build --load --prog-kit gowin # load to internel sram
[OSS CAD Suite] > python3 test.py --build --flash --prog-kit gowin # flash bitstream to internel embFLASH

for programming with openFPGALoader

  1. download zadig
  2. connect tang-nano-9k to computer, replace its [JTAG Debugger (interface 0)] with WinUSB driver by zadig
[OSS CAD Suite] > python3 test.py --build --load  # load to internel sram 
[OSS CAD Suite] > python3 test.py --build --flash  # flash bitstream to embFLASH and bios to external SPINAND

About

LiteX + Tang nano 9K run under Windows powershell/WSL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages