Skip to content

mpl: ensure that macros inside a module are kept out of a std cell group - #11147

Open
AcKoucher wants to merge 2 commits into
The-OpenROAD-Project:masterfrom
AcKoucher:mpl-fix-keep-clustering-data
Open

mpl: ensure that macros inside a module are kept out of a std cell group#11147
AcKoucher wants to merge 2 commits into
The-OpenROAD-Project:masterfrom
AcKoucher:mpl-fix-keep-clustering-data

Conversation

@AcKoucher

@AcKoucher AcKoucher commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Summary

I had to convert the asserts to production checks to ensure that the new test catches the bug as addInst actually can move the instance out of its already defined group. So in the regression test, the macro would be assigned to the wrong group, but moved to the correct group.

Type of Change

  • Bug fix

Impact

Groups are correctly created.

Verification

  • I have verified that the local build succeeds (./etc/Build.sh).
  • I have run the relevant tests and they pass.
  • My code follows the repository's formatting guidelines.
  • I have included tests to prevent regressions.
  • I have signed my commits (DCO).

Related Issues

Found when testing #11122.

Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
1. Add new regression test.
2. Rename test keep_clustering_data -> keep_clustering_data1.
3. Convert asserts to production checks to ensure new test catches the bug.

Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
@AcKoucher
AcKoucher requested a review from a team as a code owner August 14, 2026 19:36
@AcKoucher
AcKoucher requested a review from joaomai August 14, 2026 19:36

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the HierRTLMP clustering logic to prevent incorrect instance grouping by adding checks for instance types (isBlock()) relative to the cluster type. It also introduces a new test case, keep_clustering_data2, to verify this behavior. The reviewer suggests an additional improvement to symmetrically skip standard cells when the cluster type is HardMacroCluster to ensure consistency across different cluster types.

Comment thread src/mpl/src/hier_rtlmp.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant