def __call__(self, source):
        """
        assign to signal which is next value of this register

        :return: list of assignments
        """
        if isinstance(source, InterfaceBase):
            source = source._sig

        if source is None:
            source = self._dtype.fromPy(None)
        else:
            source = toHVal(source)
            source = source._auto_cast(self._dtype)

        a = Assignment(source, self.next)

        return [a]
def __call__ ( self , source ) : if isinstance ( source , InterfaceBase ) : source = source . _sig if source is None : source = self . _dtype . fromPy ( None ) else : source = toHVal ( source ) source = source . _auto_cast ( self . _dtype ) a = Assignment ( source , self . next ) return [ a ]
assign to signal which is next value of this register

        :return: list of assignments