From 43124af2f3eab9a3491dd2c83c1922b1b7e07c2a Mon Sep 17 00:00:00 2001 From: chick Date: Mon, 6 Jun 2016 15:32:33 -0700 Subject: moved macro def for toUInt() int to Data and made do_asUInt (the macro target) there as an abstract method. This left clock without a do_asUInt, that has been implemented as an exception at this time --- chiselFrontend/src/main/scala/Chisel/Aggregate.scala | 6 ------ 1 file changed, 6 deletions(-) (limited to 'chiselFrontend/src/main/scala/Chisel/Aggregate.scala') diff --git a/chiselFrontend/src/main/scala/Chisel/Aggregate.scala b/chiselFrontend/src/main/scala/Chisel/Aggregate.scala index 8af4e9e9..f573592d 100644 --- a/chiselFrontend/src/main/scala/Chisel/Aggregate.scala +++ b/chiselFrontend/src/main/scala/Chisel/Aggregate.scala @@ -167,9 +167,6 @@ sealed class Vec[T <: Data] private (gen: => T, val length: Int) private[Chisel] lazy val flatten: IndexedSeq[Bits] = (0 until length).flatMap(i => this.apply(i).flatten) - /** Reinterpret cast to UInt. */ - def asUInt(): UInt = macro SourceInfoTransform.noArg - def do_asUInt(implicit sourceInfo: SourceInfo): UInt = SeqUtils.do_asUInt(this.flatten).asUInt() for ((elt, i) <- self zipWithIndex) @@ -347,9 +344,6 @@ class Bundle extends Aggregate(NO_DIR) { private[Chisel] def addElt(name: String, elt: Data): Unit = namedElts += name -> elt - /** Reinterpret cast to UInt. */ - def asUInt(): UInt = macro SourceInfoTransform.noArg - def do_asUInt(implicit sourceInfo: SourceInfo): UInt = SeqUtils.do_asUInt(this.flatten).asUInt() private[Chisel] override def _onModuleClose: Unit = // scalastyle:ignore method.name -- cgit v1.2.3