b3

BitCfg3 is HuMANDA's original FPGA configuration application.
BitCfg3 can configure the FPGA through USB interface using FTDI Bit-bang mode.

The source code is available to the public.

 


How to work

Here is How-to operate the BitCfg.
BitCfg uses a bitstream file (***.bit for XILINX, ***.rbf for Altera). The device configuration mode are below.

FPGA Vendor Altera XILINX
Config. mode Passive Serial Slave Serial
bitstream file format rbf bit

BitCfg recognizes "FPGA vendor" by extension of bitstream file.
For more details, please see the opened source code.It is not long code,so would be easy to understand.

This table is pin assignment of FTDI FT2232H and FPGA.

FT245 FT232 FT2232D FT2232H Direction XILINX Altera
Bit-Bang mode
Data0 TXD Data0(A/B) BDBUS0 (D0) OUT CCLK DCLK
Data1 RXD Data1(A/B) BDBUS1 (D1) OUT PROG nCONFIG
Data2 RTS Data2(A/B) BDBUS2 (D2) OUT DIN DATA0
Data3 CTS Data3(A/B) BDBUS3 (D3) IN DONE CONF_DONE
Data4 DTR Data4(A/B) BDBUS4 (D4)   -- --
Data5 DSR Data5(A/B) BDBUS5 (D5)   -- --
Data6 DCD Data6(A/B) BDBUS6 (D6)   -- --
Data7 RI Data7(A/B) BDBUS7 (D7)   -- --

The difference of configuration method between Altera and XILINX is bit transmit sequence.
When you send 0xAA, BitCfg send the data by 1010 1010 for XILINX, and by 0101 0101 for Altera.
After finishing transmit all data, you need to send extra CCLOK/DCLK until the FPGA starts its operation.

bitbangtimg


Application GUI.

bitcfg_pic2

Command line arguments.

BitCfg has three command line arguments.

(1) /D=
This argument sets FTDI chip's device description.
e.g. EDX-006) "/D=EDX-006 HuMANDATA B"
e.g. EDA-004) "/D=EDA-004 HuMANDATA B"

It means that you can use your original configuration hardware by setting this argument.

(2) /C=
e.g.) /C=1000000

This argument sets configuration rate.
BitCfg uses this value as parameter for FT_SetBaudRate(). So it is not CCLK /DCLK frequency.

(3) /F=
This argument sets the location of bitstream data used for FPGA configuration.
e.g. EDX-006) "/F=C:\ABC\DEF\conf_data.bit"
e.g. EDA-004) "/F=C:\ABC\DEF\conf_data.rbf"

If you set this argument, BitCfg starts configuration process immediately and ends its process.
Success termination code : 0
Error termination code : -1 (or others)

Please use the arguments in CAPITAL letter. They are not checked rigorously.
When you use the arguments, "/D=" is necessary.

 


BAT File Example

@echo off
start BitCfg /D="EDX-006 HuMANDATA B" /C=1000000
exit
@echo off
start BitCfg /D="EDX-006 HuMANDATA B" /C=1000000 /F="C:/AAA/BBB/test.bit"
exit
 

Download

You can download BitCfg here.html

BitCfg3 is free software.
Please use it at your own risk.

[]

Copyright © 2017-2024 HuMANDATA LTD. -  Altera (Intel) & AMD (Xilinx) FPGA Boards manufacturer in Japan - All Rights Reserved Sitemap