From 5509cdd4c8332c53151e10ba5bdbe0684af1c05b Mon Sep 17 00:00:00 2001 From: Martin Schoeberl Date: Fri, 25 Jan 2019 23:24:01 -0800 Subject: WireDefault instead of WireInit, keep WireInit around (#986) --- src/test/scala/chiselTests/StrongEnum.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test/scala/chiselTests/StrongEnum.scala') diff --git a/src/test/scala/chiselTests/StrongEnum.scala b/src/test/scala/chiselTests/StrongEnum.scala index 15ce943b..d38aa1e4 100644 --- a/src/test/scala/chiselTests/StrongEnum.scala +++ b/src/test/scala/chiselTests/StrongEnum.scala @@ -217,7 +217,7 @@ class InvalidEnumOpsTester extends BasicTester { class IsLitTester extends BasicTester { for (e <- EnumExample.all) { - val wire = WireInit(e) + val wire = WireDefault(e) assert(e.isLit()) assert(!wire.isLit()) @@ -228,7 +228,7 @@ class IsLitTester extends BasicTester { class NextTester extends BasicTester { for ((e,n) <- EnumExample.all.zip(EnumExample.litValues.tail :+ EnumExample.litValues.head)) { assert(e.next.litValue == n.litValue) - val w = WireInit(e) + val w = WireDefault(e) assert(w.next === EnumExample(n)) } stop() @@ -238,7 +238,7 @@ class WidthTester extends BasicTester { assert(EnumExample.getWidth == EnumExample.litValues.last.getWidth) assert(EnumExample.all.forall(_.getWidth == EnumExample.litValues.last.getWidth)) assert(EnumExample.all.forall{e => - val w = WireInit(e) + val w = WireDefault(e) w.getWidth == EnumExample.litValues.last.getWidth }) stop() -- cgit v1.2.3