Skip to content

Commit bbeed25

Browse files
committed
GrandCentral: put interface before the XMR's.
Thanks @seldridge!
1 parent 4924831 commit bbeed25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Dialect/FIRRTL/Transforms/GrandCentral.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -2595,7 +2595,8 @@ void GrandCentralPass::runOnOperation() {
25952595

25962596
interfaceVec.push_back(topIface);
25972597

2598-
// Instantiate the interface inside the companion.
2598+
// Instantiate the interface before the view and the XMR's we inserted above.
2599+
viewBuilder.setInsertionPoint(view);
25992600
viewBuilder.create<sv::InterfaceInstanceOp>(
26002601
topIface.getInterfaceType(), view.getName(),
26012602
// TODO: Proper inner sym namespace handling

0 commit comments

Comments
 (0)