Cat

chisel3.util.Cat
object Cat

Concatenates elements of the input, in order, together.

Attributes

Example
Cat("b101".U, "b11".U)  // equivalent to "b101 11".U
Cat(myUIntWire0, myUIntWire1)
Cat(Seq("b101".U, "b11".U))  // equivalent to "b101 11".U
Cat(mySeqOfBits)
Source
Cat.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Cat.type

Members list

Value members

Inherited methods

def apply[T <: Bits](r: Seq[T])(using SourceInfo): UInt

Concatenates the data elements of the input sequence, in reverse sequence order, together. The first element of the sequence forms the most significant bits, while the last element in the sequence forms the least significant bits.

Concatenates the data elements of the input sequence, in reverse sequence order, together. The first element of the sequence forms the most significant bits, while the last element in the sequence forms the least significant bits.

Equivalent to r(0) ## r(1) ## ... ## r(n-1).

Attributes

Note

This returns a 0.U if applied to a zero-element Vec.

Inherited from:
CatIntf (hidden)
Source
CatIntf.scala
def apply[T <: Bits](a: T, r: T*)(using SourceInfo): UInt

Concatenates the argument data elements, in argument order, together. The first argument forms the most significant bits, while the last argument forms the least significant bits.

Concatenates the argument data elements, in argument order, together. The first argument forms the most significant bits, while the last argument forms the least significant bits.

Attributes

Inherited from:
CatIntf (hidden)
Source
CatIntf.scala