|
|
|
This page describes the configuration procedures for the supported FPGA boards (KX1, KX2, KC705).
|
|
|
|
|
|
|
|
#### General procedure
|
|
|
|
The Mercury KX2 board contains a USB-JTAG adapter. To use it, connect a USB 2.0 type B cable to the BDAQ53 base board. Drivers are included in Vivado (the driver can also be [(re)installed](https://www.xilinx.com/support/answers/59128.html) if necessary).
|
|
|
|
If you open the Vivado *hardware manager*, select *open target* and then *auto connect*, the target FPGA will show up.
|
|
|
|
|
|
|
|
Just like the KX2, the KC705 has an integrated JTAG adapter. Connect a Micro-USB cable to the connector in the front plate labeled "JTAG".
|
|
|
|
|
|
|
|
The Mercury KX1 requires an external JTAG adapter.
|
|
|
|
|
|
|
|
#### Temporary configuration
|
|
|
|
The FPGA can be configured directly via JTAG. In this case, the configuration will not be stored permanently and is lost when powering down the board.
|
|
|
|
|
|
|
|
#### Permanent configuration
|
|
|
|
In many cases it might be more convenient to store the firmware in the flash memory chip. The FPGA will then be configured automatically when powering up the board or after pressing the **FPGA_PROG** bush button.
|
|
|
|
|
|
|
|
1. Set the DAQ hardware to boot from SPI flash.
|
|
|
|
* **BDAQ53**: The solder jumper marked "FPGA_MODE" has to be shorted. It is located between the USB and the JTAG connector.
|
|
|
|

|
|
|
|
* **KC705**: Use the SW13 switch block to select the boot mode "QSPI". M0=ON, all the others=OFF.
|
|
|
|

|
|
|
|
|
|
|
|
2. Add the correct SPI flash memory device to the Vidado hardware manger by right-clicking the target FPGA and selecting **Add configuration memory**. For BDAQ53 (KX2) select **S25FL512S**, for USBPix3 (KX1) select **MT25QL256**, for KC705 select **MT25QL128** if you have a rev. 1.0 board or MR25QL256 for rev. C ([Xilinx Reference](https://www.xilinx.com/support/answers/50079.html)).
|
|
|
|
The memory device now shows up in the target list and you will be asked, if you want to assign a configuration file.
|
|
|
|

|
|
|
|
|
|
|
|
3. Assign a configuration file from the appropriate [tag](https://gitlab.cern.ch/silab/bdaq53/tags) and hit ok. .
|
|
|
|
The flash memory will now be configured. This takes a few seconds.
|
|
|
|
|
|
|
|
4. Power-cycle the board or press the FPGA_PROG button. |
|
|
\ No newline at end of file |