make sure timeout doesn't trigger spuriously on reset
This commit is contained in:
parent
8bc90ab9bd
commit
f325874420
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user