diff options
| author | jackbackrack | 2015-07-24 11:55:48 -0700 |
|---|---|---|
| committer | jackbackrack | 2015-07-24 11:55:48 -0700 |
| commit | 523abfdf49a3af747b2243a46415dc7a817154e4 (patch) | |
| tree | babdf70f5a91e5137dc18f06dc6f959160bf20cc /src/main/scala/FP.scala | |
| parent | ea31aa07364fd41e54d6426395a7cc390a525703 (diff) | |
change to use doCloneType for users, add collectElts, get rid of delayedInit
Diffstat (limited to 'src/main/scala/FP.scala')
| -rw-r--r-- | src/main/scala/FP.scala | 4 |
1 files changed, 2 insertions, 2 deletions
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 = |
