diff options
| author | Andrew Waterman | 2016-01-28 12:05:03 -0800 |
|---|---|---|
| committer | Andrew Waterman | 2016-01-28 12:05:03 -0800 |
| commit | 41674d5e130f64d7489fdb8583b8f4ad88b64aeb (patch) | |
| tree | 9df546ee0291e77aebbae0b752bbde961c752c63 /src/main/scala/Chisel/Data.scala | |
| parent | bce4a96934fe8575b71769f2e52a2b75a068d34d (diff) | |
Use FIRRTL is invalid construct
Diffstat (limited to 'src/main/scala/Chisel/Data.scala')
| -rw-r--r-- | src/main/scala/Chisel/Data.scala | 10 |
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 -} |
