From 523abfdf49a3af747b2243a46415dc7a817154e4 Mon Sep 17 00:00:00 2001 From: jackbackrack Date: Fri, 24 Jul 2015 11:55:48 -0700 Subject: change to use doCloneType for users, add collectElts, get rid of delayedInit --- src/main/scala/FP.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/scala/FP.scala') diff --git a/src/main/scala/FP.scala b/src/main/scala/FP.scala index f7bbaae5..c22ee475 100644 --- a/src/main/scala/FP.scala +++ b/src/main/scala/FP.scala @@ -93,7 +93,7 @@ class Flo(dir: Direction = NO_DIR, val value:Option[Float] = None) extends Eleme d } def toType: Kind = FloType(isFlip) - def cloneType: this.type = new Flo(dir).asInstanceOf[this.type] + def doCloneType: this.type = new Flo(dir).asInstanceOf[this.type] def flatten: IndexedSeq[Bits] = IndexedSeq(toBits) def fromInt(x: Int): Flo = @@ -208,7 +208,7 @@ class Dbl(dir: Direction, val value: Option[Double] = None) extends Element(dir, d } def toType: Kind = DblType(isFlip) - def cloneType: this.type = new Dbl(dir).asInstanceOf[this.type] + def doCloneType: this.type = new Dbl(dir).asInstanceOf[this.type] def flatten: IndexedSeq[Bits] = IndexedSeq(toBits) def fromInt(x: Int): this.type = -- cgit v1.2.3