From fac003bbf9e7ccb30bf56a13fe3a37cd6cd0fedd Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 13 Oct 2023 09:26:52 +0200 Subject: [PATCH] build/openfpgaloader/flash: Add verify capability. --- litex/build/openfpgaloader.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litex/build/openfpgaloader.py b/litex/build/openfpgaloader.py index abaf12d74..3b201fb9e 100644 --- a/litex/build/openfpgaloader.py +++ b/litex/build/openfpgaloader.py @@ -29,11 +29,13 @@ class OpenFPGALoader(GenericProgrammer): cmd = self.cmd + ["--bitstream", bitstream_file] self.call(cmd) - def flash(self, address, data_file, external=False): + def flash(self, address, data_file, external=False, verify=False): cmd = self.cmd + ["--write-flash", "--bitstream", data_file] if external: cmd += ["--external-flash"] if address: cmd += ["--offset"] cmd += [str(address)] + if verify: + cmd += ["--verify"] self.call(cmd)