hwt/hdl/types/bitsVal.py
def _convSign(self, signed):
        """
        Convert signum, no bit manipulation just data are represented
        differently

        :param signed: if True value will be signed,
            if False value will be unsigned,
            if None value will be vector without any sign specification
        """
        if isinstance(self, Value):
            return self._convSign__val(signed)
        else:
            if self._dtype.signed == signed:
                return self
            t = copy(self._dtype)
            t.signed = signed
            if signed is None:
                cnv = AllOps.BitsAsVec
            elif signed:
                cnv = AllOps.BitsAsSigned
            else:
                cnv = AllOps.BitsAsUnsigned

            return Operator.withRes(cnv, [self], t)
def _convSign(self, signed):
        if isinstance(self, Value):
            return self._convSign__val(signed)
        else:
            if self._dtype.signed == signed:
                return self
            t = copy(self._dtype)
            t.signed = signed
            if signed is None:
                cnv = AllOps.BitsAsVec
            elif signed:
                cnv = AllOps.BitsAsSigned
            else:
                cnv = AllOps.BitsAsUnsigned

            return Operator.withRes(cnv, [self], t)
def _convSign ( self , signed ) : if isinstance ( self , Value ) : return self . _convSign__val ( signed ) else : if self . _dtype . signed == signed : return self t = copy ( self . _dtype ) t . signed = signed if signed is None : cnv = AllOps . BitsAsVec elif signed : cnv = AllOps . BitsAsSigned else : cnv = AllOps . BitsAsUnsigned return Operator . withRes ( cnv , [ self ] , t )
Convert signum, no bit manipulation just data are represented
        differently

        :param signed: if True value will be signed,
            if False value will be unsigned,
            if None value will be vector without any sign specification
Convert signum no bit manipulation just data are represented differently