Skip to content

Instantly share code, notes, and snippets.

@cactorium
Created November 15, 2019 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cactorium/e7474ddff60bf282deb8961c32653998 to your computer and use it in GitHub Desktop.
Save cactorium/e7474ddff60bf282deb8961c32653998 to your computer and use it in GitHub Desktop.
Installing the Icestorm-based iCE40 toolchain using a nonstandard prefix
git clone https://github.com/cliffordwolf/icestorm.git icestorm
cd icestorm
PREFIX=~ make -j$(nproc)
PREFIX=~ sudo make install
Installing Arachne-PNR (place&route tool, predecessor to NextPNR):
git clone https://github.com/cseed/arachne-pnr.git arachne-pnr
cd arachne-pnr
PREFIX=~ make -j$(nproc)
PREFIX=~ sudo make install
Installing NextPNR (place&route tool, Arachne-PNR replacement):
git clone https://github.com/YosysHQ/nextpnr nextpnr
cd nextpnr
cmake -DARCH=ice40 -DCMAKE_INSTALL_PREFIX=~ -DICEBOX_ROOT=~/share/icebox .
PREFIX=~ make -j$(nproc)
PREFIX=~ sudo make install
Installing Yosys (Verilog synthesis):
git clone https://github.com/cliffordwolf/yosys.git yosys
cd yosys
PREFIX=~ make -j$(nproc)
PREFIX=~ sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment