1
0

tilelink: initialize toggle in Fragmenter (#894)

No strictly necessary, because the initial value does not matter, but good hygiene since it drives a cycle of logic.
This commit is contained in:
Wesley W. Terpstra 2017-07-26 10:21:31 -07:00 committed by GitHub
parent 27d5557177
commit f0ffb7e31e

View File

@ -160,7 +160,7 @@ class TLFragmenter(val minSize: Int, val maxSize: Int, val alwaysMin: Boolean =
// First, handle the return path
val acknum = RegInit(UInt(0, width = counterBits))
val dOrig = Reg(UInt())
val dToggle = Reg(Bool())
val dToggle = RegInit(Bool(false))
val dFragnum = out.d.bits.source(fragmentBits-1, 0)
val dFirst = acknum === UInt(0)
val dLast = dFragnum === UInt(0)