poprawiono instrukcje instalcji yosys nexpnr icestrom
This commit is contained in:
parent
fce5e6cfb6
commit
261c4415a3
BIN
doc/main.pdf
BIN
doc/main.pdf
Binary file not shown.
31
doc/main.tex
31
doc/main.tex
|
@ -29,7 +29,7 @@ Yosys and nextpnr are open-source tools for digital synthesis and place-and-rout
|
||||||
git clone https://github.com/YosysHQ/yosys.git
|
git clone https://github.com/YosysHQ/yosys.git
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
\item \textbf{Install dependencies:} Make sure all necessary dependencies are installed by running:
|
\item \textbf{Install dependencies:} Ensure all necessary dependencies are installed by running:
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
sudo apt-get install build-essential clang lld bison flex \
|
sudo apt-get install build-essential clang lld bison flex \
|
||||||
libreadline-dev gawk tcl-dev libffi-dev git \
|
libreadline-dev gawk tcl-dev libffi-dev git \
|
||||||
|
@ -42,7 +42,7 @@ Yosys and nextpnr are open-source tools for digital synthesis and place-and-rout
|
||||||
make config-clang
|
make config-clang
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
\item \textbf{Initialize submodules:} Make sure all Git submodules are up to date.
|
\item \textbf{Initialize submodules:} Ensure all Git submodules are up to date.
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
@ -58,6 +58,26 @@ Yosys and nextpnr are open-source tools for digital synthesis and place-and-rout
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
|
|
||||||
|
\subsection*{icestorm Installation}
|
||||||
|
|
||||||
|
\begin{enumerate}
|
||||||
|
\item \textbf{Clone the icestorm repository:} Download the icestorm repository from GitHub.
|
||||||
|
\begin{verbatim}
|
||||||
|
git clone https://github.com/YosysHQ/icestorm
|
||||||
|
\end{verbatim}
|
||||||
|
|
||||||
|
\item \textbf{Build icestorm:} Navigate to the icestorm directory and compile the project using all available processor cores.
|
||||||
|
\begin{verbatim}
|
||||||
|
cd icestorm/
|
||||||
|
make -j$(nproc)
|
||||||
|
\end{verbatim}
|
||||||
|
|
||||||
|
\item \textbf{Install icestorm:} After the build is complete, install icestorm system-wide.
|
||||||
|
\begin{verbatim}
|
||||||
|
sudo make install
|
||||||
|
\end{verbatim}
|
||||||
|
\end{enumerate}
|
||||||
|
|
||||||
\subsection*{nextpnr Installation}
|
\subsection*{nextpnr Installation}
|
||||||
|
|
||||||
\begin{enumerate}
|
\begin{enumerate}
|
||||||
|
@ -71,13 +91,14 @@ Yosys and nextpnr are open-source tools for digital synthesis and place-and-rout
|
||||||
git clone https://github.com/YosysHQ/nextpnr
|
git clone https://github.com/YosysHQ/nextpnr
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
\item \textbf{Install cmake:} Install cmake, which is required to build nextpnr.
|
\item \textbf{Install dependencies:} Install additional libraries needed for nextpnr.
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
sudo apt install cmake
|
sudo apt install cmake libeigen3-dev libftdi-dev
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
\item \textbf{Configure nextpnr for the iCE40 architecture:} In the nextpnr directory, run cmake with the iCE40 architecture option.
|
\item \textbf{Configure nextpnr for the iCE40 architecture:} In the nextpnr directory, run cmake with the iCE40 architecture option. This will also integrate Icestorm.
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
|
cd nextpnr/
|
||||||
cmake . -DARCH=ice40
|
cmake . -DARCH=ice40
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue