chisel3.util
Returns the base-2 integer logarithm of an UInt.
Log2(8.U) // evaluates to 3.U Log2(13.U) // evaluates to 3.U (truncation) Log2(myUIntWire)
The result is truncated, so e.g. Log2(13.U) === 3.U
Returns the base-2 integer logarithm of the least-significant width bits of an UInt.
width
Returns the base-2 integer logarithm of an UInt.
The result is truncated, so e.g. Log2(13.U) === 3.U