Esempio n. 1
0
 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))
Esempio n. 2
0
    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))
Esempio n. 3
0
    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")
Esempio n. 5
0
 def create_programmer(self):
     return XC3SProg("papilio", "bscan_spi_lx9_papilio.bit")