Adding support for programming with FPGALink
authorTim 'mithro' Ansell <mithro@mithis.com>
Thu, 2 Jul 2015 14:44:39 +0000 (16:44 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 2 Jul 2015 14:44:39 +0000 (16:44 +0200)
commit8daf5e32c18b573da282cbf7a22d2ebc95a6990b
tree629d8d0eb8fb086dbcdf0ec0a501c7c82add3e41
parent055f7d51fc587276954454db52a2b651c0db1adc
Adding support for programming with FPGALink

Steps for getting it set up.

 * Get libfpgalink dependencies
   sudo apt-get install \
      build-essential libreadline-dev libusb-1.0-0-dev python-yaml

 * Build libfpgalink
   wget -qO- http://tiny.cc/msbil | tar zxf -
   cd makestuff; ./scripts/msget.sh makestuff/common
   cd libs; ../scripts/msget.sh libfpgalink
   cd libfpgalink; make deps

 * Convert libfpgalink to python3
   wget -O - http://www.swaton.ukfsn.org/bin/2to3.tar.gz | tar zxf -
   cd examples/python
   cp fpgalink2.py fpgalink3.py
   ../../2to3/2to3 fpgalink3.py | patch fpgalink3.py

 * Set your path's correctly.

   export LD_LIBRARY_PATH=$(pwd)/libfpgalink/lin.x64/rel:$LD_LIBRARY_PATH
   export PYTHON_PATH=$(pwd)/libfpgalink/examples/python:$PYTHON_PATH
mibuild/fpgalink_programmer.py [new file with mode: 0644]
mibuild/xilinx/programmer.py