Remove self.programmer references in Mercury, as mercury programmer is not implemented.
authorWilliam D. Jones <thor0505@comcast.net>
Sun, 28 Jun 2015 15:06:46 +0000 (11:06 -0400)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Sun, 28 Jun 2015 16:06:50 +0000 (18:06 +0200)
mibuild/platforms/mercury.py

index fa294bcf8fff0d14583c86677f9d4645fae45b66..77a884bab7a8c363d9c14a94ba964741f073b468 100644 (file)
@@ -125,7 +125,7 @@ class Platform(XilinxPlatform):
     default_clk_name = "clk50"
     default_clk_period = 20
 
-    def __init__(self, device="xc3s200a-4-vq100", programmer="xc3sprog"):
+    def __init__(self, device="xc3s200a-4-vq100"):
         XilinxPlatform.__init__(self, device, _io, _connectors)
         # Small device- optimize for AREA instead of SPEED (LM32 runs at about
         # 60-65MHz in AREA configuration).
@@ -136,11 +136,3 @@ class Platform(XilinxPlatform):
 
     def create_programmer(self):
         raise NotImplementedError
-        # Not actually supported right now- add FT245RL support to xc3sprog.
-        # Alternatively, use the JTAG pins instead of USB with another
-        # supported programmer.
-        if self.programmer == "xc3sprog":
-            return XC3SProg("mercury", "bscan_spi_mercury.bit")
-        else:
-            raise ValueError("""{} programmer is not
- supported""".format(programmer))