pyslang.SVInt class

Static methods

def concat(arg0: span[SVInt], /) -> SVInt
def conditional(condition: SVInt, lhs: SVInt, rhs: SVInt) -> SVInt
def createFillX(bitWidth: int, isSigned: bool) -> SVInt
def createFillZ(bitWidth: int, isSigned: bool) -> SVInt
def fromDigits(bits: int, base: LiteralBase, isSigned: bool, anyUnknown: bool, digits: span[logic_t]) -> SVInt
def fromDouble(bits: int, value: float, isSigned: bool, round: bool = True) -> SVInt
def fromFloat(bits: int, value: float, isSigned: bool, round: bool = True) -> SVInt
def logicalEquiv(lhs: SVInt, rhs: SVInt) -> logic_t
def logicalImpl(lhs: SVInt, rhs: SVInt) -> logic_t

Methods

def ashr(self, rhs: SVInt) -> SVInt
def countLeadingOnes(self, /) -> int
def countLeadingUnknowns(self, /) -> int
def countLeadingZeros(self, /) -> int
def countLeadingZs(self, /) -> int
def countOnes(self, /) -> int
def countXs(self, /) -> int
def countZeros(self, /) -> int
def countZs(self, /) -> int
def extend(self, bits: int, isSigned: bool) -> SVInt
def flattenUnknowns(self, /) -> None
def getActiveBits(self, /) -> int
def getMinRepresentedBits(self, /) -> int
def isEven(self, /) -> bool
def isNegative(self, /) -> bool
def isOdd(self, /) -> bool
def isSignExtendedFrom(self, msb: int) -> bool
def lshr(self, rhs: SVInt) -> SVInt
def reductionAnd(self, /) -> logic_t
def reductionOr(self, /) -> logic_t
def reductionXor(self, /) -> logic_t
def replicate(self, times: SVInt) -> SVInt
def resize(self, bits: int) -> SVInt
def reverse(self, /) -> SVInt
def set(self, msb: int, lsb: int, value: SVInt) -> None
def setAllOnes(self, /) -> None
def setAllX(self, /) -> None
def setAllZ(self, /) -> None
def setAllZeros(self, /) -> None
def setSigned(self, isSigned: bool) -> None
def sext(self, bits: int) -> SVInt
def shl(self, rhs: SVInt) -> SVInt
def shrinkToFit(self, /) -> None
def signExtendFrom(self, msb: int) -> None
def slice(self, msb: int, lsb: int) -> SVInt
def toString(self, base: LiteralBase, includeBase: bool, abbreviateThresholdBits: int = 16777215) -> str
def trunc(self, bits: int) -> SVInt
def xnor(self, rhs: SVInt) -> SVInt
def zext(self, bits: int) -> SVInt

Special methods

def __add__(self, arg0: SVInt, /) -> SVInt
def __add__(self, arg0: int, /) -> SVInt
def __and__(self, arg0: SVInt, /) -> SVInt
def __and__(self, arg0: int, /) -> SVInt
def __bool__(self, /) -> bool
def __eq__(self, arg0: SVInt, /) -> logic_t
def __eq__(self, arg0: int, /) -> logic_t
def __float__(self, /) -> float
def __ge__(self, arg0: SVInt, /) -> logic_t
def __ge__(self, arg0: int, /) -> logic_t
def __getitem__(self, arg0: int, /) -> logic_t
def __gt__(self, arg0: SVInt, /) -> logic_t
def __gt__(self, arg0: int, /) -> logic_t
def __hash__(self, /) -> int
def __iadd__(self, arg0: SVInt, /) -> SVInt
def __iadd__(self, arg0: int, /) -> SVInt
def __iand__(self, arg0: SVInt, /) -> SVInt
def __iand__(self, arg0: int, /) -> SVInt
def __imod__(self, arg0: SVInt, /) -> SVInt
def __imod__(self, arg0: int, /) -> SVInt
def __imul__(self, arg0: SVInt, /) -> SVInt
def __imul__(self, arg0: int, /) -> SVInt
def __init__(self, /) -> None
def __init__(self, bit: logic_t) -> None
def __init__(self, bits: int, value: int, isSigned: bool) -> None
def __init__(…)
def __init__(self, str: str) -> None
def __init__(self, value: float) -> None
def __init__(self, value: int) -> None
def __int__(self, /) -> int
def __invert__(self, /) -> SVInt
def __ior__(self, arg0: SVInt, /) -> SVInt
def __ior__(self, arg0: int, /) -> SVInt
def __isub__(self, arg0: SVInt, /) -> SVInt
def __isub__(self, arg0: int, /) -> SVInt
def __itruediv__(self, arg0: SVInt, /) -> SVInt
def __itruediv__(self, arg0: int, /) -> SVInt
def __ixor__(self, arg0: SVInt, /) -> SVInt
def __ixor__(self, arg0: int, /) -> SVInt
def __le__(self, arg0: SVInt, /) -> logic_t
def __le__(self, arg0: int, /) -> logic_t
def __lt__(self, arg0: SVInt, /) -> logic_t
def __lt__(self, arg0: int, /) -> logic_t
def __mod__(self, arg0: SVInt, /) -> SVInt
def __mod__(self, arg0: int, /) -> SVInt
def __mul__(self, arg0: SVInt, /) -> SVInt
def __mul__(self, arg0: int, /) -> SVInt
def __ne__(self, arg0: SVInt, /) -> logic_t
def __ne__(self, arg0: int, /) -> logic_t
def __neg__(self, /) -> SVInt
def __or__(self, arg0: SVInt, /) -> SVInt
def __or__(self, arg0: int, /) -> SVInt
def __pow__(self, arg0: SVInt, /) -> SVInt
def __radd__(self, arg0: int, /) -> SVInt
def __rand__(self, arg0: int, /) -> SVInt
def __rdiv__(self, arg0: int, /) -> SVInt
def __repr__(self, /) -> str
def __rmod__(self, arg0: int, /) -> SVInt
def __rmul__(self, arg0: int, /) -> SVInt
def __ror__(self, arg0: int, /) -> SVInt
def __rsub__(self, arg0: int, /) -> SVInt
def __rxor__(self, arg0: int, /) -> SVInt
def __sub__(self, arg0: SVInt, /) -> SVInt
def __sub__(self, arg0: int, /) -> SVInt
def __truediv__(self, arg0: SVInt, /) -> SVInt
def __truediv__(self, arg0: int, /) -> SVInt
def __xor__(self, arg0: SVInt, /) -> SVInt
def __xor__(self, arg0: int, /) -> SVInt

Properties

bitWidth: int get
hasUnknown: bool get
isSigned: bool get