3 then echo "Please run as root using 'sudo bash'"
7 #!!! buster backports is needed for cmake
8 cat << EOF > /etc/apt/sources.list.d/buster_backports.list
9 deb http://deb.debian.org/debian buster-backports main
12 # oooo annoying, pin preferences for buster-backports
13 cat << EOF > /etc/apt/preferences.d/99buster-backports
15 Pin: release a=buster-backports
19 # upgrade to buster-backports
23 # change into $SUDO_USER home directory
25 mkdir
-p src
/symbiflow
28 apt-get
install -y git wget
30 git clone https
://github.com
/steveicarus
/iverilog.git
31 git clone https
://github.com
/YosysHQ
/yosys.git
32 git clone https
://github.com
/YosysHQ
/abc.git
33 git clone https
://github.com
/verilog-to-routing
/vtr-verilog-to-routing.git
34 git clone https
://github.com
/cliffordwolf
/icestorm.git
35 git clone https
://github.com
/SymbiFlow
/prjxray.git
36 git clone https
://github.com
/SymbiFlow
/prjxray-db.git
37 git clone https
://github.com
/SymbiFlow
/yosys-symbiflow-plugins.git
38 #git clone https://github.com/SymbiFlow/symbiflow-examples.git
39 git clone https
://github.com
/SymbiFlow
/symbiflow-arch-defs.git
40 git clone https
://github.com
/QuickLogic-Corp
/quicklogic-fasm.git
41 git clone https
://github.com
/QuickLogic-Corp
/quicklogic-fasm-utils.git
42 git clone https
://github.com
/SymbiFlow
/python-fpga-interchange.git
43 git clone https
://github.com
/capnproto
/capnproto.git
44 git clone https
://github.com
/capnproto
/pycapnp.git
46 wget http
://xmlsoft.org
/sources
/libxml2-2.9
.12.
tar.gz
47 wget http
://xmlsoft.org
/sources
/libxslt-1.1
.34.
tar.gz
49 ## Steps to compile Icarus Verilog
51 ### Necessary software to install
53 apt-get
install -y build-essential autoconf
make g
++ bison flex gperf \
56 ### Build Icarus Verilog
61 .
/configure
--prefix=/usr
/local
/symbiflow
/iverilog
65 export PATH
=/usr
/local
/symbiflow
/iverilog
/bin
:$PATH
68 #Please adjust the install paths for iverilog.
70 ## Steps to compile Yosys
72 ### Necessary software to install
74 apt-get
install -y -t buster_backports cmake
75 apt-get
install -y python3 clang libreadline-dev gawk tcl-dev \
76 libffi-dev pkg-config libboost-system-dev libboost-python-dev \
77 libboost-filesystem-dev zlib1g-dev
82 git checkout
4f5f73d18b137930fb3048c0b385c82fa078db38
84 git checkout f44110c62561b21fa673f44d8e115c3ee70d2900
86 make -j $
(nproc
) PREFIX
=/usr
/local
/symbiflow
/yosys
87 make PREFIX
=/usr
/local
/symbiflow
/yosys
install
88 install -d -m 0755 /usr
/local
/symbiflow
/share
89 ln -s ..
/yosys
/share
/yosys
/usr
/local
/symbiflow
/share
90 export PATH
=/usr
/local
/symbiflow
/yosys
/bin
:$PATH
93 #Please adjust the install paths for Yosys.
95 ## Steps to compile vtr-verilog-to-routing
97 ### Necessary software to install
99 apt-get
install -y libeigen3-dev
101 # Only if want GUI place and route
102 #apt-get install libcairo2-dev libfontconfig1-dev libx11-dev libxft-dev \
105 ### Build vtr-verilog-to-routing
107 cd vtr-verilog-to-routing
108 git checkout
77a3df829fdf509a76b9d7b941376f3835c2576a
109 mkdir build
; cd build
110 cmake
-DBUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/usr
/local
/symbiflow
/vtr ..
113 install -d -m 0755 /usr
/local
/symbiflow
/share
/vtr
114 cp ..
/libs
/libvtrcapnproto
/gen
/rr_graph_uxsdcxx.capnp
/usr
/local
/symbiflow
/share
/vtr
115 export PATH
=/usr
/local
/symbiflow
/vtr
/bin
:$PATH
118 #Please adjust the install paths for vtr-verilog-to-routing.
120 ## Steps to compile libxml2
122 # Newer version is needed which fixes a integer overflow error and is not
123 # provided by Buster.
125 ### Necessary software to install
127 apt-get
install -y python3-dev
131 tar -xf libxml2-2.9
.12.
tar.gz
133 .
/configure
--prefix=/usr
/local
/symbiflow
/libxml2
--with-history --with-python=/usr
/bin
/python3
136 echo "/usr/local/symbiflow/libxml2/lib" > /etc
/ld.so.conf.d
/symbiflow.conf
138 export PATH
=/usr
/local
/symbiflow
/libxml
2/bin
:$PATH
141 #Please adjust the install paths for libxml2
143 ## Steps to compile libxslt
145 # Needed by python3 lxml.
149 tar -xf libxslt-1.1
.34.
tar.gz
151 sed -i s
/3000/5000/ libxslt
/transform.c
doc
/xsltproc.
{1,xml
}
152 sed -i -r '/max(Parser)?Depth/d' .
/tests
/fuzz
/fuzz.c
153 .
/configure
--prefix=/usr
/local
/symbiflow
/libxslt
--disable-static --without-python PKG_CONFIG_PATH
=/usr
/local
/symbiflow
/libxml
2/lib
/pkgconfig
156 echo "/usr/local/symbiflow/libxslt/lib" >> /etc
/ld.so.conf.d
/symbiflow.conf
158 export PATH
=/usr
/local
/symbiflow
/libxslt
/bin
:$PATH
161 #Please adjust the install paths for libxslt
163 ## Steps to compile prjxray
165 ### Necessary software to install
170 git checkout f7f06896ad26bb7c94680dc323d4b871eded1f4e
171 git submodule update
--init --recursive
172 mkdir build
; cd build
173 cmake
-DCMAKE_INSTALL_PREFIX=/usr
/local
/symbiflow ..
176 export PATH
=/usr
/local
/symbiflow
/bin
:$PATH
179 ## Steps to compile yosys-symbiflow-plugins
181 ### Build yosys-symbiflow-plugins
183 cd yosys-symbiflow-plugins
184 git checkout b170f1d3575568d87901422f846b700169e299be
185 sed -i -e 's@-include third_party/make-env/conda.mk@#-include third_party/make-env/conda.mk@' Makefile
190 ## Steps to compile prjxray-db
192 ### Install prjxray-db
195 git archive
--format=tar --prefix=prjxray-db
/ cd41f08a8a4d2a60053750a0fe10623b1e2e35da |
tar -C /usr
/local
/symbiflow
-xf -
197 cat > /usr
/local
/symbiflow
/bin
/prjxray-config
<< EOF
199 echo /usr/local/symbiflow/prjxray-db
202 chmod +x
/usr
/local
/symbiflow
/bin
/prjxray-config
205 ## Steps to compile Icestorm
207 ### Necessary software to install
209 apt-get
install -y libftdi-dev
214 git checkout
83b8ef947f77723f602b706eac16281e37de278c
215 make -j $
(nproc
) PREFIX
=/usr
/local
/symbiflow
/icestorm
217 export PATH
=/usr
/local
/symbiflow
/icestorm
/bin
:$PATH
220 ## Steps to compile capnproto
222 ### Necessary software to install
224 apt-get
install -y automake autoconf libtool
230 .
/configure
--prefix=/usr
/local
/symbiflow
/capnproto
233 echo "/usr/local/symbiflow/capnproto/lib" >> /etc
/ld.so.conf.d
/symbiflow.conf
235 export PATH
=/usr
/local
/symbiflow
/capnproto
/bin
:$PATH
238 ## Steps to compile pycapnp
240 ### Necessary software to install
242 apt-get
install -y python3-pip cython3
245 git checkout v1.0
.0b1
249 ## Steps to install fpga-interchange
250 cd python-fpga-interchange
251 git checkout v0.0
.18 # pick stable version 0.0.18
252 python3 setup.py
install
255 ## Steps to compile symbiflow-arch-defs
257 ## Necessary software to install
259 apt-get
install -y nodejs npm python-pytest openocd flake8 \
260 default-jre-headless libantlr4-runtime-dev python3-numpy \
261 python3-intervaltree python3-simplejson python3-intelhex \
262 python3-importlib-metadata python3-jsonschema python3-packaging \
263 python3-pyparsing python3-pyrsistent python3-tqdm python3-zipp \
264 python3-typing-extensions python3-ply
266 pip3
install textx fasm pyjson5 pyyaml tinyfpgab tinyprog pyjson lxml \
267 progressbar2 hilbertcurve
==1.0.5 python-constraint parameterized \
268 yapf
==0.26.0 python-sat
270 cd symbiflow-arch-defs
272 git submodule update
--init --recursive
273 pip3
install -e third_party
/prjxray
274 pip3
install -e third_party
/xc-fasm
275 pip3
install ..
/quicklogic-fasm-utils
276 pip3
install ..
/quicklogic-fasm
277 pip3
install -e third_party
/qlf-fasm
278 pip3
install -e quicklogic
/common
/utils
/quicklogic-timings-importer
279 pip3
install -e third_party
/vtr-xml-utils
280 pip3
install -e third_party
/python-symbiflow-v2x
281 pip3
install -e third_party
/python-sdf-timing
282 pip3
install -e third_party
/symbiflow-xc-fasm2bels
284 mkdir
-p env
/conda
/envs
285 ln -s /usr
/local
/symbiflow env
/conda
/envs
/symbiflow_arch_def_base
287 git checkout c2c0f00960baf538eb31e4c42bf5d09dca87bad7
289 sed -i -e 's@add_subdirectory(litex)@#add_subdirectory(litex)@g' -e 's@add_subdirectory(ibex)@#add_subdirectory(ibex)@g' xc
/xc
7/tests
/soc
/CMakeLists.txt
291 ### Build symbiflow-arch-defs-xc7-artix7_100t
293 mkdir build
; cd build
294 cmake
-DUSE_CONDA=FALSE
-DPRJXRAY_DB_DIR=/usr
/local
/symbiflow
/prjxray-db
-DINSTALL_FAMILIES=xc7
-DINSTALL_ARCHS=artix7_100t
-DCMAKE_INSTALL_PREFIX=/usr
/local
/symbiflow ..
295 cd xc
/xc
7/archs
/artix7_100t
298 make PINMAP_INSTALL_arty100t-full_xc7a100t_test_arty100t-full_pinmap.csv
299 install -d -m 0755 /usr
/local
/symbiflow
/share
/symbiflow
/arch
/xc7a100t_test
/xc7a100tcsg324-1
300 cp arty100t-full_pinmap.csv
/usr
/local
/symbiflow
/share
/symbiflow
/arch
/xc7a100t_test
/xc7a100tcsg324-
1/pinmap.csv
302 cd /home
/$SUDO_USER/src
/symbiflow
303 chown
-R $SUDO_USER .
304 chgrp
-R $SUDO_USER .