參考資訊:
https://github.com/wuxx/icesugar
司徒使用開源工具yosys、ghdl、nextpnr-ice40、icepack,安裝方式如下:
$ sudo apt-get install tcl8.6-dev tclsh gnat $ cd $ git clone https://github.com/YosysHQ/yosys $ cd yosys $ git submodule update --init $ make $ sudo make install $ cd $ git clone https://github.com/ghdl/ghdl --recursive $ cd ghdl $ ./configure $ make -j4 $ sudo make install $ cd $ git clone https://github.com/ghdl/ghdl-yosys-plugin --recursive $ cd ghdl-yosys-plugin $ make -j4 $ sudo make install $ cd $ git clone https://github.com/YosysHQ/icestorm $ cd icestorm $ make -j4 $ sudo make install $ cd $ git clone https://github.com/YosysHQ/nextpnr --recursive $ mkdir -p nextpnr/build $ cd nextpnr/build $ cmake .. -DARCH=ice40 $ make -j4 $ sudo make install $ cd $ git clone https://github.com/wuxx/icesugar $ cd icesugar/tools/src $ make clean $ make $ sudo cp icesprog /usr/local/bin
燒錄方式
方法一:插入iCESugar-nano到PC,會出現一個隨身碟,只要將*.bin文件複製到開隨身碟即可
方法二:透過icesprog燒錄
$ ./icesprog -w xxx.bin