summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chiselFrontend/src/main/scala/chisel3/core/StrongEnum.scala2
-rw-r--r--src/test/scala/chiselTests/StrongEnum.scala4
2 files changed, 3 insertions, 3 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/core/StrongEnum.scala b/chiselFrontend/src/main/scala/chisel3/core/StrongEnum.scala
index a9f51387..889e9b11 100644
--- a/chiselFrontend/src/main/scala/chisel3/core/StrongEnum.scala
+++ b/chiselFrontend/src/main/scala/chisel3/core/StrongEnum.scala
@@ -32,7 +32,7 @@ object EnumAnnotations {
import EnumAnnotations._
-abstract class EnumType(private val factory: EnumFactory, selfAnnotating: Boolean = true) extends Element {
+abstract class EnumType(private val factory: EnumFactory, selfAnnotating: Boolean = false) extends Element {
override def cloneType: this.type = factory().asInstanceOf[this.type]
private[core] def compop(sourceInfo: SourceInfo, op: PrimOp, other: EnumType): Bool = {
diff --git a/src/test/scala/chiselTests/StrongEnum.scala b/src/test/scala/chiselTests/StrongEnum.scala
index 98286624..15ce943b 100644
--- a/src/test/scala/chiselTests/StrongEnum.scala
+++ b/src/test/scala/chiselTests/StrongEnum.scala
@@ -372,11 +372,11 @@ class StrongEnumSpec extends ChiselFlatSpec {
}
}
-class StrongEnumAnnotationSpec extends FreeSpec with Matchers {
+class StrongEnumAnnotationSpec extends ChiselFlatSpec {
import chisel3.experimental.EnumAnnotations._
import firrtl.annotations.ComponentName
- "Test that strong enums annotate themselves appropriately" in {
+ ignore should "Test that strong enums annotate themselves appropriately" in {
def test() = {
Driver.execute(Array("--target-dir", "test_run_dir"), () => new StrongEnumFSM) match {