From 6c391e3b372242a24dc2e250a4f5e36bd2bafb64 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 30 Jul 2015 23:45:48 -0700 Subject: [PATCH] Use UInt(0), not UInt(width=0), for constant 0 --- uncore/src/main/scala/util.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uncore/src/main/scala/util.scala b/uncore/src/main/scala/util.scala index ff982e3f..58305e52 100644 --- a/uncore/src/main/scala/util.scala +++ b/uncore/src/main/scala/util.scala @@ -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)))