Ejemplo n.º 1
0
 def __init__(self):
     super(DALHelper, self).__init__()
     self.base = itpii.baseaccess()
     if logger().DEBUG:
         logger().log('[helper] DAL Helper')
     if not len(self.base.threads):
         logger().log('[helper] No threads detected!  DAL Helper will fail to load!')
     elif self.base.threads[self.find_thread()].cv.isrunning:
         SYSTEM_HALTED = False
         self.base.halt()
     self.os_system  = '(Via Intel DAL)'
     self.os_release = '(N/A)'
     self.os_version = self.dal_version()
     self.os_machine = self.target_machine()
Ejemplo n.º 2
0
 def __init__(self):
     super(DALHelper, self).__init__()
     self.base = itpii.baseaccess()
     if logger().VERBOSE:
         logger().log("[helper] DAL Helper")
     if not len(self.base.threads):
         logger().log(
             "[helper] No threads detected!  DAL Helper will fail to load!")
     elif self.base.threads[self.find_thread()].cv.isrunning:
         self.base.halt()
     self.os_system = "(Via Intel DAL)"
     self.os_release = "(N/A)"
     self.os_version = self.dal_version()
     self.os_machine = self.target_machine()
Ejemplo n.º 3
0
 def __init__(self):
     super(DALHelper, self).__init__()
     self.base = itpii.baseaccess()
     if logger().DEBUG:
         logger().log('[helper] DAL Helper')
     if not len(self.base.threads):
         logger().log('[helper] No threads detected!  DAL Helper will fail to load!')
     elif self.base.threads[self.find_thread()].cv.isrunning:
         SYSTEM_HALTED = False
         self.base.halt()
     self.os_system  = '(Via Intel DAL)'
     self.os_release = '(N/A)'
     self.os_version = self.dal_version()
     self.os_machine = self.target_machine()
Ejemplo n.º 4
0
    def __new__(cls, *args, **kwargs):
        if not cls._instanceInvokeITP:
            msg = ''
            cls._instanceInvokeITP = super(InvokeITP, cls).__new__(cls)
            cls._log = args[0]
            try:
                itp = itpii.baseaccess()
                if not itp is None and len(itp.devicelist) > 0:
                    cls._logInfo('Initial IPT success\n')
                    cls._itp = itp
                    cls._itpMutex = Lock()
                else:
                    raise Exception('Failed to initialize ITP.\n')
            except Exception as e:
                # print(str(e))
                cls._logInfo(str(e))

        return cls._instanceInvokeITP
Ejemplo n.º 5
0
import itpii
from itpii.datatypes import BitData
itp = itpii.baseaccess()
import time


class skl_drng:
    #class gen_drng:
    def __init__(self, chip="SKL"):
        self.chips = ['CHV', 'SKL']
        if chip in self.chips:
            pass
        else:
            print "Error, chip %d not supported"
            print "Using CHV instead"
            self.chip = "CHV"
        self.partno = 0
        self.opmodenames = [
            'normal', 'raw_bypass', 'deterministic_lfsr',
            'deterministic_nines', 'raw_to_ob', 'PSMI', 'cheap_reset',
            'no_bist', 'JFW'
        ]
        self.chip = chip
        self.clockcount = 0
        if self.chip == "CHV":
            self.addr_getdata = 0x10
            self.addr_status = 0x14
            self.addr_config = 0x34
            self.addr_tpin = 0x38
            self.addr_tpout = 0x3c
            self.addr_esconfig = 0x40