Skip to content

Commit

Permalink
dbSta: make things private that can be
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Liberty <[email protected]>
  • Loading branch information
maliberty committed Jun 10, 2024
1 parent b29477a commit 77ea5a4
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions src/dbSta/include/db_sta/dbNetwork.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down Expand Up @@ -303,13 +289,28 @@ 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;
Instance* top_instance_;
Cell* top_cell_ = nullptr;
std::set<dbNetworkObserver*> 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;
};
Expand Down

0 comments on commit 77ea5a4

Please sign in to comment.