diff options
Diffstat (limited to 'src/main/scala/firrtl/transforms/TopWiring.scala')
| -rw-r--r-- | src/main/scala/firrtl/transforms/TopWiring.scala | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/scala/firrtl/transforms/TopWiring.scala b/src/main/scala/firrtl/transforms/TopWiring.scala index a1161ac6..945deb7e 100644 --- a/src/main/scala/firrtl/transforms/TopWiring.scala +++ b/src/main/scala/firrtl/transforms/TopWiring.scala @@ -70,11 +70,10 @@ class TopWiringTransform extends Transform { case d: Port => (true, d.tpe, sourceList(ComponentName(w.name,currentmodule))) case _ => throw new Exception(s"Cannot wire this type of declaration! ${w.serialize}") } - val name = w.name sourceMap.get(currentmodule.name) match { case Some(xs:Seq[(ComponentName, Type, Boolean, InstPath, String)]) => - sourceMap.update(currentmodule.name, xs :+ - (ComponentName(w.name,currentmodule), tpe, isport ,Seq[String](w.name), prefix)) + sourceMap.update(currentmodule.name, xs :+( + (ComponentName(w.name,currentmodule), tpe, isport ,Seq[String](w.name), prefix) )) case None => sourceMap(currentmodule.name) = Seq((ComponentName(w.name,currentmodule), tpe, isport ,Seq[String](w.name), prefix)) @@ -103,11 +102,10 @@ class TopWiringTransform extends Transform { case d: Port => (true, d.tpe, sourceList(ComponentName(w.name,currentmodule))) case _ => throw new Exception(s"Cannot wire this type of declaration! ${w.serialize}") } - val name = w.name sourceMap.get(currentmodule.name) match { case Some(xs:Seq[(ComponentName, Type, Boolean, InstPath, String)]) => - sourceMap.update(currentmodule.name, xs :+ - (ComponentName(w.name,currentmodule), tpe, isport ,Seq[String](w.name), prefix)) + sourceMap.update(currentmodule.name, xs :+( + (ComponentName(w.name,currentmodule), tpe, isport ,Seq[String](w.name), prefix) )) case None => sourceMap(currentmodule.name) = Seq((ComponentName(w.name,currentmodule), tpe, isport ,Seq[String](w.name), prefix)) |
