Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
LIB:Library for interacting with an FPGA over USB
C C++ Python Java TeX Makefile Other
Failed to load latest commit information.
docs Support .ihx as well as .hex files
dump Switch to using async API for sync operations, use 17-bit CommFPGA le…
examples Create javadoc
firmware Fixed debug.c for new sdcc versions
gen_fw Add Java binding; replace ReadReport struct with individual 'out' par…
latex-docs Starting doc rehash
mkfw Fix Windows warnings
tests-integration Renaming SVF files in examples, etc
tests-unit Fix Windows warnings
xsvf2csvf Removed last vestiges of CSVF_BUF_SIZE
.gitignore Added gitignore
COPYING Switched to LGPL
COPYING.LESSER Check if mask is all zero and replace following XSDRTDO with XSDR if …
Makefile Ooops, I mistakenly added the fx2.lib target back
README Small README fix.
blinx.sh Oops forgot to escape dollars
csvfplay.c Separated jtagShift() into jtagShiftInOnly() and jtagShiftInOut(); ad…
csvfplay.h Removed CSVF RLE compression
firmware.h Removing standalone mode; adding slave serial and slave parallel prog…
fx2.c Support .ihx as well as .hex files
hdlbuild.sh Added aes220
libfpgalink.c Fixed async write bug where a command write exactly fills the write b…
libfpgalink.h Add Java binding; replace ReadReport struct with individual 'out' par…
private.h Added firmware ID/version stuff
prog.c Separated jtagShift() into jtagShiftInOnly() and jtagShiftInOut(); ad…
release.sh Include incs.txt & libs.txt in binary release
spi.c API docs, Python SPI, separate Python examples, remove enums from arg…
svf2csvf.c Fix Windows warnings
svf2csvf.h Fixed off-by-one error in counting commands
util.c Switch to using async API for sync operations, use 17-bit CommFPGA le…
vendorCommands.h Renamed JTAG stuff to reflect its more fundamental SPI nature
xsvf.h prog: Switched to single-bit port access
xsvf2csvf.c Fix Windows warnings

README

A library for JTAG-programming and subsequently interacting with an FPGA over USB using a
microcontroller (primarily the Cypress FX2LP). It allows you to:

   * Load and save Cypress FX2LP firmware
   * Communicate with the FPGA using HiSpeed USB (~25Mbyte/s)
   * Reprogram the FPGA using JTAG over USB
   * Bootstrap an FPGA design standalone using minimal components

See http://bit.ly/fpgalnk-api for the API docs.

To build, first you need to install the MakeStuff Build Environment (http://bit.ly/makestuff) for
your platform, then do:

chris@wotan$ cd makestuff/libs
chris@wotan$ ../scripts/msget.sh libfpgalink   # or msgit.sh if you want a local git repo
chris@wotan$ cd libfpgalink
chris@wotan$ make deps

*** WINDOWS PREREQUISITES ***

* Visual Studio Express 2010 or 2008
* SDCC 2.9.0 (http://bit.ly/k7wyYn)
* Xilinx ISE WebPACK (http://bit.ly/bRf82e)

*** LINUX PREREQUISITES ***

* sudo apt-get install g++
* sudo apt-get install libusb-dev
* sudo apt-get install sdcc
* Xilinx ISE WebPACK (http://bit.ly/bRf82e)

*** MACOS PREREQUISITES ***

* XCode (http://bit.ly/apple-connect)
* LibUSB (http://bit.ly/libusb-macos)
* Wget (http://bit.ly/wget-macos)
Something went wrong with that request. Please try again.