fix the unsupported programmer case for kc705 and minispartan6

This commit is contained in:
Felix Held 2018-01-11 18:00:59 +11:00
parent b2beec267b
commit 23585385c0
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))