def set_value(self, value, format=None) : try : value.put(self) return except AttributeError : pass if format : self.set_format(format) self.encode(value) vpi.vpi_put_value(self.handle, self.vpi_value, None, vpi.vpiNoDelay) self.vpi_chk_error = vpiChkError()
def put(self, signal) : vpi.vpi_put_value(signal.handle, self.vpi_value, None, vpi.vpiNoDelay) self.vpi_chk_error = vpiChkError() return self