def abstraction_fcty(handle) : 'Abstraction factory - return memory or signal on handle type' if vpi.vpi_get(vpi.vpiType, handle) == vpi.vpiMemory : return memory(handle) return signal(handle)
def vector(self) : return vpi.vpi_get(vpi.vpiVector, self.handle)
def size(self) : result = vpi.vpi_get(vpi.vpiSize, self.handle) self.vpi_chk_error = vpiChkError() return result
def scalar(self) : return vpi.vpi_get(vpi.vpiScalar, self.handle)