main: fix typo and check if manufacturer is supported
This commit is contained in:
parent
47f866f0ac
commit
f4cc1dad73
8
main.cpp
8
main.cpp
|
|
@ -151,10 +151,14 @@ int main(int argc, char **argv)
|
|||
fpga = new Xilinx(jtag, args.bit_file, args.verbose);
|
||||
} else if (fab == "altera") {
|
||||
fpga = new Altera(jtag, args.bit_file, args.verbose);
|
||||
} else if (fab == "gowin") {
|
||||
} else if (fab == "Gowin") {
|
||||
fpga = new Gowin(jtag, args.bit_file, args.verbose);
|
||||
} else {
|
||||
} else if (fab == "lattice") {
|
||||
fpga = new Lattice(jtag, args.bit_file, args.verbose);
|
||||
} else {
|
||||
cerr << "Error: manufacturer " << fab << " not supported" << endl;
|
||||
delete(jtag);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
fpga->program(args.offset);
|
||||
|
|
|
|||
Loading…
Reference in New Issue