Corrections
[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
30 cd libtrellis
31
32 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/libtrellis .
33
34 make
35
36 make install
37
38 ## Steps to compile Project Nextpnr with ECP5
39
40 ### Necessary software to install
41
42 apt-get install libeigen3-dev
43
44 git clone --recursive https://github.com/YosysHQ/nextpnr
45
46 ### Build Project nextpnr-ecp5
47
48 cd nextpnr
49
50 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nextpnr-ecp5 -DARCH=ecp5 -DTRELLIS_INSTALL_PREFIX=/usr/local/libtrellis .
51
52 make
53
54 make install
55
56 Please adjust the install paths for nextpnr and previous prjtrellis.
57