Skip to content

Commit

Permalink
adding support for XC2C64A-xVQ44 with ID 0x06e5e093 (#458)
Browse files Browse the repository at this point in the history
* adding support for XC2C64A-xVQ44

* remove comment
  • Loading branch information
schenkmi committed May 19, 2024
1 parent 0ab5496 commit 6e85eda
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/part.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ static std::map <uint32_t, fpga_model> fpga_list = {

/* Xilinx XC2 */
{0x06e5d093, {"xilinx", "xc2c", "xc2c64a", 8}},
{0x06e5e093, {"xilinx", "xc2c", "xc2c64a", 8}},
{0x06e1c093, {"xilinx", "xc2c", "xc2c32a", 8}},

/* Xilinx XC9 */
Expand Down
3 changes: 3 additions & 0 deletions src/xilinx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1707,6 +1707,9 @@ void Xilinx::xc2c_init(uint32_t idcode)
_fpga_family = XC2C_FAMILY;
std::string model = fpga_list[idcode].model;
int underscore_pos = model.find_first_of('_', 0);
if (underscore_pos == model.npos) {
underscore_pos = model.length();
}
snprintf(_cpld_base_name, underscore_pos,
"%s", model.substr(0, underscore_pos).c_str());
switch ((idcode >> 16) & 0x3f) {
Expand Down
2 changes: 1 addition & 1 deletion src/xilinx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class Xilinx: public Device, SPIInterface {
uint16_t _cpld_nb_row; /**< number of flash rows */
uint16_t _cpld_nb_col; /**< number of cols in a row */
uint16_t _cpld_addr_size; /**< number of addr bits */
char _cpld_base_name[7]; /**< cpld name (without package size) */
char _cpld_base_name[8]; /**< cpld name (without package size) */
int _irlen; /**< IR bit length */
std::map<std::string, std::vector<uint8_t>> _ircode_map; /**< bscan instructions based on model */
std::string _secondary_filename; /* path to the secondary flash file (SPIx8) */
Expand Down

0 comments on commit 6e85eda

Please sign in to comment.