summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/Stop.scala
diff options
context:
space:
mode:
authorRichard Lin2017-03-08 17:38:14 -0800
committerGitHub2017-03-08 17:38:14 -0800
commita290d77ef3e88b200ab61cd41fcd1a1138321b66 (patch)
tree3cbabf2a20dc34f9d60a585834f532070bcd5235 /src/test/scala/chiselTests/Stop.scala
parent09e95c484e145e2a1b2f0a1aacf549c7354a1eca (diff)
Deprecate old Reg with nulls constructor (#455)
Diffstat (limited to 'src/test/scala/chiselTests/Stop.scala')
-rw-r--r--src/test/scala/chiselTests/Stop.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/scala/chiselTests/Stop.scala b/src/test/scala/chiselTests/Stop.scala
index 1c2d390d..136fafc8 100644
--- a/src/test/scala/chiselTests/Stop.scala
+++ b/src/test/scala/chiselTests/Stop.scala
@@ -11,7 +11,7 @@ class StopTester() extends BasicTester {
}
class StopImmediatelyTester extends BasicTester {
- val cycle = Reg(init = 0.asUInt(4.W))
+ val cycle = RegInit(0.asUInt(4.W))
cycle := cycle + 1.U
when (cycle === 4.U) {
stop()