1 # Installation instructions for nextpnr with ECP5 support
3 ## Setting up new debootstrap and chroot into it
5 export MY_CHROOT=/stable-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
13 ## Steps to compile Project Trellis
15 ### Necessary software to install
18 apt-get install python3 python3-dev clang cmake libboost-dev \
19 libboost-filesystem-dev libboost-thread-dev \
20 libboost-program-options-dev libboost-iostreams-dev \
22 git clone --recursive https://github.com/YosysHQ/prjtrellis
24 ### Build Project Trellis
28 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/libtrellis .
32 ## Steps to compile Project Nextpnr with ECP5
34 ### Necessary software to install
36 apt-get install libeigen3-dev
37 git clone --recursive https://github.com/YosysHQ/nextpnr
39 ### Build Project nextpnr-ecp5
42 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nextpnr-ecp5 \
43 -DARCH=ecp5 -D TRELLIS_INSTALL_PREFIX=/usr/local/libtrellis .
47 Please adjust the install paths for nextpnr and previous prjtrellis.