diff --git a/src/dbSta/include/db_sta/dbNetwork.hh b/src/dbSta/include/db_sta/dbNetwork.hh index 07e90ce40da..47f3b92c06d 100644 --- a/src/dbSta/include/db_sta/dbNetwork.hh +++ b/src/dbSta/include/db_sta/dbNetwork.hh @@ -93,19 +93,6 @@ class dbNetwork : public ConcreteNetwork dbNetwork(); ~dbNetwork() override; - // unique addresses for the db objects - static constexpr unsigned DBITERM_ID = 0x0; - static constexpr unsigned DBBTERM_ID = 0x1; - static constexpr unsigned DBINST_ID = 0x2; - static constexpr unsigned DBNET_ID = 0x3; - static constexpr unsigned DBMODITERM_ID = 0x4; - static constexpr unsigned DBMODBTERM_ID = 0x5; - static constexpr unsigned DBMODINST_ID = 0x6; - static constexpr unsigned DBMODNET_ID = 0x7; - static constexpr unsigned DBMODULE_ID = 0x8; - // Number of lower bits used - static constexpr unsigned DBIDTAG_WIDTH = 0x4; - void init(dbDatabase* db, Logger* logger); void setBlock(dbBlock* block); void clear() override; @@ -118,7 +105,6 @@ class dbNetwork : public ConcreteNetwork void addObserver(dbNetworkObserver* observer); void removeObserver(dbNetworkObserver* observer); - ObjectId getDbNwkObjectId(dbObjectType typ, ObjectId db_id) const; dbBlock* block() const { return block_; } void makeLibrary(dbLib* lib); void makeCell(Library* library, dbMaster* master); @@ -303,6 +289,8 @@ class dbNetwork : public ConcreteNetwork PinVisitor& visitor, NetSet& visited_nets) const override; bool portMsbFirst(const char* port_name, const char* cell_name); + ObjectId getDbNwkObjectId(dbObjectType typ, ObjectId db_id) const; + dbDatabase* db_ = nullptr; Logger* logger_ = nullptr; dbBlock* block_ = nullptr; @@ -310,6 +298,19 @@ class dbNetwork : public ConcreteNetwork Cell* top_cell_ = nullptr; std::set observers_; + // unique addresses for the db objects + static constexpr unsigned DBITERM_ID = 0x0; + static constexpr unsigned DBBTERM_ID = 0x1; + static constexpr unsigned DBINST_ID = 0x2; + static constexpr unsigned DBNET_ID = 0x3; + static constexpr unsigned DBMODITERM_ID = 0x4; + static constexpr unsigned DBMODBTERM_ID = 0x5; + static constexpr unsigned DBMODINST_ID = 0x6; + static constexpr unsigned DBMODNET_ID = 0x7; + static constexpr unsigned DBMODULE_ID = 0x8; + // Number of lower bits used + static constexpr unsigned DBIDTAG_WIDTH = 0x4; + private: bool hierarchy_ = false; };