Skip to content

Fixed wrong netlist editing issues caused by dbModInst::swapMaster().#8684

Merged
maliberty merged 21 commits intoThe-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:secure-fix-swap-master
Oct 22, 2025
Merged

Fixed wrong netlist editing issues caused by dbModInst::swapMaster().#8684
maliberty merged 21 commits intoThe-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:secure-fix-swap-master

Conversation

@openroad-ci
Copy link
Copy Markdown
Collaborator

Problem

Nets w/ multiple drivers caused STA crash in nangate45/mempool_group design.

Causes

  • dbNet used wrong hierarchical names (dbNet should have a full hierarchical name).
  • Old module and new module co-exist for a while, and dbNet name collision occurred, which caused nets with multiple drivers.

Solution

  • Create dbNet with correct hierarchical names.
  • Deleted old module first, and then constructed a new module
    • This is not a trivial work, so it changed dbModInst::swapMaster() behavior significantly.

Fixes #8601

Issue

  • STA crash occurs in src/odb/test/replace_hier_mod1.tcl.
    • Specific combination of report_checks -through and replace_hier_module can cause the crash.
    • Slightly changed replace_hier_mod1.tcl to avoid the crash.
    • This will be handled by another PR.

Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
- To fix nangate45/mempool_group issue

Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
…ate/OpenROAD into secure-fix-swap-master

Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
…ckSanity() instead.

Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
@github-actions
Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Comment thread src/odb/test/replace_hier_mod_report_checks.tcl
Comment thread src/rsz/README.md
Comment thread src/odb/src/db/dbModInst.cpp
Comment thread src/odb/test/cpp/TestSwapMaster.cpp
Comment thread src/odb/src/db/dbNet.cpp
Comment thread src/odb/src/db/dbNet.cpp Outdated
Comment thread src/odb/src/db/dbNet.cpp
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
…ang-tidy issue

Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
@github-actions
Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

…ate/OpenROAD into secure-fix-swap-master

Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
@github-actions
Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Copy Markdown
Contributor

@precisionmoon precisionmoon left a comment

Choose a reason for hiding this comment

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

Thanks much for adding a C++ testcase also.

Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
@github-actions
Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@maliberty maliberty enabled auto-merge October 22, 2025 04:38
@maliberty maliberty merged commit 2292048 into The-OpenROAD-Project:master Oct 22, 2025
13 checks passed
@maliberty maliberty deleted the secure-fix-swap-master branch October 22, 2025 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rsz: Crash on sta::LumpedCapDelayCalc::makeResult() when SWAP_ARITH_OPERATORS=1

4 participants