BrunoLevy / learn-fpga

Learning FPGA, yosys, nextpnr, and RISC-V
BSD 3-Clause "New" or "Revised" License
2.46k stars 235 forks source link

Add OSX support #56

Closed Grazfather closed 2 years ago

Grazfather commented 2 years ago

This also allows multiple toolchains to co-exist, by adding the 'suffix' to the expected path.

Tested on OSX M1 (but downloading x64 binaries since arm binaries for darwin don't exist), as well as Linux AARCH64.

Needs to be tested on raspberry pi and on Linux x64. If you build anything you'll download a new copy of the toolchain since it won't recognize the old directory.

I also fixed a bug that occurs when running newer versions of iverilog: Newer versions seem to be more picky about arg order.