fpgaprog
所属分类:VHDL/FPGA/Verilog
开发工具:C++
文件大小:48KB
下载次数:0
上传日期:2015-12-28 20:23:08
上 传 者:
sh-1993
说明: 用于编程Saanlima的Pipistrello板的实用程序
(Utility for programming the Pipistrello board from Saanlima)
文件列表:
Makefile (1409, 2015-12-29)
bitfile.cpp (7032, 2015-12-29)
bitfile.h (4561, 2015-12-29)
bscan_spi.bit (169310, 2015-12-29)
bscan_spi_lx45_csg324.bit (1484499, 2015-12-29)
bscan_spi_lx9_csg324.bit (340698, 2015-12-29)
bscan_spi_lx9_qfp144.bit (340698, 2015-12-29)
butterfly.cpp (11191, 2015-12-29)
config.h (833, 2015-12-29)
devicedb.cpp (3275, 2015-12-29)
devicedb.h (1526, 2015-12-29)
devlist.h (258, 2015-12-29)
io_exception.h (1072, 2015-12-29)
iobase.cpp (7346, 2015-12-29)
iobase.h (2495, 2015-12-29)
ioftdi.cpp (11833, 2015-12-29)
ioftdi.h (3200, 2015-12-29)
jtag.cpp (3588, 2015-12-29)
jtag.h (2735, 2015-12-29)
progalgspi.cpp (23981, 2015-12-29)
progalgspi.h (2822, 2015-12-29)
progalgxc3s.cpp (9321, 2015-12-29)
progalgxc3s.h (1729, 2015-12-29)
tools.cpp (1580, 2015-12-29)
tools.h (302, 2015-12-29)
# FPGAprog
Unofficial port of the `fpgaprog` utility to work on OSX, which can be used to
flash or load bit files to the Pipistrello board from Saanlima.
## Installation
You need to install both `libftdi` and `libusb-1.x`, for example, using
HomeBrew:
$ brew install libftdi libusb
Compilation is simply a matter of running `make`:
$ make
...
$ ls fpgaprog
fpgaprog
To flash bitfiles to the flash memory of your Pipistrello, you need to provide
the correct `bscan_spi` bit file. Copy the file `bscan_spi_lx45_csg324.bit` to
a place for later access.
For libftdi to work, you need to unload the FTDI serial driver that is loaded
automatically by OSX:
$ sudo kextunload -b com.FTDI.driver.FTDIUSBSerialDriver
## Usage
The `fpgaprog` program takes the following options:
-v Enable verbose output;
-j Detect JTAG chain, nothing else;
-d FTDI device name;
-f
Main bit file;
-b bscan_spi bit file (enables spi access via JTAG);
-s [e|v|p|a] SPI Flash options: e=Erase Only, v=Verify Only, p=Program Only or a=ALL (Default);
-c Display current status of FPGA;
-C Display STAT Register of FPGA;
-r Trigger a reconfiguration of FPGA;
-a : Append binary file at addr (in hex);
-A : Append binary file at addr, bit reversed.
To load (not flash) a bit file:
fpgaprog -v -f
To flash a bit file, you need to enable the SPI port to the flash chip through
the JTAG port:
fpgaprog -v -f -b path/to/bscan_spi_lx45_csg324.bit -sa -r
## License
The code is licensed under GPLv2. All modifications made by me (JaWi) are
licensed under GPLv2 as well.
## About
This code is based on the source code provided by Magnus Karlsson from Saanlima
and can be found here:
近期下载者:
相关文件:
收藏者: