def create_programmer(self): if self.programmer == "vivado": return VivadoProgrammer() elif self.programmer == "impact": return iMPACT() else: raise ValueError( "{} programmer is not supported".format(programmer))
def create_programmer(self): if self.programmer == "xc3sprog": return XC3SProg("jtaghs1_fast", "bscan_spi_kc705.bit") elif self.programmer == "vivado": return VivadoProgrammer() elif self.programmer == "impact": return iMPACT() else: raise ValueError("{} programmer is not supported".format(programmer))