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