From 9477032c1c2fcd432aca0c423dbe5330cd95a221 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 16 Jul 2015 17:02:56 -0700 Subject: toBits should return UInt --- src/main/scala/FP.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/scala/FP.scala') diff --git a/src/main/scala/FP.scala b/src/main/scala/FP.scala index 3c16ce4c..7f2615f3 100644 --- a/src/main/scala/FP.scala +++ b/src/main/scala/FP.scala @@ -87,7 +87,7 @@ class Flo(dir: Direction = NO_DIR, val value:Option[Float] = None) extends Eleme pushCommand(DefPrim(d.defd.cid, d.toType, BitsToFlo, Array(this.ref), NoLits)) d } - override def toBits: Bits = { + override def toBits: UInt = { val d = new UInt(dir, 32) pushCommand(DefPrim(d.defd.cid, d.toType, FloToBits, Array(this.ref), NoLits)) d @@ -202,7 +202,7 @@ class Dbl(dir: Direction, val value: Option[Double] = None) extends Element(dir, pushCommand(DefPrim(d.defd.cid, d.toType, BitsToDbl, Array(this.ref), NoLits)) d } - override def toBits: Bits = { + override def toBits: UInt = { val d = new UInt(dir, 64) pushCommand(DefPrim(d.defd.cid, d.toType, DblToBits, Array(this.ref), NoLits)) d -- cgit v1.2.3