Skip to content

Commit afd4d35

Browse files
committed
mpl: ignore COVERs when searching for fixed insts in macro placement area
Signed-off-by: Arthur Koucher <[email protected]>
1 parent ad07cf9 commit afd4d35

File tree

6 files changed

+621
-3
lines changed

6 files changed

+621
-3
lines changed

src/mpl/src/clusterEngine.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ void ClusteringEngine::searchForFixedInstsInsideFloorplanShape()
174174
odb::Rect floorplan_shape = micronsToDbu(block_, tree_->floorplan_shape);
175175

176176
for (odb::dbInst* inst : block_->getInsts()) {
177-
if (inst->isBlock()) {
177+
odb::dbMaster* master = inst->getMaster();
178+
179+
if (master->isBlock() || master->isCover()) {
178180
continue;
179181
}
180182

src/mpl/test/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ COMPULSORY_TESTS = [
3535
"clocked_macro",
3636
"keep_clustering_data",
3737
"fixed_macros",
38+
"fixed_covers",
3839
]
3940

4041
# Disabled in CMakeLists.txt

src/mpl/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ or_integration_tests(
2828
clocked_macro
2929
keep_clustering_data
3030
fixed_macros
31+
fixed_covers
3132
)
3233

3334
# Skipped

0 commit comments

Comments
 (0)