build/openfpgaloader/flash: Add verify capability.
This commit is contained in:
parent
16fcfb9d7e
commit
fac003bbf9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue