diff options
| author | Aditya Naik | 2024-06-03 09:44:01 -0700 |
|---|---|---|
| committer | Aditya Naik | 2024-06-03 09:44:01 -0700 |
| commit | a529d0e962cbe6a8f32dcc87d5193df46c0ebc94 (patch) | |
| tree | 1f0307c4a1f28bc93b789c3ef1fded7cc4f0e2bf /core/src/main/scala/chisel3/experimental/ChiselEnum.scala | |
| parent | 9b61af16227ee41aae15dbcc2243e2c6493955c4 (diff) | |
Get core to compile
Diffstat (limited to 'core/src/main/scala/chisel3/experimental/ChiselEnum.scala')
| -rw-r--r-- | core/src/main/scala/chisel3/experimental/ChiselEnum.scala | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/core/src/main/scala/chisel3/experimental/ChiselEnum.scala b/core/src/main/scala/chisel3/experimental/ChiselEnum.scala index d8c3fe0b..9d69fe37 100644 --- a/core/src/main/scala/chisel3/experimental/ChiselEnum.scala +++ b/core/src/main/scala/chisel3/experimental/ChiselEnum.scala @@ -141,9 +141,9 @@ 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]): Bool = { - VecInit(s.map(this === _)).asUInt().orR() - } + // final def isOneOf(s: Seq[EnumType]): Bool = { + // Vec(s.map(this === _)).asUInt().orR() + // } /** Test if this enumeration is equal to any of the values given as arguments * @@ -151,10 +151,10 @@ abstract class EnumType(private[chisel3] val factory: ChiselEnum, selfAnnotating * @param u2 zero or more additional values to look for * @return a hardware [[Bool]] that indicates if this value matches any of the given values */ - final def isOneOf( - u1: EnumType, - u2: EnumType* - ): Bool = isOneOf(u1 +: u2.toSeq) + // final def isOneOf( + // u1: EnumType, + // u2: EnumType* + // ): Bool = isOneOf(u1 +: u2.toSeq) def next: this.type = { if (litOption.isDefined) { @@ -204,7 +204,7 @@ abstract class EnumType(private[chisel3] val factory: ChiselEnum, selfAnnotating }.flatten.toSeq } - private def outerMostVec(d: Data = this): Option[Vec[_]] = { + private def outerMostVec(d: Data = this): Option[Vec[?]] = { val currentVecOpt = d match { case v: Vec[_] => Some(v) case _ => None @@ -253,7 +253,7 @@ abstract class EnumType(private[chisel3] val factory: ChiselEnum, selfAnnotating for ((name, value) <- allNamesPadded) { when(this === value) { for ((r, c) <- result.zip(name)) { - r := c.toChar.U + r := c.toInt.U } } } |
