From f325874420e6ea85f2d0165899dfa448656f78a5 Mon Sep 17 00:00:00 2001 From: Howard Mao Date: Wed, 18 Nov 2015 22:53:50 -0800 Subject: [PATCH] make sure timeout doesn't trigger spuriously on reset --- groundtest/src/main/scala/util.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundtest/src/main/scala/util.scala b/groundtest/src/main/scala/util.scala index 474a3447..fd924626 100644 --- a/groundtest/src/main/scala/util.scala +++ b/groundtest/src/main/scala/util.scala @@ -25,7 +25,7 @@ class Timer(initCount: Int) extends Module { countdown := countdown - UInt(1) } - io.timeout := countdown === UInt(0) + io.timeout := countdown === UInt(0) && active } object Timer {