42dc59aefcd41b9054fc9914d8a4245d44275011
[libreriscv.git] / HDL_workflow / nextpnr.mdwn
1 # Installation instructions for nextpnr with ECP5 support
2
3 ## Setting up new debootstrap and chroot into it
4
5 export MY_CHROOT=/stable-chroot
6 mkdir $MY_CHROOT
7 debootstrap stable $MY_CHROOT http://deb.debian.org/debian/
8 mount -t proc proc $MY_CHROOT/proc
9 mount -t sysfs sysfs $MY_CHROOT/sys
10 mount -t devpts devpts $MY_CHROOT/dev/pts/
11 chroot $MY_CHROOT /bin/bash
12
13 ## Steps to compile Project Trellis
14
15 ### Necessary software to install
16
17 apt-get install git
18 apt-get install python3 python3-dev clang cmake libboost-dev libboost-filesystem-dev libboost-thread-dev libboost-program-options-dev libboost-iostreams-dev openocd
19 git clone --recursive https://github.com/YosysHQ/prjtrellis
20
21 ### Build Project Trellis
22
23 cd prjtrellis
24 cd libtrellis
25 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/libtrellis .
26 make
27 make install
28
29 ## Steps to compile Project Nextpnr with ECP5
30
31 ### Necessary software to install
32
33 apt-get install libeigen3-dev
34 git clone --recursive https://github.com/YosysHQ/nextpnr
35
36 ### Build Project nextpnr-ecp5
37
38 cd nextpnr
39 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nextpnr-ecp5 \
40 -DARCH=ecp5 -D TRELLIS_INSTALL_PREFIX=/usr/local/libtrellis .
41 make
42 make install
43
44 Please adjust the install paths for nextpnr and previous prjtrellis.
45