class DigilentAdeptSvfProgrammer(XilinxProgrammer): def __init__(self, cfg_manager, xilinx_board_type): super(DigilentAdeptSvfProgrammer, self).__init__(cfg_manager, xilinx_board_type) self._digilent_adept = DigilentAdept(cfg_manager) @Override(XilinxProgrammer) def program(self, file_name): # self._xilinx_impact_device.source2svf(file_name) # svf_file_name = file_name.replace("."+self._xilinx_impact_device.get_suffix(), ".svf") # self._digilent_adept.program_device(svf_file_name) self._digilent_adept.program_device(file_name) @Override(XilinxProgrammer) def get_suffix(self): if self._xilinx_board_type == 'FPGA': return ".bit" else: return ".jed"
def __init__(self, cfg_manager, xilinx_board_type): super(DigilentAdeptSvfProgrammer, self).__init__(cfg_manager, xilinx_board_type) self._digilent_adept = DigilentAdept(cfg_manager)