Bug 1244: changes to description pospopcount
[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 Run the following if you wish to isolate the nextpnr-ecp5 build
6 from other software (reproducible builds) or use the schroot
7 auto-preparation script here:
8 <https://git.libre-soc.org/?p=dev-env-setup.git;a=blob;f=mk-deb-chroot;hb=HEAD>
9
10 export MY_CHROOT=/stable-chroot
11 mkdir $MY_CHROOT
12 debootstrap stable $MY_CHROOT http://deb.debian.org/debian/
13 mount -t proc proc $MY_CHROOT/proc
14 mount -t sysfs sysfs $MY_CHROOT/sys
15 mount -t devpts devpts $MY_CHROOT/dev/pts/
16 chroot $MY_CHROOT /bin/bash
17
18 ## Steps to compile Project Trellis
19
20 ### Necessary software to install
21
22 apt-get install git
23 apt-get install python3 python3-dev clang cmake libboost-dev \
24 libboost-filesystem-dev libboost-thread-dev \
25 libboost-program-options-dev libboost-iostreams-dev \
26 openocd
27 git clone --recursive https://github.com/YosysHQ/prjtrellis
28
29 ### Build Project Trellis
30
31 cd prjtrellis
32 cd libtrellis
33 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/libtrellis .
34 make
35 make install
36
37 ## Steps to compile Project Nextpnr with ECP5
38
39 ### Necessary software to install
40
41 apt-get install libeigen3-dev
42 git clone --recursive https://github.com/YosysHQ/nextpnr
43
44 ### Build Project nextpnr-ecp5
45
46 cd nextpnr
47 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nextpnr-ecp5 \
48 -DARCH=ecp5 -D TRELLIS_INSTALL_PREFIX=/usr/local/libtrellis .
49 make
50 make install
51
52 Please adjust the install paths for nextpnr and previous prjtrellis.
53