From 83826680cdf52fb82d1aff3df05ffa307b40dc93 Mon Sep 17 00:00:00 2001 From: R Veera Kumar Date: Wed, 10 Mar 2021 14:46:57 +0530 Subject: [PATCH] Installation instructions for nextpnr with ECP5 --- HDL_workflow/nextpnr.mdwn | 52 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 HDL_workflow/nextpnr.mdwn diff --git a/HDL_workflow/nextpnr.mdwn b/HDL_workflow/nextpnr.mdwn new file mode 100644 index 000000000..c169dafa2 --- /dev/null +++ b/HDL_workflow/nextpnr.mdwn @@ -0,0 +1,52 @@ +# Installation instructions for nextpnr with ECP5 support + +## Setting up new debootstrap and chroot into it + +export MY_CHROOT=/stable-chroot +mkdir $MY_CHROOT + +debootstrap stable $MY_CHROOT http://deb.debian.org/debian/ + +mount -t proc proc $MY_CHROOT/proc +mount -t sysfs sysfs $MY_CHROOT/sys +mount -t devpts devpts $MY_CHROOT/dev/pts/ + +chroot $MY_CHROOT /bin/bash + +## Steps to compile Project Trellis + +Necessary software to install + +apt-get install git + +apt-get install python3 python3-dev clang cmake libboost-dev libboost-filesystem-dev libboost-thread-dev libboost-program-options-dev libboost-iostreams-dev openocd + +git clone --recursive https://github.com/YosysHQ/prjtrellis + +Build Project Trellis + +cd prjtrellis +cd libtrellis + +cmake -DCMAKE_INSTALL_PREFIX=/usr/local/libtrellis . +make +make install + +## Steps to compile Project Nextpnr with ECP5 + +Necessary software to install + +apt-get install libeigen3-dev + +git clone --recursive https://github.com/YosysHQ/nextpnr + +Build Project nextpnr-ecp5 + +cd nextpnr + +cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nextpnr-ecp5 -DARCH=ecp5 -DTRELLIS_INSTALL_PREFIX=/usr/local/libtrellis . +make +make install + +Please adjust the install paths for nextpnr and previous prjtrellis. + -- 2.30.2