Ejemplo n.º 1
0
 def __init__(self, handle, path):
     """
         Args:
             _handle [integer] : vpi/vhpi handle to the simulator object
     """
     NonHierarchyIndexableObject.__init__(self, handle, path)
     self._r_edge = _RisingEdge(self)
     self._f_edge = _FallingEdge(self)
     self._e_edge = _Edge(self)
Ejemplo n.º 2
0
 def __init__(self, handle, path):
     """
         Args:
             _handle [integer] : vpi/vhpi handle to the simulator object
     """
     NonHierarchyIndexableObject.__init__(self, handle, path)
     self._r_edge = _RisingEdge(self)
     self._f_edge = _FallingEdge(self)
     self._e_edge = _Edge(self)
Ejemplo n.º 3
0
    def __init__(self, handle):
        """
            Args:
                _handle [integer] : vpi/vhpi handle to the simulator object
        """
        self._handle = handle           # handle used for future simulator transactions
        self._sub_handles = {}          # Dictionary of SimHandle objects created by getattr
        self._len = None

        self.name = simulator.get_name_string(self._handle)
        self.fullname = self.name + '(%s)' % simulator.get_type_string(self._handle)
        self.log = SimLog('cocotb.' + self.name)
        self.log.debug("Created!")
        self._edge = _RisingEdge(self)
Ejemplo n.º 4
0
    def __init__(self, handle):
        """
            Args:
                _handle [integer] : vpi/vhpi handle to the simulator object
        """
        self._handle = handle  # handle used for future simulator transactions
        self._sub_handles = {}  # Dict. of SimHandle objects created by getattr
        self._len = None

        self.name = simulator.get_name_string(self._handle)
        self.fullname = '%s(%s)' % (self.name,
                                    simulator.get_type_string(self._handle))
        self.log = SimLog('cocotb.' + self.name)
        self.log.debug("Created!")
        self._r_edge = _RisingEdge(self)
        self._f_edge = _FallingEdge(self)