diff options
| author | Aditya Naik | 2024-05-31 14:15:38 -0700 |
|---|---|---|
| committer | Aditya Naik | 2024-05-31 14:15:38 -0700 |
| commit | caf746088b7d92def18f2b3d6ccb7dfd9860e64b (patch) | |
| tree | 57d6f2ac771fd8e8f35ae5051f81ef997b5f4efb /core/src/main/scala/chisel3/experimental/ChiselEnum.scala | |
| parent | bc92bb62f9f6a090e74392993e4fcfdd1f6b0676 (diff) | |
52 errors, removing implicit sourceinfo to clear more errors
Diffstat (limited to 'core/src/main/scala/chisel3/experimental/ChiselEnum.scala')
| -rw-r--r-- | core/src/main/scala/chisel3/experimental/ChiselEnum.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/scala/chisel3/experimental/ChiselEnum.scala b/core/src/main/scala/chisel3/experimental/ChiselEnum.scala index 27b07199..b8317a02 100644 --- a/core/src/main/scala/chisel3/experimental/ChiselEnum.scala +++ b/core/src/main/scala/chisel3/experimental/ChiselEnum.scala @@ -145,7 +145,7 @@ abstract class EnumType(private[chisel3] val factory: ChiselEnum, selfAnnotating * @param s a [[scala.collection.Seq$ Seq]] of enumeration values to look for * @return a hardware [[Bool]] that indicates if this value matches any of the given values */ - final def isOneOf(s: Seq[EnumType])(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Bool = { + final def isOneOf(s: Seq[EnumType])(using sourceInfo: SourceInfo, compileOptions: CompileOptions): Bool = { VecInit(s.map(this === _)).asUInt().orR() } @@ -333,7 +333,7 @@ abstract class EnumFactory { } this.id = id.litValue - do_Value(name) + Value(name) } def apply(): Type = new Type |
