makestuff / libfpgalink

LIB:Library for interacting with an FPGA over USB
https://github.com/makestuff/libfpgalink/wiki/FPGALink
GNU Lesser General Public License v3.0
82 stars 25 forks source link

Add a C utility offering a command-line interface to the library #15

Closed makestuff closed 12 years ago

makestuff commented 13 years ago

It would be useful to have a small utility that can do firmware writes, XSVF uploads and basic register reads and writes:

chris@wotan$ fl --ivp 04b4:8613 --vp fffe:0101 --xsvf foo.xsvf --console
fl> w 00 392f6e23fe
fl> r 00 20
00000000 8F 5D D2 01 57 50 35 34 66 28 AD 01 C1 81 C6 16 .]..WP54f(......
00000010 34 04 AF B2 25 C8 74 F4 80 6D 50 2E D3 F9 5D 9D 4...%.t..mP...].
fl> r 00 20 out.dat
fl> w 00 out.dat
fl> q
chris@wotan$ ls -la out.dat 
-rw-r--r-- 1 chris chris 32 2011-08-11 10:34 out.dat
chris@wotan$