File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -521,6 +521,7 @@ class dbNetwork : public ConcreteNetwork
521521 static constexpr unsigned DBIDTAG_WIDTH = 0x4 ;
522522
523523 private:
524+ const LibertyCell* getLibertyCell (const Cell* cell) const ;
524525 void addDriverToCacheIfPresent (const Net* net, const Pin* drvr);
525526 void removeDriverFromCache (const Net* net);
526527 void removeDriverFromCache (const Net* net, const Pin* drvr);
@@ -530,7 +531,6 @@ class dbNetwork : public ConcreteNetwork
530531 // hierarchy separators. Used to recover an in-module name from a
531532 // path-qualified one stored in ODB.
532533 static std::string stripParentPrefix (const std::string& name);
533- const LibertyCell* getLibertyCell (const Cell* cell) const ;
534534
535535 std::set<const Cell*> hier_modules_;
536536 std::set<const Port*> concrete_ports_;
Original file line number Diff line number Diff line change @@ -3482,6 +3482,18 @@ LibertyCell* dbNetwork::libertyCell(dbInst* inst)
34823482 return libertyCell (dbToSta (inst));
34833483}
34843484
3485+ const LibertyCell* dbNetwork::getLibertyCell (const Cell* cell) const
3486+ {
3487+ const LibertyCell* lib_cell = libertyCell (cell);
3488+ if (!lib_cell) {
3489+ return nullptr ;
3490+ }
3491+ if (const TestCell* test_cell = lib_cell->testCell ()) {
3492+ lib_cell = test_cell;
3493+ }
3494+ return lib_cell;
3495+ }
3496+
34853497LibertyPort* dbNetwork::libertyPort (const Port* port) const
34863498{
34873499 if (isConcretePort (port)) {
@@ -5244,18 +5256,6 @@ Net* dbNetwork::highestNetAbove(Net* net) const
52445256 return net;
52455257}
52465258
5247- const LibertyCell* dbNetwork::getLibertyCell (const Cell* cell) const
5248- {
5249- const LibertyCell* lib_cell = libertyCell (cell);
5250- if (!lib_cell) {
5251- return nullptr ;
5252- }
5253- if (const TestCell* test_cell = lib_cell->testCell ()) {
5254- lib_cell = test_cell;
5255- }
5256- return lib_cell;
5257- }
5258-
52595259bool dbNetwork::isClockPin (odb::dbITerm* iterm) const
52605260{
52615261 const bool yes = (iterm->getSigType () == odb::dbSigType::CLOCK );
Original file line number Diff line number Diff line change @@ -159,8 +159,8 @@ cc_test(
159159 ],
160160 deps = [
161161 "//src/ant" ,
162- "//src/dbSta:dbReadVerilog" ,
163162 "//src/dbSta:dbNetwork" ,
163+ "//src/dbSta:dbReadVerilog" ,
164164 "//src/dpl" ,
165165 "//src/est" ,
166166 "//src/gpl" ,
You can’t perform that action at this time.
0 commit comments