diff options
| author | jackbackrack | 2015-07-24 07:40:43 -0700 |
|---|---|---|
| committer | jackbackrack | 2015-07-24 07:40:43 -0700 |
| commit | ea31aa07364fd41e54d6426395a7cc390a525703 (patch) | |
| tree | 5ac2fec5f71159b68462b56065a92cf913b8a3aa /src/main/scala/FP.scala | |
| parent | 10bf9045159ee0cb996a39b1dc0453ab82efdfb9 (diff) | |
| parent | 40679ea4ba680427959d981547c33c7f00602337 (diff) | |
use delayed init to ensure collectelts and further improve walk bundle and changed getDeclaredMethods to getMethods for inheritance but still gets constructor param
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 7f2615f3..f7bbaae5 100644 --- a/src/main/scala/FP.scala +++ b/src/main/scala/FP.scala @@ -94,7 +94,7 @@ class Flo(dir: Direction = NO_DIR, val value:Option[Float] = None) extends Eleme } def toType: Kind = FloType(isFlip) def cloneType: this.type = new Flo(dir).asInstanceOf[this.type] - def flatten: Array[Bits] = Array[Bits](toBits) + def flatten: IndexedSeq[Bits] = IndexedSeq(toBits) def fromInt(x: Int): Flo = Flo(x.toFloat).asInstanceOf[this.type] @@ -209,7 +209,7 @@ class Dbl(dir: Direction, val value: Option[Double] = None) extends Element(dir, } def toType: Kind = DblType(isFlip) def cloneType: this.type = new Dbl(dir).asInstanceOf[this.type] - def flatten: Array[Bits] = Array[Bits](toBits) + def flatten: IndexedSeq[Bits] = IndexedSeq(toBits) def fromInt(x: Int): this.type = Dbl(x.toDouble).asInstanceOf[this.type] |
