Skip to content

Commit

Permalink
Remove hierarchy guard on parent instance for dbInst
Browse files Browse the repository at this point in the history
Signed-off-by: andyfox-rushc <[email protected]>
  • Loading branch information
andyfox-rushc committed Oct 13, 2024
1 parent 3a75eb5 commit 7603832
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions src/dbSta/src/dbNetwork.cc
Original file line number Diff line number Diff line change
Expand Up @@ -850,22 +850,19 @@ Instance* dbNetwork::parent(const Instance* instance) const
if (mod_inst) {
auto parent_module = mod_inst->getParent();
if (parent_module) {
if (auto parent_inst = parent_module->getModInst()) {
if (parent_inst) {
return dbToSta(parent_inst);
}
auto parent_inst = parent_module->getModInst();
if (parent_inst) {
return dbToSta(parent_inst);
}
}
}
if (hierarchy_) {
if (db_inst) {
auto parent_module = db_inst->getModule();
if (parent_module) {
if (auto parent_inst = parent_module->getModInst()) {
if (parent_inst) {
return dbToSta(parent_inst);
}
}

if (db_inst) {
auto parent_module = db_inst->getModule();
if (parent_module) {
auto parent_inst = parent_module->getModInst();
if (parent_inst) {
return dbToSta(parent_inst);
}
}
}
Expand Down

0 comments on commit 7603832

Please sign in to comment.