系统:ubuntu20.04
1.编译安装yosys
以前博客里有写
-
yosys编译安装教程:http://t.csdnimg.cn/6eXrB
2. 编译安装icestorm
-
这是编译nextpnr必须的,也是用来生成bin的工具
sudo apt install libftdi1-dev
git clone https://github.com/YosysHQ/icestorm.git
cd icestorm
#修改common.mk第一行 PREFIX ?= /home/lehaifeng/install/open_eda,=后面设置整个编译工具的路径
make -j4
make install
3. 编译安装nextpnr
-
nextpnr用来布局布线
git clone https://github.com/YosysHQ/nextpnr.git
cd nextpnr
mkdir build
cd build
cmake -DARCH=ice40 -DCMAKE_INSTALL_PREFIX=/home/lehaifeng/install/open_eda ..
# 上面=后面的路径和第1步里icestorm的要一致
make -j4
make install
完成上面2、3两步,需要的两个重要的可执行文件nextpnr-ice40
和icepack
会在/home/lehaifeng/install/open_eda/bin
路径下
开发
在淘宝买的开发板,作者有给配套的示例和详细教程,这里只是补充源码编译工具的过程,因为我要尝试修改综合或者布局布线算法,所以需要源码编译,只是使用的话直接用作者提供的镜像就行。
开发板github,里面有购买链接:https://github.com/wuxx/icesugar