summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/StrongEnum.scala
diff options
context:
space:
mode:
authorMartin Schoeberl2019-01-25 23:24:01 -0800
committerRichard Lin2019-01-25 23:24:01 -0800
commit5509cdd4c8332c53151e10ba5bdbe0684af1c05b (patch)
tree15f4a7e8f83e0d249918bbce4198160fb2c5360f /src/test/scala/chiselTests/StrongEnum.scala
parent4f5ec211cb59f9da37dbe91d0dfcb93c4d3d84c9 (diff)
WireDefault instead of WireInit, keep WireInit around (#986)
Diffstat (limited to 'src/test/scala/chiselTests/StrongEnum.scala')
-rw-r--r--src/test/scala/chiselTests/StrongEnum.scala6
1 files changed, 3 insertions, 3 deletions
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()