TangNano-9K-example icon indicating copy to clipboard operation
TangNano-9K-example copied to clipboard

How to use with Mac?

Open louis030195 opened this issue 2 years ago • 3 comments

I'm stuck at the Gowin part which does not seem to run on Mac

ATM I'm looking at how to run Gowin in Docker Ubuntu or in the cloud with port forwarding - if you have any instructions on how to do so?

louis030195 avatar Jan 22 '24 18:01 louis030195

Maybe opensource fpga toolchain is a good choice to do this, but there may be some bugs if you try this on Gowin device.

https://github.com/YosysHQ/apicula

wonderfullook avatar Jan 24 '24 03:01 wonderfullook

@louis030195 if you asked about GoWin EDA - it's not supported under Mac. But you easely can use VSCode with LashiLabs extension.

If you ask to synth and burn. Here is my example project for Mac (take a look Makefile): https://github.com/mrLSD/fpga/tree/master/sipeed-tangnano-9k/lcd_screen

mrLSD avatar Feb 11 '24 00:02 mrLSD

Here is my solution(Gowin EDA on the MAC Apple silicon, no programmer and GAO):

  1. Setup a Ubuntu X86 docker on Mac Apple Silicon;
  2. Forward the Ubuntu X to XQuartz on Mac;
  3. Then Gowin EDA could work, but GAO can't. Use OpenFPGALoader instead of the programmer.

Docker setup: docker run -v ~/.Xauthority:/root/.Xauthority -v ~/Source:/root/Source -e DISPLAY=host.docker.internal:0 -it ubuntu-x bash change the ubuntu-x to your docker image name Run xhost + localhost on Mac, then the Gowin EDA should be OK.

Bestoa avatar Oct 02 '24 14:10 Bestoa