예제 #1
0
 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()
예제 #2
0
 def put(self, signal) :
   vpi.vpi_put_value(signal.handle, self.vpi_value, None, vpi.vpiNoDelay)
   self.vpi_chk_error = vpiChkError()
   return self