BitSet

chisel3.util.experimental.BitSet
See theBitSet companion trait
object BitSet

Attributes

Companion
trait
Source
BitPat.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
BitSet.type

Members list

Value members

Concrete methods

def apply(bitpats: BitPat*): BitSet

Construct a BitSet from a sequence of BitPat. AllBitPat` must have the same width.

Construct a BitSet from a sequence of BitPat. AllBitPat` must have the same width.

Attributes

Source
BitPat.scala
def fromRange(start: BigInt, length: BigInt): BitSet

Construct a BitSet matching a range of value automatically infer width by the bit length of (start + length - 1)

Construct a BitSet matching a range of value automatically infer width by the bit length of (start + length - 1)

Value parameters

length

The length of the matching range

start

The smallest matching value

Attributes

Returns

A BitSet matching exactly all inputs in range [start, start + length)

Source
BitPat.scala
def fromRange(start: BigInt, length: BigInt, width: Int): BitSet

Construct a BitSet matching a range of value

Construct a BitSet matching a range of value

Value parameters

length

The length of the matching range

start

The smallest matching value

width

The width of the constructed BitSet. If not given, the returned BitSet have the width of the maximum possible matching value.

Attributes

Returns

A BitSet matcing exactly all inputs in range [start, start + length)

Source
BitPat.scala
def fromString(str: String): BitSet

Construct a BitSet from String. each line should be a valid BitPat string with the same width.

Construct a BitSet from String. each line should be a valid BitPat string with the same width.

Attributes

Source
BitPat.scala

Concrete fields

val empty: BitSet

Empty BitSet.

Empty BitSet.

Attributes

Source
BitPat.scala