2021-12-10 12:12:32 +01:00
.. _colognechip:
Cologne Chip notes
##################
Supported Boards/Cables
=======================
2021-12-10 12:41:33 +01:00
* GateMate Evaluation Board using board parameters `` -b gatemate_evb_jtag `` or `` -b gatemate_evb_spi ``
* GateMate Programmer using cable parameter `` -c gatemate_pgm ``
2021-12-10 12:12:32 +01:00
Programming Modes
=================
2021-12-10 12:41:33 +01:00
Supported configuration files are bitfiles `` *.bit `` and it's ASCII equivalents `` *.cfg `` .
2021-12-10 12:12:32 +01:00
JTAG Configuration
------------------
2021-12-10 12:41:33 +01:00
Performs an active hardware reset and writes the configuration into the FPGA latches via JTAG. The configuration mode pins `` CFG_MD[3:0] `` must be set to 0xF0 (JTAG).
2021-12-10 12:12:32 +01:00
2021-12-10 12:41:33 +01:00
1. Program using Evaluation Board:
.. code-block :: bash
2021-12-10 12:12:32 +01:00
openFPGALoader -b gatemate_evb_jtag <bitfile>.cfg.bit
2021-12-10 12:41:33 +01:00
2. Program using Programmer Cable:
.. code-block :: bash
2021-12-10 12:12:32 +01:00
openFPGALoader -c gatemate_pgm <bitfile>.cfg.bit
SPI Configuration
-----------------
2021-12-10 12:41:33 +01:00
Performs an active hardware reset and writes the configuration into the FPGA latches via SPI. The configuration mode pins `` CFG_MD[3:0] `` must be set to 0x40 (SPI passive).
1. Program using Evaluation Board:
2021-12-10 12:12:32 +01:00
2021-12-10 12:41:33 +01:00
.. code-block :: bash
2021-12-10 12:12:32 +01:00
openFPGALoader -b gatemate_evb_spi <bitfile>.cfg.bit
2021-12-10 12:41:33 +01:00
2. Program using Programmer Cable:
.. code-block :: bash
2021-12-10 12:12:32 +01:00
openFPGALoader -b gatemate_pgm_spi <bitfile>.cfg.bit
JTAG Flash Access
-----------------
2021-12-10 12:41:33 +01:00
It is possible to access external flashes via the internal JTAG-SPI-bypass. The configuration mode pins `` CFG_MD[3:0] `` must be set to 0xF0 (JTAG). Note that the FPGA will not start automatically.
1. Write to flash using Evaluation Board:
2021-12-10 12:12:32 +01:00
2021-12-10 12:41:33 +01:00
.. code-block :: bash
2021-12-10 12:12:32 +01:00
openFPGALoader -b gatemate_evb_jtag <bitfile>.cfg.bit
2021-12-10 12:41:33 +01:00
2. Write to flash using Programmer Cable:
.. code-block :: bash
2021-12-10 12:12:32 +01:00
openFPGALoader -c gatemate_pgm -f <bitfile>.cfg.bit
The `offset` parameter can be used to store data at any point in the flash, e.g.:
2021-12-10 12:41:33 +01:00
.. code-block :: bash
2021-12-10 12:12:32 +01:00
openFPGALoader -b gatemate_evb_jtag -o <offset> <bitfile>.cfg.bit
SPI Flash Access
----------------
2021-12-10 12:41:33 +01:00
If the programming device and FPGA share the same SPI signals, it is possible to hold the FPGA in reset and write data to the flash. The configuration mode can be set as desired. If the FPGA should start from the external memory after reset, the configuration mode pins `` CFG_MD[3:0] `` set to 0x00 (SPI active).
1. Write to flash using Evaluation Board:
2021-12-10 12:12:32 +01:00
2021-12-10 12:41:33 +01:00
.. code-block :: bash
2021-12-10 12:12:32 +01:00
openFPGALoader -b gatemate_evb_spi -f <bitfile>.cfg.bit
2021-12-10 12:41:33 +01:00
2. Write to flash using Programmer Cable:
.. code-block :: bash
2021-12-10 12:12:32 +01:00
openFPGALoader -b gatemate_pgm_spi -f <bitfile>.cfg.bit
The `offset` parameter can be used to store data at any point in the flash, e.g.:
2021-12-10 12:41:33 +01:00
.. code-block :: bash
2021-12-10 12:12:32 +01:00
openFPGALoader -b gatemate_evb_spi -o <offset> <bitfile>.cfg.bit