adding support for XC2C64A-xVQ44 with ID 0x06e5e093 (#458)

* adding support for XC2C64A-xVQ44

* remove comment
This commit is contained in:
Michael Schenk
2024-05-19 17:13:16 +02:00
committed by GitHub
parent 0ab549666a
commit 6e85edaa9a
3 changed files with 5 additions and 1 deletions
+3
View File
@@ -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) {