diff options
| author | Jim Lawson | 2016-09-23 08:19:43 -0700 |
|---|---|---|
| committer | GitHub | 2016-09-23 08:19:43 -0700 |
| commit | 785620b1403d827986bf60c2a001d8d6f71eed72 (patch) | |
| tree | 1c1a0b14b041e544da3ff8176aba200604a131b3 /src/main/scala/chisel3/util/Cat.scala | |
| parent | b18e98ba2d058c7dd24f96f005486b70c856aeca (diff) | |
| parent | decb2ee0f0bb8223f0b2b067b88ed90b71473a28 (diff) | |
Merge pull request #291 from ucb-bar/utilscaladocs
Scaladocs for utils
Diffstat (limited to 'src/main/scala/chisel3/util/Cat.scala')
| -rw-r--r-- | src/main/scala/chisel3/util/Cat.scala | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/main/scala/chisel3/util/Cat.scala b/src/main/scala/chisel3/util/Cat.scala index 469bf9ab..ba12a7d4 100644 --- a/src/main/scala/chisel3/util/Cat.scala +++ b/src/main/scala/chisel3/util/Cat.scala @@ -6,16 +6,15 @@ import chisel3._ import chisel3.core.SeqUtils object Cat { - /** Combine data elements together - * @param a Data to combine with - * @param r any number of other Data elements to be combined in order - * @return A UInt which is all of the bits combined together + /** Concatenates the argument data elements, in argument order, together. */ def apply[T <: Bits](a: T, r: T*): UInt = apply(a :: r.toList) - /** Combine data elements together - * @param r any number of other Data elements to be combined in order - * @return A UInt which is all of the bits combined together + /** 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). */ def apply[T <: Bits](r: Seq[T]): UInt = SeqUtils.asUInt(r.reverse) } |
