summaryrefslogtreecommitdiff
path: root/core/src/main/scala/chisel3/Aggregate.scala
diff options
context:
space:
mode:
authorAditya Naik2024-05-31 14:15:38 -0700
committerAditya Naik2024-05-31 14:15:38 -0700
commitcaf746088b7d92def18f2b3d6ccb7dfd9860e64b (patch)
tree57d6f2ac771fd8e8f35ae5051f81ef997b5f4efb /core/src/main/scala/chisel3/Aggregate.scala
parentbc92bb62f9f6a090e74392993e4fcfdd1f6b0676 (diff)
52 errors, removing implicit sourceinfo to clear more errors
Diffstat (limited to 'core/src/main/scala/chisel3/Aggregate.scala')
-rw-r--r--core/src/main/scala/chisel3/Aggregate.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/src/main/scala/chisel3/Aggregate.scala b/core/src/main/scala/chisel3/Aggregate.scala
index 52d96ce6..a3a8470f 100644
--- a/core/src/main/scala/chisel3/Aggregate.scala
+++ b/core/src/main/scala/chisel3/Aggregate.scala
@@ -67,8 +67,8 @@ sealed abstract class Aggregate extends Data {
}
}
- override def asUInt(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): UInt = {
- SeqUtils.asUInt(flatten.map(_.asUInt()))
+ override def asUInt(using sourceInfo: SourceInfo, compileOptions: CompileOptions): UInt = {
+ SeqUtils.asUInt(flatten.map(_.asUInt))
}
private[chisel3] override def connectFromBits(
@@ -94,13 +94,13 @@ sealed abstract class Aggregate extends Data {
}
}
-trait VecFactory {
+object Vec {
/** Creates a new [[Vec]] with `n` entries of the specified data type.
*
* @note elements are NOT assigned by default and have no value
*/
- def apply[T <: Data](n: Int, gen: T)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Vec[T] = {
+ def apply[T <: Data](n: Int, gen: T)(using sourceInfo: SourceInfo, compileOptions: CompileOptions): Vec[T] = {
if (compileOptions.declaredTypeMustBeUnbound) {
requireIsChiselType(gen, "vec type")
}
@@ -146,7 +146,7 @@ trait VecFactory {
* - 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
*/
-sealed class Vec[T <: Data] private[chisel3] (gen: => T, val length: Int) extends Aggregate with VecLike[T] {
+sealed class Vec[T <: Data] private[chisel3] (gen: => T, val length: Int) extends Aggregate {
override def toString: String = {
topBindingOpt match {