main: add lattice support
This commit is contained in:
parent
63bed1fd54
commit
d7a40fd5b0
5
main.cpp
5
main.cpp
|
|
@ -27,6 +27,7 @@
|
||||||
#include "board.hpp"
|
#include "board.hpp"
|
||||||
#include "cable.hpp"
|
#include "cable.hpp"
|
||||||
#include "device.hpp"
|
#include "device.hpp"
|
||||||
|
#include "lattice.hpp"
|
||||||
#include "ftdijtag.hpp"
|
#include "ftdijtag.hpp"
|
||||||
#include "part.hpp"
|
#include "part.hpp"
|
||||||
#include "xilinx.hpp"
|
#include "xilinx.hpp"
|
||||||
|
|
@ -120,8 +121,10 @@ int main(int argc, char **argv)
|
||||||
Device *fpga;
|
Device *fpga;
|
||||||
if (fab == "xilinx") {
|
if (fab == "xilinx") {
|
||||||
fpga = new Xilinx(jtag, args.bit_file);
|
fpga = new Xilinx(jtag, args.bit_file);
|
||||||
} else {
|
} else if (fab == "altera") {
|
||||||
fpga = new Altera(jtag, args.bit_file);
|
fpga = new Altera(jtag, args.bit_file);
|
||||||
|
} else {
|
||||||
|
fpga = new Lattice(jtag, args.bit_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
fpga->program(args.offset);
|
fpga->program(args.offset);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue