From 23585385c0e9e2d4be604d15e4309dd1f21129c3 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Thu, 11 Jan 2018 18:00:59 +1100 Subject: [PATCH] fix the unsupported programmer case for kc705 and minispartan6 --- litex/boards/platforms/kc705.py | 3 ++- litex/boards/platforms/minispartan6.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/litex/boards/platforms/kc705.py b/litex/boards/platforms/kc705.py index fdac88533..889c57430 100644 --- a/litex/boards/platforms/kc705.py +++ b/litex/boards/platforms/kc705.py @@ -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) diff --git a/litex/boards/platforms/minispartan6.py b/litex/boards/platforms/minispartan6.py index 681786f85..d22e9553a 100644 --- a/litex/boards/platforms/minispartan6.py +++ b/litex/boards/platforms/minispartan6.py @@ -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))