Exemplo n.º 1
0
 def __init__(self, value=None) :
   self.vpi_value        = vpi.s_vpi_value()
   self.vpi_value.format = self.vpi_type
   try :
     self.get(value)
   except AttributeError :
     self.encode(self.cast(value))
Exemplo n.º 2
0
 def __init__(self, handle, rtn=vpiVectorVal, val_type=None) :
   vpiObject.__init__(self, handle)
   self.type = val_type
   self.vpi_value = vpi.s_vpi_value()
   self.vpi_value.format = rtn