Class/Object

chisel3.core

Vec

Related Docs: object Vec | package core

Permalink

sealed class Vec[T <: Data] extends Aggregate with VecLike[T]

A vector (array) of Data elements. Provides hardware versions of various collection transformation functions found in software array implementations.

Careful consideration should be given over the use of Vec vs Seq or some other scala collection. In general Vec only needs to be used when there is a need to express the hardware collection in a Reg or IO Bundle or when access to elements of the array is indexed via a hardware signal.

Example of indexing into a Vec using a hardware address and where the Vec is defined in an IO Bundle

val io = IO(new Bundle {
  val in = Input(Vec(20, UInt(16.W)))
  val addr = UInt(5.W)
  val out = Output(UInt(16.W))
})
io.out := io.in(io.addr)
T

type of elements

Note

  • when multiple conflicting assignments are performed on a Vec element, the last one takes effect (unlike Mem, where the result is undefined)
  • Vecs, unlike classes in Scala's collection library, are propagated intact to FIRRTL as a vector type, which may make debugging easier
Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Vec
  2. VecLike
  3. IndexedSeq
  4. IndexedSeqLike
  5. Seq
  6. SeqLike
  7. GenSeq
  8. GenSeqLike
  9. Iterable
  10. IterableLike
  11. Equals
  12. GenIterable
  13. GenIterableLike
  14. Traversable
  15. GenTraversable
  16. GenericTraversableTemplate
  17. TraversableLike
  18. GenTraversableLike
  19. Parallelizable
  20. TraversableOnce
  21. GenTraversableOnce
  22. FilterMonadic
  23. HasNewBuilder
  24. PartialFunction
  25. Function1
  26. Aggregate
  27. Data
  28. HasId
  29. InstanceId
  30. AnyRef
  31. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. class Elements extends AbstractIterator[A] with BufferedIterator[A] with Serializable

    Permalink
    Attributes
    protected
    Definition Classes
    IndexedSeqLike
    Annotations
    @SerialVersionUID()
  2. type Self = IndexedSeq[T]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  3. class WithFilter extends FilterMonadic[A, Repr]

    Permalink
    Definition Classes
    TraversableLike

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++[B >: T, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[IndexedSeq[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  4. def ++:[B >: T, That](that: Traversable[B])(implicit bf: CanBuildFrom[IndexedSeq[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike
  5. def ++:[B >: T, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[IndexedSeq[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike
  6. def +:[B >: T, That](elem: B)(implicit bf: CanBuildFrom[IndexedSeq[T], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  7. def /:[B](z: B)(op: (B, T) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  8. def :+[B >: T, That](elem: B)(implicit bf: CanBuildFrom[IndexedSeq[T], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  9. def :=(that: Vec[T])(implicit sourceInfo: SourceInfo, moduleCompileOptions: CompileOptions): Unit

    Permalink
  10. def :=(that: Seq[T])(implicit sourceInfo: SourceInfo, moduleCompileOptions: CompileOptions): Unit

    Permalink

    Strong bulk connect, assigning elements in this Vec from elements in a Seq.

    Strong bulk connect, assigning elements in this Vec from elements in a Seq.

    Note

    the length of this Vec must match the length of the input Seq

  11. final def :=(that: Data)(implicit sourceInfo: SourceInfo, connectionCompileOptions: CompileOptions): Unit

    Permalink
    Definition Classes
    Data
  12. def :\[B](z: B)(op: (T, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  13. def <>(that: Vec[T])(implicit sourceInfo: SourceInfo, moduleCompileOptions: CompileOptions): Unit

    Permalink
  14. def <>(that: Seq[T])(implicit sourceInfo: SourceInfo, moduleCompileOptions: CompileOptions): Unit

    Permalink

    Strong bulk connect, assigning elements in this Vec from elements in a Seq.

    Strong bulk connect, assigning elements in this Vec from elements in a Seq.

    Note

    the length of this Vec must match the length of the input Seq

  15. final def <>(that: Data)(implicit sourceInfo: SourceInfo, connectionCompileOptions: CompileOptions): Unit

    Permalink
    Definition Classes
    Data
  16. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def addString(b: StringBuilder): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  18. def addString(b: StringBuilder, sep: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  19. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  20. def aggregate[B](z: ⇒ B)(seqop: (B, T) ⇒ B, combop: (B, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  21. def andThen[C](k: (T) ⇒ C): PartialFunction[Int, C]

    Permalink
    Definition Classes
    PartialFunction → Function1
  22. def apply(idx: Int): T

    Permalink

    Creates a statically indexed read or write accessor into the array.

    Creates a statically indexed read or write accessor into the array.

    Definition Classes
    Vec → SeqLike → GenSeqLike → Function1
  23. def apply(idx: UInt): T

    Permalink

    Creates a dynamically indexed read or write accessor into the array.

    Creates a dynamically indexed read or write accessor into the array.

    Definition Classes
    VecVecLike
  24. def applyOrElse[A1 <: Int, B1 >: T](x: A1, default: (A1) ⇒ B1): B1

    Permalink
    Definition Classes
    PartialFunction
  25. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  26. macro def asTypeOf[T <: Data](that: T): T

    Permalink

    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.

    Definition Classes
    Data
    Note

    that should have known widths

    ,

    bit widths are NOT checked, may pad or drop bits from input

  27. final macro def asUInt(): UInt

    Permalink

    Reinterpret cast to UInt.

    Reinterpret cast to UInt.

    Definition Classes
    Data
    Note

    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

  28. def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    IterableLike → Equals
  29. def chiselCloneType(implicit compileOptions: CompileOptions): Vec.this.type

    Permalink

    chiselCloneType is called at the top-level of a clone chain.

    chiselCloneType is called at the top-level of a clone chain. It calls the client's cloneType() method to construct a basic copy of the object being cloned, then performs any fixups required to reconstruct the appropriate core state of the cloned object.

    returns

    a copy of the object with appropriate core state.

    Definition Classes
    Data
  30. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def cloneType: Vec.this.type

    Permalink

    cloneType must be defined for any Chisel object extending Data.

    cloneType must be defined for any Chisel object extending Data. It is responsible for constructing a basic copy of the object being cloned. If cloneType needs to recursively clone elements of an object, it should call the cloneType methods on those elements.

    returns

    a copy of the object.

    Definition Classes
    VecData
  32. def collect[B, That](pf: PartialFunction[T, B])(implicit bf: CanBuildFrom[IndexedSeq[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  33. def collectFirst[B](pf: PartialFunction[T, B]): Option[B]

    Permalink
    Definition Classes
    TraversableOnce
  34. def combinations(n: Int): Iterator[IndexedSeq[T]]

    Permalink
    Definition Classes
    SeqLike
  35. def companion: GenericCompanion[IndexedSeq]

    Permalink
    Definition Classes
    IndexedSeq → Seq → GenSeq → Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
  36. def compose[A](g: (A) ⇒ Int): (A) ⇒ T

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  37. macro def contains(x: T)(implicit ev: <:<[T, UInt]): Bool

    Permalink

    Outputs true if the vector contains at least one element equal to x (using the === operator).

    Outputs true if the vector contains at least one element equal to x (using the === operator).

    Definition Classes
    VecLike
  38. def contains[A1 >: T](elem: A1): Boolean

    Permalink
    Definition Classes
    SeqLike
  39. def containsSlice[B](that: GenSeq[B]): Boolean

    Permalink
    Definition Classes
    SeqLike
  40. def copyToArray[B >: T](xs: Array[B], start: Int, len: Int): Unit

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  41. def copyToArray[B >: T](xs: Array[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  42. def copyToArray[B >: T](xs: Array[B], start: Int): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  43. def copyToBuffer[B >: T](dest: Buffer[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce
  44. def corresponds[B](that: GenSeq[B])(p: (T, B) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  45. macro def count(p: (T) ⇒ Bool): UInt

    Permalink

    Outputs the number of elements for which p is true.

    Outputs the number of elements for which p is true.

    Definition Classes
    VecLike
  46. def count(p: (T) ⇒ Boolean): Int

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  47. def diff[B >: T](that: GenSeq[B]): IndexedSeq[T]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  48. def distinct: IndexedSeq[T]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  49. def do_asTypeOf[T <: Data](that: T)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): T

    Permalink
    Definition Classes
    Data
  50. def do_asUInt(implicit sourceInfo: SourceInfo): UInt

    Permalink
    Definition Classes
    AggregateData
  51. def do_contains(x: T)(implicit sourceInfo: SourceInfo, ev: <:<[T, UInt]): Bool

    Permalink
    Definition Classes
    VecLike
  52. def do_count(p: (T) ⇒ Bool)(implicit sourceInfo: SourceInfo): UInt

    Permalink
    Definition Classes
    VecLike
  53. def do_exists(p: (T) ⇒ Bool)(implicit sourceInfo: SourceInfo): Bool

    Permalink
    Definition Classes
    VecLike
  54. def do_forall(p: (T) ⇒ Bool)(implicit sourceInfo: SourceInfo): Bool

    Permalink
    Definition Classes
    VecLike
  55. def do_indexWhere(p: (T) ⇒ Bool)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): UInt

    Permalink
    Definition Classes
    VecLike
  56. def do_lastIndexWhere(p: (T) ⇒ Bool)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): UInt

    Permalink
    Definition Classes
    VecLike
  57. def do_onlyIndexWhere(p: (T) ⇒ Bool)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): UInt

    Permalink
    Definition Classes
    VecLike
  58. def drop(n: Int): IndexedSeq[T]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  59. def dropRight(n: Int): IndexedSeq[T]

    Permalink
    Definition Classes
    IterableLike
  60. def dropWhile(p: (T) ⇒ Boolean): IndexedSeq[T]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  61. def endsWith[B](that: GenSeq[B]): Boolean

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  62. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  63. def equals(that: Any): Boolean

    Permalink
    Definition Classes
    VecLike → HasId → GenSeqLike → Equals → AnyRef → Any
  64. macro def exists(p: (T) ⇒ Bool): Bool

    Permalink

    Outputs true if p outputs true for at least one element.

    Outputs true if p outputs true for at least one element.

    Definition Classes
    VecLike
  65. def exists(p: (T) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  66. def filter(p: (T) ⇒ Boolean): IndexedSeq[T]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  67. def filterNot(p: (T) ⇒ Boolean): IndexedSeq[T]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  68. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  69. def find(p: (T) ⇒ Boolean): Option[T]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  70. def flatMap[B, That](f: (T) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[IndexedSeq[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  71. def flatten[B](implicit asTraversable: (T) ⇒ GenTraversableOnce[B]): IndexedSeq[B]

    Permalink
    Definition Classes
    GenericTraversableTemplate
  72. def fold[A1 >: T](z: A1)(op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  73. def foldLeft[B](z: B)(op: (B, T) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  74. def foldRight[B](z: B)(op: (T, B) ⇒ B): B

    Permalink
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  75. macro def forall(p: (T) ⇒ Bool): Bool

    Permalink

    Outputs true if p outputs true for every element.

    Outputs true if p outputs true for every element.

    Definition Classes
    VecLike
  76. def forall(p: (T) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  77. def foreach[U](f: (T) ⇒ U): Unit

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  78. def fromBits(that: Bits)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Vec.this.type

    Permalink

    Creates an new instance of this type, unpacking the input Bits into structured data.

    Creates an new instance of this type, unpacking the input Bits into structured data.

    This performs the inverse operation of toBits.

    Definition Classes
    Data
    Note

    what fromBits assigs to must have known widths

    ,

    does NOT check bit widths, may drop bits during assignment

    ,

    does NOT assign to the object this is called on, instead creates and returns a NEW object (useful in a clone-and-assign scenario)

  79. def genericBuilder[B]: Builder[B, IndexedSeq[B]]

    Permalink
    Definition Classes
    GenericTraversableTemplate
  80. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  81. def getElements: Seq[Data]

    Permalink

    Returns a Seq of the immediate contents of this Aggregate, in order.

    Returns a Seq of the immediate contents of this Aggregate, in order.

    Definition Classes
    VecAggregate
  82. final def getWidth: Int

    Permalink

    Returns the width, in bits, if currently known.

    Returns the width, in bits, if currently known.

    Definition Classes
    Data
    Exceptions thrown

    java.util.NoSuchElementException if the width is not known.

  83. def groupBy[K](f: (T) ⇒ K): Map[K, IndexedSeq[T]]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  84. def grouped(size: Int): Iterator[IndexedSeq[T]]

    Permalink
    Definition Classes
    IterableLike
  85. def hasDefiniteSize: Boolean

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  86. def hashCode(): Int

    Permalink
    Definition Classes
    VecLike → HasId → IndexedSeqLike → GenSeqLike → AnyRef → Any
  87. def head: T

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  88. def headOption: Option[T]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  89. def indexOf[B >: T](elem: B, from: Int): Int

    Permalink
    Definition Classes
    GenSeqLike
  90. def indexOf[B >: T](elem: B): Int

    Permalink
    Definition Classes
    GenSeqLike
  91. def indexOfSlice[B >: T](that: GenSeq[B], from: Int): Int

    Permalink
    Definition Classes
    SeqLike
  92. def indexOfSlice[B >: T](that: GenSeq[B]): Int

    Permalink
    Definition Classes
    SeqLike
  93. macro def indexWhere(p: (T) ⇒ Bool): UInt

    Permalink

    Outputs the index of the first element for which p outputs true.

    Outputs the index of the first element for which p outputs true.

    Definition Classes
    VecLike
  94. def indexWhere(p: (T) ⇒ Boolean, from: Int): Int

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  95. def indexWhere(p: (T) ⇒ Boolean): Int

    Permalink
    Definition Classes
    GenSeqLike
  96. def indices: Range

    Permalink
    Definition Classes
    SeqLike
  97. def init: IndexedSeq[T]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  98. def inits: Iterator[IndexedSeq[T]]

    Permalink
    Definition Classes
    TraversableLike
  99. def instanceName: String

    Permalink
    Definition Classes
    HasId → InstanceId
  100. def intersect[B >: T](that: GenSeq[B]): IndexedSeq[T]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  101. def isDefinedAt(idx: Int): Boolean

    Permalink
    Definition Classes
    GenSeqLike
  102. def isEmpty: Boolean

    Permalink
    Definition Classes
    SeqLike → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  103. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  104. def isLit(): Boolean

    Permalink
    Definition Classes
    Data
  105. final def isTraversableAgain: Boolean

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  106. final def isWidthKnown: Boolean

    Permalink

    Returns whether the width is currently known.

    Returns whether the width is currently known.

    Definition Classes
    Data
  107. def iterator: Iterator[T]

    Permalink
    Definition Classes
    IndexedSeqLike → IterableLike → GenIterableLike
  108. def last: T

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  109. def lastIndexOf[B >: T](elem: B, end: Int): Int

    Permalink
    Definition Classes
    GenSeqLike
  110. def lastIndexOf[B >: T](elem: B): Int

    Permalink
    Definition Classes
    GenSeqLike
  111. def lastIndexOfSlice[B >: T](that: GenSeq[B], end: Int): Int

    Permalink
    Definition Classes
    SeqLike
  112. def lastIndexOfSlice[B >: T](that: GenSeq[B]): Int

    Permalink
    Definition Classes
    SeqLike
  113. macro def lastIndexWhere(p: (T) ⇒ Bool): UInt

    Permalink

    Outputs the index of the last element for which p outputs true.

    Outputs the index of the last element for which p outputs true.

    Definition Classes
    VecLike
  114. def lastIndexWhere(p: (T) ⇒ Boolean, end: Int): Int

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  115. def lastIndexWhere(p: (T) ⇒ Boolean): Int

    Permalink
    Definition Classes
    GenSeqLike
  116. def lastOption: Option[T]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  117. val length: Int

    Permalink
    Definition Classes
    Vec → SeqLike → GenSeqLike
  118. def lengthCompare(len: Int): Int

    Permalink
    Definition Classes
    SeqLike
  119. def lift: (Int) ⇒ Option[T]

    Permalink
    Definition Classes
    PartialFunction
  120. def litArg(): Option[LitArg]

    Permalink
    Definition Classes
    Data
  121. def litValue(): BigInt

    Permalink
    Definition Classes
    Data
  122. def map[B, That](f: (T) ⇒ B)(implicit bf: CanBuildFrom[IndexedSeq[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  123. def max[B >: T](implicit cmp: Ordering[B]): T

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  124. def maxBy[B](f: (T) ⇒ B)(implicit cmp: Ordering[B]): T

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  125. def min[B >: T](implicit cmp: Ordering[B]): T

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  126. def minBy[B](f: (T) ⇒ B)(implicit cmp: Ordering[B]): T

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  127. def mkString: String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  128. def mkString(sep: String): String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  129. def mkString(start: String, sep: String, end: String): String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  130. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  131. def newBuilder: Builder[T, IndexedSeq[T]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  132. def nonEmpty: Boolean

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  133. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  134. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  135. macro def onlyIndexWhere(p: (T) ⇒ Bool): UInt

    Permalink

    Outputs the index of the element for which p outputs true, assuming that the there is exactly one such element.

    Outputs the index of the element for which p outputs true, assuming that the there is exactly one such element.

    The implementation may be more efficient than a priority mux, but incorrect results are possible if there is not exactly one true element.

    Definition Classes
    VecLike
    Note

    the assumption that there is only one element for which p outputs true is NOT checked (useful in cases where the condition doesn't always hold, but the results are not used in those cases)

  136. def orElse[A1 <: Int, B1 >: T](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Permalink
    Definition Classes
    PartialFunction
  137. def padTo[B >: T, That](len: Int, elem: B)(implicit bf: CanBuildFrom[IndexedSeq[T], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  138. def par: ParSeq[T]

    Permalink
    Definition Classes
    Parallelizable
  139. def parCombiner: Combiner[T, ParSeq[T]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    SeqLike → TraversableLike → Parallelizable
  140. def parentModName: String

    Permalink
    Definition Classes
    HasId → InstanceId
  141. def parentPathName: String

    Permalink
    Definition Classes
    HasId → InstanceId
  142. def partition(p: (T) ⇒ Boolean): (IndexedSeq[T], IndexedSeq[T])

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  143. def patch[B >: T, That](from: Int, patch: GenSeq[B], replaced: Int)(implicit bf: CanBuildFrom[IndexedSeq[T], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  144. def pathName: String

    Permalink
    Definition Classes
    HasId → InstanceId
  145. def permutations: Iterator[IndexedSeq[T]]

    Permalink
    Definition Classes
    SeqLike
  146. def prefixLength(p: (T) ⇒ Boolean): Int

    Permalink
    Definition Classes
    GenSeqLike
  147. def product[B >: T](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  148. def reduce[A1 >: T](op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  149. def reduceLeft[B >: T](op: (B, T) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce
  150. def reduceLeftOption[B >: T](op: (B, T) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  151. def reduceOption[A1 >: T](op: (A1, A1) ⇒ A1): Option[A1]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  152. def reduceRight[B >: T](op: (T, B) ⇒ B): B

    Permalink
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  153. def reduceRightOption[B >: T](op: (T, B) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  154. def repr: IndexedSeq[T]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  155. def reverse: IndexedSeq[T]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  156. def reverseIterator: Iterator[T]

    Permalink
    Definition Classes
    SeqLike
  157. def reverseMap[B, That](f: (T) ⇒ B)(implicit bf: CanBuildFrom[IndexedSeq[T], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  158. def reversed: List[T]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  159. def runWith[U](action: (T) ⇒ U): (Int) ⇒ Boolean

    Permalink
    Definition Classes
    PartialFunction
  160. def sameElements[B >: T](that: GenIterable[B]): Boolean

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  161. def scan[B >: T, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[IndexedSeq[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  162. def scanLeft[B, That](z: B)(op: (B, T) ⇒ B)(implicit bf: CanBuildFrom[IndexedSeq[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  163. def scanRight[B, That](z: B)(op: (T, B) ⇒ B)(implicit bf: CanBuildFrom[IndexedSeq[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  164. def segmentLength(p: (T) ⇒ Boolean, from: Int): Int

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  165. def seq: IndexedSeq[T]

    Permalink
    Definition Classes
    IndexedSeq → IndexedSeqLike → Seq → GenSeq → GenSeqLike → Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  166. def size: Int

    Permalink
    Definition Classes
    SeqLike → GenTraversableLike → TraversableOnce → GenTraversableOnce
  167. def slice(from: Int, until: Int): IndexedSeq[T]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  168. def sliding(size: Int, step: Int): Iterator[IndexedSeq[T]]

    Permalink
    Definition Classes
    IterableLike
  169. def sliding(size: Int): Iterator[IndexedSeq[T]]

    Permalink
    Definition Classes
    IterableLike
  170. def sortBy[B](f: (T) ⇒ B)(implicit ord: Ordering[B]): IndexedSeq[T]

    Permalink
    Definition Classes
    SeqLike
  171. def sortWith(lt: (T, T) ⇒ Boolean): IndexedSeq[T]

    Permalink
    Definition Classes
    SeqLike
  172. def sorted[B >: T](implicit ord: Ordering[B]): IndexedSeq[T]

    Permalink
    Definition Classes
    SeqLike
  173. def span(p: (T) ⇒ Boolean): (IndexedSeq[T], IndexedSeq[T])

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  174. def splitAt(n: Int): (IndexedSeq[T], IndexedSeq[T])

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  175. def startsWith[B](that: GenSeq[B], offset: Int): Boolean

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  176. def startsWith[B](that: GenSeq[B]): Boolean

    Permalink
    Definition Classes
    GenSeqLike
  177. def stringPrefix: String

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  178. def suggestName(name: ⇒ String): Vec.this.type

    Permalink
    Definition Classes
    HasId
  179. def sum[B >: T](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  180. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  181. def tail: IndexedSeq[T]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  182. def tails: Iterator[IndexedSeq[T]]

    Permalink
    Definition Classes
    TraversableLike
  183. def take(n: Int): IndexedSeq[T]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  184. def takeRight(n: Int): IndexedSeq[T]

    Permalink
    Definition Classes
    IterableLike
  185. def takeWhile(p: (T) ⇒ Boolean): IndexedSeq[T]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  186. def thisCollection: IndexedSeq[T]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    IndexedSeqLike → SeqLike → IterableLike → TraversableLike
  187. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, T, Col[T]]): Col[T]

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  188. def toArray[B >: T](implicit arg0: ClassTag[B]): Array[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  189. def toBuffer[A1 >: T]: Buffer[A1]

    Permalink
    Definition Classes
    IndexedSeqLike → TraversableOnce → GenTraversableOnce
  190. def toCollection(repr: IndexedSeq[T]): IndexedSeq[T]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    IndexedSeqLike → SeqLike → IterableLike → TraversableLike
  191. def toIndexedSeq: IndexedSeq[T]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  192. def toIterable: Iterable[T]

    Permalink
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  193. def toIterator: Iterator[T]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  194. def toList: List[T]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  195. def toMap[T, U](implicit ev: <:<[T, (T, U)]): Map[T, U]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  196. def toPrintable: Printable

    Permalink

    Default "pretty-print" implementation Analogous to printing a Seq Results in "Vec(elt0, elt1, ...)"

    Default "pretty-print" implementation Analogous to printing a Seq Results in "Vec(elt0, elt1, ...)"

    Definition Classes
    VecData
  197. def toSeq: Seq[T]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike → TraversableOnce → GenTraversableOnce
  198. def toSet[B >: T]: Set[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  199. def toStream: Stream[T]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  200. def toString(): String

    Permalink
    Definition Classes
    SeqLike → TraversableLike → Any
  201. def toTraversable: Traversable[T]

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  202. def toVector: Vector[T]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  203. def transpose[B](implicit asTraversable: (T) ⇒ GenTraversableOnce[B]): IndexedSeq[IndexedSeq[B]]

    Permalink
    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.

  204. def union[B >: T, That](that: GenSeq[B])(implicit bf: CanBuildFrom[IndexedSeq[T], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  205. def unzip[A1, A2](implicit asPair: (T) ⇒ (A1, A2)): (IndexedSeq[A1], IndexedSeq[A2])

    Permalink
    Definition Classes
    GenericTraversableTemplate
  206. def unzip3[A1, A2, A3](implicit asTriple: (T) ⇒ (A1, A2, A3)): (IndexedSeq[A1], IndexedSeq[A2], IndexedSeq[A3])

    Permalink
    Definition Classes
    GenericTraversableTemplate
  207. def updated[B >: T, That](index: Int, elem: B)(implicit bf: CanBuildFrom[IndexedSeq[T], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  208. def view(from: Int, until: Int): SeqView[T, IndexedSeq[T]]

    Permalink
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  209. def view: SeqView[T, IndexedSeq[T]]

    Permalink
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  210. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  211. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  212. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  213. final def widthOption: Option[Int]

    Permalink

    Returns Some(width) if the width is known, else None.

    Returns Some(width) if the width is known, else None.

    Definition Classes
    Data
  214. def withFilter(p: (T) ⇒ Boolean): FilterMonadic[T, IndexedSeq[T]]

    Permalink
    Definition Classes
    TraversableLike → FilterMonadic
  215. def zip[A1 >: T, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[IndexedSeq[T], (A1, B), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  216. def zipAll[B, A1 >: T, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[IndexedSeq[T], (A1, B), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  217. def zipWithIndex[A1 >: T, That](implicit bf: CanBuildFrom[IndexedSeq[T], (A1, Int), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike

Deprecated Value Members

  1. def read(idx: UInt): T

    Permalink
    Definition Classes
    VecVecLike
    Annotations
    @deprecated
    Deprecated

    (Since version chisel3) Use Vec.apply instead

  2. def toBits(): UInt

    Permalink

    Packs the value of this object as plain Bits.

    Packs the value of this object as plain Bits.

    This performs the inverse operation of fromBits(Bits).

    Definition Classes
    Data
    Annotations
    @deprecated
    Deprecated

    (Since version chisel3) Best alternative, .asUInt()

  3. def write(idx: UInt, data: T): Unit

    Permalink
    Definition Classes
    VecVecLike
    Annotations
    @deprecated
    Deprecated

    (Since version chisel3) Use Vec.apply instead

Inherited from VecLike[T]

Inherited from IndexedSeq[T]

Inherited from IndexedSeqLike[T, IndexedSeq[T]]

Inherited from Seq[T]

Inherited from SeqLike[T, IndexedSeq[T]]

Inherited from GenSeq[T]

Inherited from GenSeqLike[T, IndexedSeq[T]]

Inherited from Iterable[T]

Inherited from IterableLike[T, IndexedSeq[T]]

Inherited from Equals

Inherited from GenIterable[T]

Inherited from GenIterableLike[T, IndexedSeq[T]]

Inherited from Traversable[T]

Inherited from GenTraversable[T]

Inherited from TraversableLike[T, IndexedSeq[T]]

Inherited from GenTraversableLike[T, IndexedSeq[T]]

Inherited from Parallelizable[T, ParSeq[T]]

Inherited from TraversableOnce[T]

Inherited from GenTraversableOnce[T]

Inherited from FilterMonadic[T, IndexedSeq[T]]

Inherited from HasNewBuilder[T, IndexedSeq[T] @scala.annotation.unchecked.uncheckedVariance]

Inherited from PartialFunction[Int, T]

Inherited from (Int) ⇒ T

Inherited from Aggregate

Inherited from Data

Inherited from HasId

Inherited from InstanceId

Inherited from AnyRef

Inherited from Any

Ungrouped