boards/platforms/kc705: provide only one default programmer as others platforms
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 23 Apr 2019 08:00:52 +0000 (10:00 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 23 Apr 2019 08:00:52 +0000 (10:00 +0200)
litex/boards/platforms/kc705.py

index fe6ca70b9a4f16b9330f05cf8338ddf4d12ccd07..65840922f7ad6cb5625fa435d6af79b50b8d15c6 100644 (file)
@@ -539,12 +539,7 @@ set_property CONFIG_VOLTAGE 2.5 [current_design]
         self.toolchain.additional_commands = ["write_cfgmem -force -format bin -interface spix4 -size 16 -loadbit \"up 0x0 {build_name}.bit\" -file {build_name}.bin"]
 
     def create_programmer(self):
-        if self.programmer == "xc3sprog":
-            return XC3SProg("jtaghs1_fast", "bscan_spi_kc705.bit")
-        elif self.programmer == "vivado":
-            return VivadoProgrammer()
-        else:
-            raise ValueError("{} programmer is not supported".format(programmer))
+        return VivadoProgrammer()
 
     def do_finalize(self, fragment):
         XilinxPlatform.do_finalize(self, fragment)