correctly initialize the active flag
This commit is contained in:
1 parent
6ec2e7c5bd
commit
62954d543e
1 file changed
+1
-1
@@ -45,7 +45,7 @@ class SimpleTimer(initCount: Int) extends Module {
|
||||
}
|
||||
|
||||
val countdown = Reg(UInt(width = log2Up(initCount)))
|
||||
val active = Reg(Bool())
|
||||
val active = Reg(init = Bool(false))
|
||||
|
||||
when (active) { countdown := countdown - UInt(1) }
|
||||
|
||||
|
||||
Reference in new issue
Block a user