add support for ice40 FPGA and iCEBreaker, icestick, iCE40-HX8K, iCE40-HX1K-EVN boards

This commit is contained in:
Gwenhael Goavec-Merou
2020-10-31 15:02:54 +01:00
parent 66ecf3e5c0
commit 14c5b8e681
6 changed files with 189 additions and 1 deletions
+5
View File
@@ -33,6 +33,7 @@
#include "efinix.hpp"
#include "ftdispi.hpp"
#include "gowin.hpp"
#include "ice40.hpp"
#include "lattice.hpp"
#include "jtag.hpp"
#include "part.hpp"
@@ -163,6 +164,10 @@ int main(int argc, char **argv)
Efinix target(spi, args.bit_file, board->reset_pin, board->done_pin,
args.verbose);
target.program(args.offset);
} else if (board->manufacturer == "lattice") {
Ice40 target(spi, args.bit_file, board->reset_pin, board->done_pin,
args.verbose);
target.program(args.offset);
} else {
RawParser *bit = NULL;
if (board->reset_pin) {