diff options
| author | jackbackrack | 2015-04-28 23:33:59 -0700 |
|---|---|---|
| committer | jackbackrack | 2015-04-28 23:33:59 -0700 |
| commit | 7ada20e324ca75116441d00b575ed217c41cc1c8 (patch) | |
| tree | 1a486c5782fdf1a58a5f797f4b4b7f780b6febe3 /src/main/scala/FP.scala | |
| parent | 189f2a123300f0c2ffe4487bb67c71a08736bd3e (diff) | |
add params, limited partial eval, conforming to compile riscv-mini
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 5f6cf579..8b1c2b0a 100644 --- a/src/main/scala/FP.scala +++ b/src/main/scala/FP.scala @@ -91,7 +91,7 @@ class Flo(dir: Direction = NO_DIR) extends Element(dir, 32) with Num[Flo] { pushCommand(DefPrim(d.defd.id, d.toType, FloToBits, Array(this.ref), NoLits)) d } - def toType: Type = FloType(isFlip) + def toType: Kind = FloType(isFlip) def cloneType: this.type = new Flo(dir).asInstanceOf[this.type] def flatten: Array[Bits] = Array[Bits](toBits) @@ -205,7 +205,7 @@ class Dbl(dir: Direction = null) extends Element(dir, 64) with Num[Dbl] { pushCommand(DefPrim(d.defd.id, d.toType, DblToBits, Array(this.ref), NoLits)) d } - def toType: Type = DblType(isFlip) + def toType: Kind = DblType(isFlip) def cloneType: this.type = new Dbl(dir).asInstanceOf[this.type] def flatten: Array[Bits] = Array[Bits](toBits) |
