diff options
| author | Andrew Waterman | 2015-08-13 12:38:12 -0700 |
|---|---|---|
| committer | Andrew Waterman | 2015-08-13 15:00:33 -0700 |
| commit | 2b85e2d1b2f45f6977f626f1af5b2ef9a7987fde (patch) | |
| tree | 57977f6fb8decf6c2ad1b805216ba5894140b62b /src/main/scala/Chisel/FP.scala | |
| parent | a20354fd7b6f0e28a9b81cab09a0b9d2a4aa0244 (diff) | |
FP stuff doesn't belong in Data
Diffstat (limited to 'src/main/scala/Chisel/FP.scala')
| -rw-r--r-- | src/main/scala/Chisel/FP.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/Chisel/FP.scala b/src/main/scala/Chisel/FP.scala index 442b1246..0bbb869d 100644 --- a/src/main/scala/Chisel/FP.scala +++ b/src/main/scala/Chisel/FP.scala @@ -92,7 +92,7 @@ sealed abstract class FloBase[T <: Data](dir: Direction, width: Width) extends E class Flo(dir: Direction = NO_DIR, val value:Option[FloLit] = None) extends FloBase[Flo](dir, Width(32)) with Num[Flo] { type T = Flo; - override def floLitValue: Float = value.get.num + def floLitValue: Float = value.get.num def cloneTypeWidth(width: Width): this.type = cloneType override def fromBits(n: Bits): this.type = pushOp(DefPrim(cloneType, BitsToFlo, this.ref)).asInstanceOf[this.type] @@ -172,7 +172,7 @@ import DblPrimOp._ class Dbl(dir: Direction, val value: Option[DblLit] = None) extends FloBase[Dbl](dir, Width(64)) with Num[Dbl] { type T = Dbl; - override def dblLitValue: Double = value.get.num + def dblLitValue: Double = value.get.num def cloneTypeWidth(width: Width): this.type = cloneType override def fromBits(n: Bits): this.type = pushOp(DefPrim(cloneType, BitsToDbl, this.ref)).asInstanceOf[this.type] |
