1
0

Use UInt(0), not UInt(width=0), for constant 0

This commit is contained in:
Andrew Waterman 2015-07-30 23:45:48 -07:00
parent 4c0f996808
commit 6c391e3b37

View File

@ -54,7 +54,7 @@ class FlowThroughSerializer[T <: HasTileLinkData](gen: T, n: Int) extends Module
if(n == 1) {
io.in <> io.out
io.cnt := UInt(width = 0)
io.cnt := UInt(0)
io.done := Bool(true)
} else {
val cnt = Reg(init=UInt(0, width = log2Up(n)))