def create_programmer(self): if self.programmer == "xc3sprog": return XC3SProg("minispartan6", "bscan_spi_minispartan6.bit") elif self.programmer == "fpgaprog": return FpgaProg() else: raise ValueError("{} programmer is not supported".format(programmer))
def create_programmer(self): proxy="bscan_spi_{}.bit".format(self.device.split('-')[0]) if self.programmer == "openocd": return OpenOCD(config="board/minispartan6.cfg", flash_proxy_basename=proxy) # Alternative programmers - not regularly tested. elif self.programmer == "xc3sprog": return XC3SProg("minispartan6", proxy) elif self.programmer == "fpgaprog": return FpgaProg() else: raise ValueError("{} programmer is not supported".format(self.programmer))
def create_programmer(self): proxy = "bscan_spi_{}.bit".format(self.device.split('-')[0]) if self.programmer == "openocd": return OpenOCD(config="board/pipistrello.cfg", flash_proxy_basename=proxy) # Alternative programmers - not regularly tested. elif self.programmer == "xc3sprog": return XC3SProg("papilio", "bscan_spi_lx45_csg324.bit") else: raise ValueError("{} programmer is not supported".format( self.programmer))
def create_programmer(self): return XC3SProg(cable="ftdi")
def create_programmer(self): return XC3SProg("papilio", "bscan_spi_lx9_papilio.bit")