Revert "make sure SlowIO clock divider is initialized on reset"
This reverts commit 546aaad8cfb03e45e068733c2b694232bcf9dcdb.
This commit is contained in:
parent
636a46c052
commit
0969be8804
@ -26,8 +26,8 @@ class SlowIO[T <: Data](val divisor_max: Int)(data: => T) extends Module
|
|||||||
}
|
}
|
||||||
io.divisor := (hold << 16) | divisor
|
io.divisor := (hold << 16) | divisor
|
||||||
|
|
||||||
val count = Reg(init = UInt(0, log2Up(divisor_max)))
|
val count = Reg{UInt(width = log2Up(divisor_max))}
|
||||||
val myclock = Reg(init = Bool(false))
|
val myclock = Reg{Bool()}
|
||||||
count := count + UInt(1)
|
count := count + UInt(1)
|
||||||
|
|
||||||
val rising = count === (divisor >> 1)
|
val rising = count === (divisor >> 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user