Skip to content

Commit

Permalink
dbNetwork getOwningInstanceParent api call. Signed-off-by:Andy Fox <a…
Browse files Browse the repository at this point in the history
[email protected]>

Signed-off-by: andyfox-rushc <[email protected]>
  • Loading branch information
andyfox-rushc committed Sep 13, 2024
1 parent 49143da commit 2a03fe1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dbSta/src/dbNetwork.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2595,21 +2595,21 @@ dbNetworkObserver::~dbNetworkObserver()
/*
Hierarchical support api
*/
Instance* dbNetwork::getOwningInstanceParent(Pin* pin)
Instance* dbNetwork::getOwningInstanceParent(Pin* drvr_pin)
{
Instance* inst = instance(drvr_pin);
dbInst* db_inst = nullptr;
odb::dbModInst* mod_inst = nullptr;
db_network_->staToDb(inst, db_inst, mod_inst);
staToDb(inst, db_inst, mod_inst);
odb::dbModule* module = nullptr;
if (db_inst) {
module = db_inst->getModule();
} else if (mod_inst) {
module = mod_inst->getParent();
}
Instance* parent = (module == (block_->getTopModule()))
? db_network_->topInstance()
: db_network_->dbToSta(module->getModInst());
? topInstance()
: dbToSta(module->getModInst());
return parent;
}

Expand Down

0 comments on commit 2a03fe1

Please sign in to comment.