Skip to content

Commit c5f09f2

Browse files
authored
Merge pull request #8716 from The-OpenROAD-Project-staging/mpl-corner-pushing
mpl: push clusters with macros to corners instead of edges
2 parents 4175450 + 9487ce0 commit c5f09f2

11 files changed

+3610
-3610
lines changed

src/mpl/src/SACoreSoftMacro.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,8 @@ void SACoreSoftMacro::calBoundaryPenalty()
454454
y_dist_from_root
455455
= std::min(global_ly, std::abs(root_->getHeight() - global_uy));
456456

457-
boundary_penalty_ += std::min(x_dist_from_root, y_dist_from_root)
458-
* soft_macro.getNumMacro();
457+
boundary_penalty_
458+
+= (x_dist_from_root + y_dist_from_root) * soft_macro.getNumMacro();
459459
}
460460
}
461461
// normalization

src/mpl/test/fixed_ios1.defok

Lines changed: 401 additions & 401 deletions
Large diffs are not rendered by default.

src/mpl/test/guides1.defok

Lines changed: 400 additions & 400 deletions
Large diffs are not rendered by default.

src/mpl/test/io_constraints1.defok

Lines changed: 400 additions & 400 deletions
Large diffs are not rendered by default.

src/mpl/test/io_constraints10.defok

Lines changed: 401 additions & 401 deletions
Large diffs are not rendered by default.

src/mpl/test/io_constraints2.defok

Lines changed: 401 additions & 401 deletions
Large diffs are not rendered by default.

src/mpl/test/io_constraints4.defok

Lines changed: 401 additions & 401 deletions
Large diffs are not rendered by default.

src/mpl/test/io_constraints6.defok

Lines changed: 401 additions & 401 deletions
Large diffs are not rendered by default.

src/mpl/test/io_constraints7.defok

Lines changed: 401 additions & 401 deletions
Large diffs are not rendered by default.

src/mpl/test/io_constraints7.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Test if the bundled nets inside annealing are correct for a block with
2-
# pins with different constraint regions and Macro -> IO connections.
2+
# pins with a constraint region and Macro -> IO connections.
33
source "helpers.tcl"
44

55
read_lef Nangate45/Nangate45.lef

0 commit comments

Comments
 (0)