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()
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()