Concatenation operator
Connect this data to that data mono-directionally and element-wise.
Connect this data to that data mono-directionally and element-wise.
This uses the MonoConnect algorithm.
the data to connect to
Dynamic left shift operator
Static left shift operator
Static left shift operator
Connect this data to that data bi-directionally and element-wise.
Connect this data to that data bi-directionally and element-wise.
This uses the BiConnect algorithm.
the data to connect to
Dynamic right shift operator
Static right shift operator
Static right shift operator
Returns a subset of bits on this Bits from hi
to lo
(inclusive), statically addressed.
Returns a subset of bits on this Bits from hi
to lo
(inclusive), statically addressed.
the high bit
the low bit
a hardware component contain the requested bits
myBits = 0x5 = 0b101 myBits(1,0) => 0b01 // extracts the two least significant bits
Returns a subset of bits on this Bits from hi
to lo
(inclusive), statically addressed.
Returns a subset of bits on this Bits from hi
to lo
(inclusive), statically addressed.
the high bit
the low bit
a hardware component contain the requested bits
myBits = 0x5 = 0b101 myBits(1,0) => 0b01 // extracts the two least significant bits
Returns the specified bit on this wire as a Bool, dynamically addressed.
Returns the specified bit on this wire as a Bool, dynamically addressed.
a hardware component whose value will be used for dynamic addressing
the specified bit
Returns the specified bit on this Bits as a Bool, statically addressed.
Returns the specified bit on this Bits as a Bool, statically addressed.
Returns the contents of this wire as a scala.collection.Seq of Bool.
Reinterpret this Bits as a FixedPoint.
Reinterpret cast as a Interval.
Reinterpret cast as a Interval.
value not guaranteed to be preserved: for example, an UInt of width 3 and value 7 (0b111) would become a FixedInt with value -1, the interpretation of the number is also affected by the specified binary point. Caution advised
Does a reinterpret cast of the bits in this node into the format that provides.
Does a reinterpret cast of the bits in this node into the format that provides. Returns a new Wire of that type. Does not modify existing nodes.
x.asTypeOf(that) performs the inverse operation of x := that.toBits.
that should have known widths
,bit widths are NOT checked, may pad or drop bits from input
Reinterpret cast to UInt.
Reinterpret cast to UInt.
Aggregates are recursively packed with the first element appearing in the least-significant bits of the result.
,value not guaranteed to be preserved: for example, a SInt of width 3 and value -1 (0b111) would become an UInt with value 7
Takes the last seed suggested.
Takes the last seed suggested. Multiple calls to this function will take the last given seed, unless this HasId is a module port (see overridden method in Data.scala).
If the final computed name conflicts with the final name of another signal, the final name may get uniquified by appending a digit at the end of the name.
Is a lower priority than suggestName, in that regardless of whether autoSeed was called, suggestName will always take precedence if it was called.
this object
Internal API; Chisel users should look at chisel3.chiselTypeOf(...).
Computes the name of this HasId, if one exists
Computes the name of this HasId, if one exists
Optionally provide a default prefix for computing the name
Optionally provide default seed for computing the name
the name, if it can be computed
Returns the width, in bits, if currently known.
Returns the width, in bits, if currently known.
Whether either autoName or suggestName has been called
Head operator
Head operator
the number of bits to take
The n
most significant bits of this Bits
Returns whether the width is currently known.
Returns whether the width is currently known.
If this is a literal that is representable as bits, returns the value as a BigInt.
Returns the literal value if this is a literal that is representable as bits, otherwise crashes.
Returns the literal value if this is a literal that is representable as bits, otherwise crashes.
Pad operator
Pad operator
the width to pad to
this @coll zero padded up to width that
. If that
is less than the width of the original component,
this method returns the original component.
For SInts only, this will do sign extension.
Takes the first seed suggested.
Takes the first seed suggested. Multiple calls to this function will be ignored. If the final computed name conflicts with another name, it may get uniquified by appending a digit at the end.
Is a higher priority than autoSeed, in that regardless of whether autoSeed was called, suggestName will always take precedence.
The seed for the name of this component
this object
Tail operator
Tail operator
the number of bits to remove
This Bits with the n
most significant bits removed.
Returns a FIRRTL IsMember that refers to the absolute path to this object in the elaborated hardware graph
Returns a FIRRTL IsMember that refers to the absolute path to this object in the elaborated hardware graph
Returns the contents of this wire as a scala.collection.Seq of Bool.
Returns a FIRRTL ComponentName that references this object
Returns a FIRRTL ComponentName that references this object
Should not be called until circuit elaboration is complete
Default print as Decimal
Returns a FIRRTL ReferenceTarget that references this object
Returns a FIRRTL ReferenceTarget that references this object
Should not be called until circuit elaboration is complete
Bitwise inversion operator
Bitwise inversion operator
this Bits with each bit inverted
Returns Some(width) if the width is known, else None.
Returns Some(width) if the width is known, else None.
(Since version 3.2) Use asBool instead
(Since version 3.2) Use asBools instead
(Since version 3.2) litArg is deprecated, use litOption or litTo*Option
Bitwise hardware operators
Utilities for connecting hardware components
A data type for values represented by a single bitvector. This provides basic bitwise operations.