Ice Tooling
Ice Tooling
Install Tools Set
Installing the IceStorm Tools (icepack, icebox, iceprog, icetime, chip databases):
git clone https://github.com/cliffordwolf/icestorm.git icestorm
cd icestorm
make -j$(nproc)
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
make -j$(nproc)
sudo make install
Installing Yosys (Verilog synthesis):
git clone https://github.com/cliffordwolf/yosys.git yosys
cd yosys
make -j$(nproc)
sudo make install
Installing tinyprog (for tinyFPGA boards only):
pip install tinyprog
sudo usermod -a -G dialout $USER
Building
> rm *.bin *.blif *.txt
> yosys -q -p 'synth_ice40 -top main -blif main.blif' main.v # and other .v
> arachne-pnr -q -d 8k -P cm81 -o main.txt -p pins.pcf main.blif
> icepack main.txt main.bin
> tinyprog -p main.bin # For a tinyFPGA board (via bootloader)
> iceprog main.bin # For a board (via FTDI usb/serial)
arachne-pnr Options
Board
tinyFPGA
-d
8k
-P
cm81