summaryrefslogtreecommitdiff
path: root/src/main/scala/Chisel/Data.scala
diff options
context:
space:
mode:
authorAndrew Waterman2016-01-28 12:05:03 -0800
committerAndrew Waterman2016-01-28 12:05:03 -0800
commit41674d5e130f64d7489fdb8583b8f4ad88b64aeb (patch)
tree9df546ee0291e77aebbae0b752bbde961c752c63 /src/main/scala/Chisel/Data.scala
parentbce4a96934fe8575b71769f2e52a2b75a068d34d (diff)
Use FIRRTL is invalid construct
Diffstat (limited to 'src/main/scala/Chisel/Data.scala')
-rw-r--r--src/main/scala/Chisel/Data.scala10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/main/scala/Chisel/Data.scala b/src/main/scala/Chisel/Data.scala
index 1011fe47..0ac3ee32 100644
--- a/src/main/scala/Chisel/Data.scala
+++ b/src/main/scala/Chisel/Data.scala
@@ -119,7 +119,7 @@ object Wire {
if (init != null) {
x := init
} else {
- x.flatten.foreach(e => e := e.fromInt(0))
+ pushCommand(DefInvalid(x.ref))
}
x
}
@@ -141,11 +141,3 @@ sealed class Clock(dirArg: Direction) extends Element(dirArg, Width(1)) {
case _ => this badConnect that
}
}
-
-// TODO: check with FIRRTL specs, how much official implementation flexibility
-// is there?
-/** A source of garbage data, used to initialize Wires to a don't-care value. */
-private object Poison extends Command {
- def apply[T <: Data](t: T): T =
- pushCommand(DefPoison(t.cloneType)).id
-}