fix the unsupported programmer case for kc705 and minispartan6
authorFelix Held <felix-github@felixheld.de>
Thu, 11 Jan 2018 07:00:59 +0000 (18:00 +1100)
committerFelix Held <felix-github@felixheld.de>
Thu, 11 Jan 2018 07:15:11 +0000 (18:15 +1100)
litex/boards/platforms/kc705.py
litex/boards/platforms/minispartan6.py

index fdac88533877ba73cd2b0976ee70eef4311cb3b5..889c5743016532bccd0a3bb87796eada1b332855 100644 (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)
index 681786f85ef266a3a60222dda89567c5eee9d174..d22e9553a82dd502e9831eef37f0845cffaf69c6 100644 (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))