c169dafa230a6ba3112bf225ff005b27f1e32ec4
[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
8 debootstrap stable $MY_CHROOT http://deb.debian.org/debian/
9
10 mount -t proc proc $MY_CHROOT/proc
11 mount -t sysfs sysfs $MY_CHROOT/sys
12 mount -t devpts devpts $MY_CHROOT/dev/pts/
13
14 chroot $MY_CHROOT /bin/bash
15
16 ## Steps to compile Project Trellis
17
18 Necessary software to install
19
20 apt-get install git
21
22 apt-get install python3 python3-dev clang cmake libboost-dev libboost-filesystem-dev libboost-thread-dev libboost-program-options-dev libboost-iostreams-dev openocd
23
24 git clone --recursive https://github.com/YosysHQ/prjtrellis
25
26 Build Project Trellis
27
28 cd prjtrellis
29 cd libtrellis
30
31 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/libtrellis .
32 make
33 make install
34
35 ## Steps to compile Project Nextpnr with ECP5
36
37 Necessary software to install
38
39 apt-get install libeigen3-dev
40
41 git clone --recursive https://github.com/YosysHQ/nextpnr
42
43 Build Project nextpnr-ecp5
44
45 cd nextpnr
46
47 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nextpnr-ecp5 -DARCH=ecp5 -DTRELLIS_INSTALL_PREFIX=/usr/local/libtrellis .
48 make
49 make install
50
51 Please adjust the install paths for nextpnr and previous prjtrellis.
52