diff options
| author | Andrew Waterman | 2015-07-28 14:01:52 -0700 |
|---|---|---|
| committer | Andrew Waterman | 2015-07-28 14:01:52 -0700 |
| commit | 58aa74818e4bf82d0ab34eeed7648370c1d02d81 (patch) | |
| tree | b6c09f0a664042ad937dc457531f701e1a3f0491 /src/main/scala/Chisel/FP.scala | |
| parent | 1332788aac9f129d56effdd92a1c7c7e1d64ab00 (diff) | |
Make isLit/litValue immutable
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 f7bbaae5..cbe800f9 100644 --- a/src/main/scala/Chisel/FP.scala +++ b/src/main/scala/Chisel/FP.scala @@ -88,7 +88,7 @@ class Flo(dir: Direction = NO_DIR, val value:Option[Float] = None) extends Eleme d } override def toBits: UInt = { - val d = new UInt(dir, 32) + val d = UInt(dir, 32) pushCommand(DefPrim(d.defd.cid, d.toType, FloToBits, Array(this.ref), NoLits)) d } @@ -203,7 +203,7 @@ class Dbl(dir: Direction, val value: Option[Double] = None) extends Element(dir, d } override def toBits: UInt = { - val d = new UInt(dir, 64) + val d = UInt(dir, 64) pushCommand(DefPrim(d.defd.cid, d.toType, DblToBits, Array(this.ref), NoLits)) d } |
