Merge pull request #43 from felixheld/programmer-error-fix

fix the unsupported programmer case for kc705 and minispartan6
This commit is contained in:
enjoy-digital 2018-01-11 08:21:46 +01:00 committed by GitHub
commit 7b6ba372c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -496,7 +496,8 @@ set_property CONFIG_VOLTAGE 2.5 [current_design]
elif self.programmer == "impact":
return iMPACT()
else:
raise ValueError("{} programmer is not supported".format(programmer))
raise ValueError("{} programmer is not supported".format(
self.programmer))
def do_finalize(self, fragment):
XilinxPlatform.do_finalize(self, fragment)

View File

@ -123,4 +123,5 @@ class Platform(XilinxPlatform):
elif self.programmer == "fpgaprog":
return FpgaProg()
else:
raise ValueError("{} programmer is not supported".format(programmer))
raise ValueError("{} programmer is not supported".format(
self.programmer))