Used to know the data type of the children class of BitVector
Modulo
Logical AND operator
Multiplication
Addition
Substraction
Division
Assign a range value to an UInt
Assign a range value to an UInt
The first range value
Others range values
core.io.interrupt = (0 -> uartCtrl.io.interrupt, 1 -> timerCtrl.io.interrupt, default -> false)
Is less than right
Logical shift Left (output width will increase of w(this) + max(that) bits
Logical left shift (w(T) = w(this) + shift)
Is equal or less than right
BitVector is not equal to MaskedLiteral
BitVector is not equal to MaskedLiteral
Compare a BitVector with a MaskedLiteral (M"110--0")
Compare a BitVector with a MaskedLiteral (M"110--0")
the maskedLiteral
a Bool data containing the result of the comparison
val myBool = myBits === M"0-1"
Is greater than right
Is equal or greater than right
Logical shift Right (output width = input width)
Logical shift Right (output width = input width)
the number of shift
a Bits of width : w(this)
val result = myUInt >> myUIntShift
Logical right shift (w(T) = w(this) - shift)
Append a Bool to an UInt
Concatenation between two UInt
Concatenation between two UInt
an UInt to append
a new UInt of width (w(this) + w(right))
val myUInt = uInt1 @@ uInt2
Logical XOR operator
Logical AND of all bits
Logical AND of all bits
Return a range of bits at offset and of width bitCount
Return a range of bits at offset and of width bitCount
Return the bit at index bitId
Return the bit at index bitId
Return a range of bits
Return a range of bits
val myBool = myBits(3 downto 1)
Return a range of bits form hi index to lo index
Return a range of bits form hi index to lo index
val myBool = myBits(3, 1)
Cast the BitVector into a Vector of Bool
Cast an UInt to a SInt
Cast an UInt to a SInt
a SInt data
mySInt := myUInt.asSInt
Assign a mask to the output signal
Assign a mask to the output signal
masked litteral value
output4 assignMask M"1111
Clear all bits
Clear all bits
Return the width
Return the width
Return the upper bound
Return the upper bound
Return the least significant bit
Return the least significant bit
Return the maximum value between this and right
Return the maximum value between this and right
Return the minimum value between this and right
Return the minimum value between this and right
Return the most significant bit
Return the most significant bit
Extract a range of bits of the BitVector
Extract a range of bits of the BitVector
Extract a range of bits of the BitVector
Extract a range of bits of the BitVector
Extract a bit of the BitVector
Extract a bit of the BitVector
Extract a bit of the BitVector
Extract a bit of the BitVector
Logical OR of all bits
Logical OR of all bits
Return the range
Return the range
Resize the bitVector to width
Left rotation of that bits
Left rotation of that Bits
Left rotation of that Bits
Right rotation of that bits
Right rotation of that Bits
Right rotation of that Bits
Set all bits
Set all bits
Set all bits to value
Set all bits to value
Set all bits to value
Set all bits to value
Set the width of the BitVector
Set the width of the BitVector
the width of the data
the BitVector of a given size
Split the BitVector into slice of x bits * @example
Split the BitVector into slice of x bits * @example
val res = myBits.subdiviedIn(3 bits)
the width of the slice
a Vector of slices
Split the BitVector into x slice
Split the BitVector into x slice
the width of the slice
a Vector of slices
val res = myBits.subdiviedIn(3 slices)
2'Complement
2'Complement
enable the 2'complement
Return the 2'Complement of the number
Inverse bitwise operator
Logical XOR of all bits
Logical XOR of all bits
Logical OR operator
Logical shift left (output width == input width)
Logical shift left (output width == input width)
Logical shift Right (output width == input width)
Logical shift right (output width = input width)
Logical shift right (output width = input width)
the number of shift
a Bits of width : w(this)
val result = myUInt |>> 4
Use =/= instead
use allowPruning instead
The UInt type corresponds to a vector of bits that can be used for unsigned integer arithmetic.
UInt Documentation