Пример #1
0
class JTagBlazerSvfProgrammer(XilinxProgrammer):
    """
    Note Sept 2015: This class may no longer work. Originally it relied on Xilinx Impact, for some reason.
    Maybe it's just because Impact is needed to convert to SVF or whatever that is, but the programming itself is
    still handled by JTag.
    """
    def __init__(self, cfg_manager, xilinx_board_type):
        super(JTagBlazerSvfProgrammer, self).__init__(cfg_manager,
                                                      xilinx_board_type)
        self._jtag_blazer = JTagBlazer(cfg_manager)
        self._device_ip = self._cfg_manager.get_value(
            'xilinx_jtag_blazer_device_ip')

    @Override(XilinxProgrammer)
    def program(self, file_name):
        raise Exception("JTAG IS SOMEWHAT DEPRECATED")
        # self._xilinx_impact_device.source2svf(file_name)
        svf_file_name = file_name.replace(
            "." + self._xilinx_impact_device.get_suffix(), ".svf")
        self._jtag_blazer.program_device(svf_file_name, self._device_ip)

    @Override(XilinxProgrammer)
    def get_suffix(self):
        if self._xilinx_board_type == 'FPGA':
            return ".bit"
        else:
            return ".jed"
Пример #2
0
class JTagBlazerSvfProgrammer(XilinxProgrammer):
    """
    Note Sept 2015: This class may no longer work. Originally it relied on Xilinx Impact, for some reason.
    Maybe it's just because Impact is needed to convert to SVF or whatever that is, but the programming itself is
    still handled by JTag.
    """

    def __init__(self, cfg_manager, xilinx_board_type):
        super(JTagBlazerSvfProgrammer, self).__init__(cfg_manager, xilinx_board_type)
        self._jtag_blazer = JTagBlazer(cfg_manager)
        self._device_ip = self._cfg_manager.get_value('xilinx_jtag_blazer_device_ip')

    @Override(XilinxProgrammer)
    def program(self, file_name):
        raise Exception("JTAG IS SOMEWHAT DEPRECATED")
        # self._xilinx_impact_device.source2svf(file_name)
        svf_file_name = file_name.replace("."+self._xilinx_impact_device.get_suffix(), ".svf")
        self._jtag_blazer.program_device(svf_file_name, self._device_ip)


    @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(JTagBlazerSvfProgrammer, self).__init__(cfg_manager,
                                                   xilinx_board_type)
     self._jtag_blazer = JTagBlazer(cfg_manager)
     self._device_ip = self._cfg_manager.get_value(
         'xilinx_jtag_blazer_device_ip')
Пример #4
0
 def __init__(self, cfg_manager, xilinx_board_type):
     super(JTagBlazerSvfProgrammer, self).__init__(cfg_manager, xilinx_board_type)
     self._jtag_blazer = JTagBlazer(cfg_manager)
     self._device_ip = self._cfg_manager.get_value('xilinx_jtag_blazer_device_ip')