main: list_boards with new fpga_vnd_list

This commit is contained in:
Gwenhael Goavec-Merou 2023-08-04 06:12:44 +02:00
parent 92d1c9aa55
commit 91ef2f18a0
1 changed files with 15 additions and 9 deletions

View File

@ -1009,16 +1009,22 @@ void displaySupported(const struct arguments &args)
} }
if (args.list_boards) { if (args.list_boards) {
stringstream t; for (auto &&vendor: fpga_vnd_list) {
t << setw(25) << left << "board name" << "cable_name"; stringstream t;
printSuccess(t.str()); t << setw(12) << left << "IDCode" << setw(14) << "manufacturer";
for (auto b = board_list.begin(); b != board_list.end(); b++) { t << setw(16) << "family" << setw(20) << "model";
stringstream ss; printSuccess(t.str());
target_board_t c = (*b).second; for (auto &&part: vendor.second) {
ss << setw(25) << left << (*b).first << c.cable_name; fpga_model fpga = part.second;
printInfo(ss.str()); stringstream ss, idCode;
idCode << "0x" << hex << setw(8) << setfill('0') << part.first;
ss << setw(12) << left << idCode.str();
ss << setw(14) << fpga.manufacturer << setw(16) << fpga.family;
ss << setw(20) << fpga.model;
printInfo(ss.str());
}
cout << endl;
} }
cout << endl;
} }
if (args.list_fpga) { if (args.list_fpga) {