pyslang.ConstantValue class

Methods

def bitstreamWidth(self, /) -> int
def convertToByteArray(self, size: int, isSigned: bool) -> ConstantValue
def convertToByteQueue(self, isSigned: bool) -> ConstantValue
def convertToInt(self, /) -> ConstantValue
def convertToInt(self, width: int, isSigned: bool, isFourState: bool) -> ConstantValue
def convertToReal(self, /) -> ConstantValue
def convertToShortReal(self, /) -> ConstantValue
def convertToStr(self, /) -> ConstantValue
def empty(self, /) -> bool
def getSlice(self, upper: int, lower: int, defaultValue: ConstantValue) -> ConstantValue
def hasUnknown(self, /) -> bool
def isContainer(self, /) -> bool
def isFalse(self, /) -> bool
def isTrue(self, /) -> bool
def size(self, /) -> int

Special methods

def __bool__(self, /) -> bool
def __eq__(self, arg0: ConstantValue, /) -> bool
def __hash__(self, /) -> int
def __init__(self, /) -> None
def __init__(self, integer: SVInt) -> None
def __init__(self, str: str) -> None
def __init__(self, value: int) -> None
def __init__(self, value: float) -> None
def __ne__(self, arg0: ConstantValue, /) -> bool
def __repr__(self, /) -> str

Properties

value: object get