Skip to content

Commit

Permalink
gatemate: fix CFG_MD typos
Browse files Browse the repository at this point in the history
  • Loading branch information
pu-cc committed Mar 14, 2024
1 parent 2e5c35e commit 5bb8ce8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/colognechip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ void CologneChip::program(unsigned int offset, bool unprotect_flash)

/**
* Write configuration into FPGA latches via SPI after active reset.
* CFG_MD[3:0] must be set to 0x40 (SPI passive).
* CFG_MD[3:0] must be set to 0x4 (SPI passive).
*/
void CologneChip::programSPI_sram(const uint8_t *data, int length)
{
Expand All @@ -230,7 +230,7 @@ void CologneChip::programSPI_sram(const uint8_t *data, int length)
/**
* Write configuration to flash via SPI while FPGA is in active reset. When
* done, release reset to start FPGA in active SPI mode (load from flash).
* CFG_MD[3:0] must be set to 0x00 (SPI active).
* CFG_MD[3:0] must be set to 0x0 (SPI active).
*/
void CologneChip::programSPI_flash(unsigned int offset, const uint8_t *data,
int length, bool unprotect_flash)
Expand All @@ -257,7 +257,7 @@ void CologneChip::programSPI_flash(unsigned int offset, const uint8_t *data,

/**
* Write configuration into FPGA latches via JTAG after active reset.
* CFG_MD[3:0] must be set to 0xF0 (JTAG).
* CFG_MD[3:0] must be set to 0xC (JTAG).
*/
void CologneChip::programJTAG_sram(const uint8_t *data, int length)
{
Expand Down Expand Up @@ -318,7 +318,7 @@ void CologneChip::programJTAG_sram(const uint8_t *data, int length)

/**
* Write configuration to flash via JTAG-SPI-bypass. The FPGA will not start
* as it is in JTAG mode with CFG_MD[3:0] set to 0xF0 (JTAG).
* as it is in JTAG mode with CFG_MD[3:0] set to 0xC (JTAG).
*/
void CologneChip::programJTAG_flash(unsigned int offset, const uint8_t *data,
int length, bool unprotect_flash)
Expand Down

0 comments on commit 5bb8ce8

Please sign in to comment.