git clone https://github.com/SymbiFlow/prjxray-db.git
git clone https://github.com/gatecat/nextpnr-xilinx.git
-# apt-get install -y build-essential autoconf make g++ bison flex gperf \
-# libreadline6-dev
+""#apt-get install -y build-essential autoconf make g++ bison flex gperf""
+""libreadline6-dev""
## Steps to compile Yosys
make -j$(nproc)
make install
install -d -m 0755 /usr/local/nx/build/tools
- install -m 0755 tools/{bitread,bittool,frame_address_decoder,gen_part_base_yaml,segmatch,xc7frames2bit,xc7patch} /usr/local/nx/build/tools
+ install -m 0755 tools/{bitread,bittool,frame_address_decoder,gen_part_base_yaml,segmatch,xc7frames2bit,xc7patch} \
+ /usr/local/nx/build/tools
cd ..
cp -dpr utils /usr/local/nx
sed -i -e '/^# Vivado /,$d' /usr/local/nx/utils/environment.sh
### Necessary software to install
- apt-get install libboost-thread-dev libboost-iostreams-dev libboost-program-options-dev
+ apt-get install libboost-thread-dev libboost-iostreams-dev \
+ libboost-program-options-dev
### Build nextpnr-xilinx
cd xilinx/examples
cp -dpr arty-a35 arty-a100
cd arty-a100
- sed -i -e 's@xc7a35tcsg324-1@xc7a100tcsg324-1@g' -e 's@../../../nextpnr-xilinx@nextpnr-xilinx@g' -e 's@../../xc7a35t.bin@/usr/local/nx/share/xilinx/xc7a100t.bin@g' attosoc.sh
+ sed -i -e 's@xc7a35tcsg324-1@xc7a100tcsg324-1@g' \
+ -e 's@../../../nextpnr-xilinx@nextpnr-xilinx@g' \
+ -e 's@../../xc7a35t.bin@/usr/local/nx/share/xilinx/xc7a100t.bin@g' \
+ attosoc.sh
./attosoc.sh
# see file attosoc.bit; it is the bitstream file and if built then success