Skip to content

Commit de552b4

Browse files
committed
Buildifier.
Signed-off-by: Mike Inouye <mikeinouye@google.com>
1 parent 89f47ff commit de552b4

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/dbSta/include/db_sta/dbNetwork.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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_;

src/dbSta/src/dbNetwork.cc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff 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+
34853497
LibertyPort* 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-
52595259
bool dbNetwork::isClockPin(odb::dbITerm* iterm) const
52605260
{
52615261
const bool yes = (iterm->getSigType() == odb::dbSigType::CLOCK);

src/gpl/test/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)