diff options
Diffstat (limited to 'src/main/scala/firrtl/transforms/GroupComponents.scala')
| -rw-r--r-- | src/main/scala/firrtl/transforms/GroupComponents.scala | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/scala/firrtl/transforms/GroupComponents.scala b/src/main/scala/firrtl/transforms/GroupComponents.scala index ae110414..c2a79d53 100644 --- a/src/main/scala/firrtl/transforms/GroupComponents.scala +++ b/src/main/scala/firrtl/transforms/GroupComponents.scala @@ -336,13 +336,6 @@ class GroupComponents extends Transform with DependencyAPIMigration { } def onStmt(stmt: Statement): Unit = stmt match { case w: WDefInstance => - case h: IsDeclaration => - bidirGraph.addVertex(h.name) - h.map(onExpr(WRef(h.name))) - case Attach(_, exprs) => // Add edge between each expression - exprs.tail.map(onExpr(getWRef(exprs.head))) - case Connect(_, loc, expr) => - onExpr(getWRef(loc))(expr) case q @ Stop(_, _, clk, en) => val simName = simNamespace.newTemp simulations(simName) = q @@ -351,6 +344,13 @@ class GroupComponents extends Transform with DependencyAPIMigration { val simName = simNamespace.newTemp simulations(simName) = q (args :+ clk :+ en).map(onExpr(WRef(simName))) + case h: IsDeclaration => + bidirGraph.addVertex(h.name) + h.map(onExpr(WRef(h.name))) + case Attach(_, exprs) => // Add edge between each expression + exprs.tail.map(onExpr(getWRef(exprs.head))) + case Connect(_, loc, expr) => + onExpr(getWRef(loc))(expr) case Block(stmts) => stmts.foreach(onStmt) case ignore @ (_: IsInvalid | EmptyStmt) => // do nothing case other => throw new Exception(s"Unexpected Statement $other") |
