odb: create dbBTerm::getChipBump#9697
odb: create dbBTerm::getChipBump#9697ahmed532 wants to merge 2 commits intoThe-OpenROAD-Project:masterfrom
Conversation
To be able to get the dbChipBump from the bterm Signed-off-by: Ahmed R. Mohamed <ahmed@precisioninno.com>
a8170a9 to
d12ccd3
Compare
There was a problem hiding this comment.
Code Review
This pull request introduces a new method dbBTerm::getChipBump() to provide a direct way to get the dbChipBump associated with a dbBTerm. This is achieved by adding a back-reference from dbBTerm to dbChipBump, which is populated when dbChipBump::setBTerm is called. The database schema has been updated accordingly. This new method is then used to refactor and simplify the logic in 3dblox.cpp, removing the need for manually building a port-to-bump map. The changes are well-implemented and improve code clarity. I have one minor suggestion to improve code quality.
Note: Security Review did not run due to the size of the PR.
src/odb/src/db/dbBTerm.cpp
Outdated
|
|
||
| dbChipBump* dbBTerm::getChipBump() const | ||
| { | ||
| _dbBTerm* obj = (_dbBTerm*) this; |
There was a problem hiding this comment.
|
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
|
clang-tidy review says "All clean, LGTM! 👍" |
Signed-off-by: Ahmed R. Mohamed <ahmed@precisioninno.com>
|
clang-tidy review says "All clean, LGTM! 👍" |
To be able to get the dbChipBump from the bterm
Closes: #9626