summaryrefslogtreecommitdiff
path: root/src/main/scala/Chisel/FP.scala
diff options
context:
space:
mode:
authorAndrew Waterman2015-07-24 19:00:29 -0700
committerAndrew Waterman2015-07-24 19:00:29 -0700
commit54c57837d357af7d629bfe591b55fe645cd0ca9d (patch)
treed84cde66d2c509347d4c53cb7f61fd8099eebad8 /src/main/scala/Chisel/FP.scala
parent90cf2623a3491c5b5bc076e2e9f8c84a3e9aa86d (diff)
Undo doCloneType; fix collectElts shenanigans
We now call collectElts when the module stack is popped, rather than having to do it all over the place.
Diffstat (limited to 'src/main/scala/Chisel/FP.scala')
-rw-r--r--src/main/scala/Chisel/FP.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/Chisel/FP.scala b/src/main/scala/Chisel/FP.scala
index c22ee475..f7bbaae5 100644
--- a/src/main/scala/Chisel/FP.scala
+++ b/src/main/scala/Chisel/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 doCloneType: this.type = new Flo(dir).asInstanceOf[this.type]
+ def cloneType: 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 doCloneType: this.type = new Dbl(dir).asInstanceOf[this.type]
+ def cloneType: this.type = new Dbl(dir).asInstanceOf[this.type]
def flatten: IndexedSeq[Bits] = IndexedSeq(toBits)
def fromInt(x: Int): this.type =