From 52824ce57e9d60fe6ef721cfb073249e654dcf46 Mon Sep 17 00:00:00 2001 From: Aditya Naik Date: Mon, 3 Jun 2024 19:41:04 -0700 Subject: fix stuff in src/ build is failing with a compile error in 3.3.3 due to something in Aggregate.scala. reduce to smallest form and file a bug report maybe? --- src/main/scala/chisel3/util/Counter.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/scala/chisel3/util/Counter.scala') diff --git a/src/main/scala/chisel3/util/Counter.scala b/src/main/scala/chisel3/util/Counter.scala index be6e3257..ba9466e1 100644 --- a/src/main/scala/chisel3/util/Counter.scala +++ b/src/main/scala/chisel3/util/Counter.scala @@ -55,7 +55,9 @@ class Counter private (r: Range, oldN: Option[Int] = None) extends AffectsChisel * * @param n number of steps before the counter resets */ - def this(n: Int) { this(0 until math.max(1, n), Some(n)) } + def this(n: Int) = { + this(0 until math.max(1, n), Some(n)) + } /** The current value of the counter. */ val value = if (r.length > 1) RegInit(r.head.U(width.W)) else WireInit(r.head.U) -- cgit v1.2.3