Create a Literal value
Create a Literal value
force the width of the Literal
can be:
is a string representing the number
Creates a Literal instance from a scala string.
Creates a Literal instance from a scala string. The first character of the string indicates the base for the suffix characters. base can be:
Creates a *Literal* instance from a scala integer.
Derive the bit length for a Literal
Parse a binary string with don't cares as '?'
Parse a binary string with don't cares as '?'
input binary string
a tuple of (bits, mask, width) bits is the string with '?' replaced with '0' mask is '0' for all '?' in the string but '1' otherwise width is the number of bits
remove all underscores from a string
Get the number of bits in x
Convert a string to a BigInt
Convert a string to a BigInt
is:
Convert a binary string to hex
Convert 4 chars in a binary string to a hex char starting at 'off'
convert a string to a BigInt with base shamt
Convert a hex string to a BigInt