Merge pull request #188 from esden/docs-nextpnr

Added NextPNR deps and install instructions to docs.
This commit is contained in:
Clifford Wolf 2018-11-09 12:08:07 +01:00 committed by GitHub
commit 06c11f9c77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 5 deletions

View File

@ -142,7 +142,8 @@ Installing prerequisites (this command is for Ubuntu 14.04):
<pre style="padding-left: 3em"> <pre style="padding-left: 3em">
sudo apt-get install build-essential clang bison flex libreadline-dev \ sudo apt-get install build-essential clang bison flex libreadline-dev \
gawk tcl-dev libffi-dev git mercurial graphviz \ gawk tcl-dev libffi-dev git mercurial graphviz \
xdot pkg-config python python3 libftdi-dev xdot pkg-config python python3 libftdi-dev \
qt5-default python3-dev libboost-dev
</pre> </pre>
<p> <p>
@ -152,9 +153,14 @@ On Fedora 24 the following command installs all prerequisites:
<pre style="padding-left: 3em"> <pre style="padding-left: 3em">
sudo dnf install make automake gcc gcc-c++ kernel-devel clang bison \ sudo dnf install make automake gcc gcc-c++ kernel-devel clang bison \
flex readline-devel gawk tcl-devel libffi-devel git mercurial \ flex readline-devel gawk tcl-devel libffi-devel git mercurial \
graphviz python-xdot pkgconfig python python3 libftdi-devel graphviz python-xdot pkgconfig python python3 libftdi-devel \
qt5-devel python3-devel boost-devel
</pre> </pre>
<p>
Note: All tools will be installed relative to /usr/local
</p>
<p> <p>
Installing the <a href="https://github.com/cliffordwolf/icestorm">IceStorm Tools</a> (icepack, icebox, iceprog, icetime, chip databases): Installing the <a href="https://github.com/cliffordwolf/icestorm">IceStorm Tools</a> (icepack, icebox, iceprog, icetime, chip databases):
</p> </p>
@ -165,7 +171,7 @@ make -j$(nproc)
sudo make install</pre> sudo make install</pre>
<p> <p>
Installing <a href="https://github.com/cseed/arachne-pnr">Arachne-PNR</a> (the place&amp;route tool): Installing <a href="https://github.com/cseed/arachne-pnr">Arachne-PNR</a> (place&amp;route tool, predecessor to NextPNR):
</p> </p>
<pre style="padding-left: 3em">git clone https://github.com/cseed/arachne-pnr.git arachne-pnr <pre style="padding-left: 3em">git clone https://github.com/cseed/arachne-pnr.git arachne-pnr
@ -173,6 +179,16 @@ cd arachne-pnr
make -j$(nproc) make -j$(nproc)
sudo make install</pre> sudo make install</pre>
<p>
Installing <a href="https://github.com/YosysHQ/nextpnr">NextPNR</a> (place&amp;route tool, Arachne-PNR replacement):
</p>
<pre style="padding-left: 3em">git clone https://github.com/YosysHQ/nextpnr nextpnr
cd nextpnr
cmake -DARCH=ice40 -DCMAKE_INSTALL_PREFIX=/usr/local .
make -j$(nproc)
sudo make install</pre>
<p> <p>
Installing <a href="http://www.clifford.at/yosys/">Yosys</a> (Verilog synthesis): Installing <a href="http://www.clifford.at/yosys/">Yosys</a> (Verilog synthesis):
</p> </p>
@ -183,8 +199,9 @@ make -j$(nproc)
sudo make install</pre> sudo make install</pre>
<p> <p>
The Arachne-PNR build converts the IceStorm text chip databases into the arachne-pnr binary chip databases. Always rebuild Arachne-PNR Both place and route tools (Arachne-PNR &amp; NextPNR) convert the IceStorm
after updating your IceStorm installation. text chip databases into the respective PNR binary chip databases during build.
Always rebuild the PNR tools after updating your IceStorm installation.
</p> </p>
<p> <p>