flash-arty: Support Nexys Video's a200
authorJoel Stanley <joel@jms.id.au>
Tue, 9 Jun 2020 00:42:42 +0000 (10:12 +0930)
committerJoel Stanley <joel@jms.id.au>
Tue, 9 Jun 2020 01:57:59 +0000 (11:27 +0930)
Not an Arty but Anton tests on this board.

Signed-off-by: Joel Stanley <joel@jms.id.au>
openocd/bscan_spi_xc7a200t.bit [new file with mode: 0644]
openocd/flash-arty

diff --git a/openocd/bscan_spi_xc7a200t.bit b/openocd/bscan_spi_xc7a200t.bit
new file mode 100644 (file)
index 0000000..fe90d9b
Binary files /dev/null and b/openocd/bscan_spi_xc7a200t.bit differ
index 430aaa5a088704eafb0a00449383ed49d6185671..4e848f64e3aae4ffc7143cf8b70cd2f36ea9dc9f 100755 (executable)
@@ -23,7 +23,7 @@ def flash(config, flash_proxy, address, data, filetype="", set_qe=False):
 parser = argparse.ArgumentParser()
 parser.add_argument("file", help="file to write to flash")
 parser.add_argument("-a", "--address", help="offset in flash", type=lambda x: int(x,0), default=0)
-parser.add_argument("-f", "--fpga", help="a35 or a100", default="a35")
+parser.add_argument("-f", "--fpga", help="a35, a100 or a200", default="a35")
 parser.add_argument("-t", "--filetype", help="file type such as 'bin'", default="")
 args = parser.parse_args()
 
@@ -31,6 +31,8 @@ if args.fpga.lower() == "a35":
         proxy = "bscan_spi_xc7a35t.bit"
 elif args.fpga.lower() == "a100":
         proxy = "bscan_spi_xc7a100t.bit"
+elif args.fpga.lower() == "a200":
+        proxy = "bscan_spi_xc7a200t.bit"
 else:
     print("error: specify a35 or a100 when flashing")
     sys.exit()