Skip to content

Commit bd12693

Browse files
authored
Merge pull request #8650 from The-OpenROAD-Project-staging/grt_fix_merge
grt: connect extra connections to the existing routing
2 parents 40be1ad + cdca1a7 commit bd12693

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/grt/src/GlobalRouter.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4553,6 +4553,15 @@ std::vector<GSegment> GlobalRouter::createConnectionForPositions(
45534553
connection.emplace_back(x1, y1, layer_hor, x2, y1, layer_hor);
45544554
connection.emplace_back(x2, y1, conn_layer + layer_fix, x2, y1, conn_layer);
45554555
connection.emplace_back(x2, y1, layer_ver, x2, y2, layer_ver);
4556+
4557+
// Add vias if the additional connections are not touching the existing
4558+
// routing.
4559+
if (layer1 < layer_hor) {
4560+
connection.emplace_back(x1, y1, layer1, x1, y1, layer_hor);
4561+
}
4562+
if (layer2 < layer_ver) {
4563+
connection.emplace_back(x2, y2, layer_ver, x2, y2, layer2);
4564+
}
45564565
}
45574566

45584567
odb::Point via_pos1 = pin_pos1;

0 commit comments

Comments
 (0)