def __init__(self, name, dtype, defVal=None, virtualOnly=False):
        """
        :param name: name for better orientation in netlists
            (used only in serialization)
        :param dtype: data type of this signal
        :param defVal: value for initialization
        :param virtualOnly: flag indicates that this assignments is only
            virtual and should not be added into
            netlist, because it is only for internal notation
        """
        self.name = name
        self._dtype = dtype
        self.virtualOnly = virtualOnly
        if defVal is None:
            defVal = dtype.fromPy(None)
        self.defVal = defVal
        self._setDefValue()
def __init__ ( self , name , dtype , defVal = None , virtualOnly = False ) : self . name = name self . _dtype = dtype self . virtualOnly = virtualOnly if defVal is None : defVal = dtype . fromPy ( None ) self . defVal = defVal self . _setDefValue ( )
:param name: name for better orientation in netlists
            (used only in serialization)
        :param dtype: data type of this signal
        :param defVal: value for initialization
        :param virtualOnly: flag indicates that this assignments is only
            virtual and should not be added into
            netlist, because it is only for internal notation