This repository is indended to provide an environment to build a SOC with https://github.com/enjoy-digital/litex. The board used is https://tang.sipeed.com/en/hardware-overview/lichee-tang/
- run the container with: ./run_docker_env.sh
- in the container: ./gen_soc.sh
- Run locally installed version of Tang Dynasty: td -gui
- In Tang Dynasty: Tools/Download
- To download to RAM, use Mode "JTAG". To Download to Flash, use Mode "PROGRAM FLASH"
- Add the bit-file sipeed_tang_primer.bit located in build/soc/gateware
- Press the Run button
- run the container with: ./run_docker_env.sh
- in the container: ./gen_sim.sh
- Download and flashing works over the integrated jtag adapter of the board.
- Serial interface had to be connected to J13 and H13 in my case (even though the serial port is also connected to the on-board jtag interface)
The docker container is in a private repository, because it contains the Tang Dynasty IDE from https://dl.sipeed.com/TANG/Premier/IDE. You can use the dockerfile and create your own container.
- try support of sdcard
- build zephyr
- build own fpga function
- build riscv extension
- automate download from container (with Tang Dynasty or try to get OpenFPGALoader to work, which is intended to be used)