示例#1
0
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"
示例#2
0
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"
示例#3
0
 def __init__(self, cfg_manager, xilinx_board_type):
     super(DigilentAdeptSvfProgrammer,
           self).__init__(cfg_manager, xilinx_board_type)
     self._digilent_adept = DigilentAdept(cfg_manager)
示例#4
0
 def __init__(self, cfg_manager, xilinx_board_type):
     super(DigilentAdeptSvfProgrammer, self).__init__(cfg_manager, xilinx_board_type)
     self._digilent_adept = DigilentAdept(cfg_manager)