summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHasan Genc2018-10-29 15:25:28 -0700
committerSchuyler Eldridge2018-10-29 18:25:28 -0400
commit4dddde56d0c1a66a05457c7dda409238d2de8e8a (patch)
tree70c0e51659d7f510bf2c22ea86c766ef763bb527
parent012c503044b35fb7a432b39a769cd06e29ace2eb (diff)
Turn off strong enum annotations (#916)
* Turned off strong enum annotations because they weren't working with Vec indexes * Ignore annotation tests using ScalaTest's 'ignore', rather than by commenting them out
-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 {