fix part order family/model
This commit is contained in:
parent
3420e14682
commit
1ab5b9b4c1
6
main.cpp
6
main.cpp
|
|
@ -118,13 +118,13 @@ int main(int argc, char **argv)
|
||||||
cerr << "Error: device " << hex << idcode << " not supported" << endl;
|
cerr << "Error: device " << hex << idcode << " not supported" << endl;
|
||||||
return 1;
|
return 1;
|
||||||
} else if (args.verbose) {
|
} else if (args.verbose) {
|
||||||
printf("idcode 0x%x\nfunder %s\nmodel %s\nfamily %s\n",
|
printf("idcode 0x%x\nmanufacturer %s\nmodel %s\nfamily %s\n",
|
||||||
idcode,
|
idcode,
|
||||||
fpga_list[idcode].funder.c_str(),
|
fpga_list[idcode].manufacturer.c_str(),
|
||||||
fpga_list[idcode].model.c_str(),
|
fpga_list[idcode].model.c_str(),
|
||||||
fpga_list[idcode].family.c_str());
|
fpga_list[idcode].family.c_str());
|
||||||
}
|
}
|
||||||
string fab = fpga_list[idcode].funder;
|
string fab = fpga_list[idcode].manufacturer;
|
||||||
|
|
||||||
Device *fpga;
|
Device *fpga;
|
||||||
if (fab == "xilinx") {
|
if (fab == "xilinx") {
|
||||||
|
|
|
||||||
6
part.hpp
6
part.hpp
|
|
@ -5,16 +5,16 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
std::string funder;
|
std::string manufacturer;
|
||||||
std::string model;
|
|
||||||
std::string family;
|
std::string family;
|
||||||
|
std::string model;
|
||||||
} fpga_model;
|
} fpga_model;
|
||||||
|
|
||||||
static std::map <int, fpga_model> fpga_list = {
|
static std::map <int, fpga_model> fpga_list = {
|
||||||
{0x0362D093, {"xilinx", "artix a7 35t", "xc7a35"}},
|
{0x0362D093, {"xilinx", "artix a7 35t", "xc7a35"}},
|
||||||
{0x020f30dd, {"altera", "cyclone 10 LP", "10CL025"}},
|
{0x020f30dd, {"altera", "cyclone 10 LP", "10CL025"}},
|
||||||
{0x612bd043, {"lattice", "MachXO3LF", "LCMX03LF-6900C"}},
|
{0x612bd043, {"lattice", "MachXO3LF", "LCMX03LF-6900C"}},
|
||||||
{0x1100581b, {"Gowin", "GW1NR-9", "GW1N"}},
|
{0x1100581b, {"Gowin", "GW1N", "GW1NR-9"}},
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue