def METHOD_NAME(self, name='vivado'):
    if name == 'vivado':
        return VivadoProgrammer()
    elif name == 'openocd':
        bscan_spi = "bscan_spi_xc7a100t.bit"
        return OpenOCD("openocd_xc7_ft2232.cfg", bscan_spi)