Skip to content

Commit 5dc96f7

Browse files
authored
Make some helper utilities of report_cell_usage public.
This enables usage of these functions when using OpenROAD as a library. These helpers do not modify any internal design state of the dbModule or dbBlock. Signed-off-by: Mike Inouye <[email protected]>
1 parent 7e265db commit 5dc96f7

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/dbSta/include/db_sta/dbSta.hh

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,13 @@ class dbSta : public Sta, public odb::dbDatabaseObserver
208208
bool verbose,
209209
const char* file_name,
210210
const char* stage_name);
211+
void countInstancesByType(odb::dbModule* module,
212+
InstTypeMap& inst_type_stats,
213+
std::vector<dbInst*>& insts);
214+
void countPhysicalOnlyInstancesByType(InstTypeMap& inst_type_stats,
215+
std::vector<dbInst*>& insts);
216+
void addInstanceByTypeInstance(odb::dbInst* inst,
217+
InstTypeMap& inst_type_stats);
211218

212219
void reportTimingHistogram(int num_bins, const MinMax* min_max) const;
213220

@@ -230,14 +237,6 @@ class dbSta : public Sta, public odb::dbDatabaseObserver
230237
Cell* to_cell,
231238
LibertyCell* to_lib_cell) override;
232239

233-
void countInstancesByType(odb::dbModule* module,
234-
InstTypeMap& inst_type_stats,
235-
std::vector<dbInst*>& insts);
236-
void countPhysicalOnlyInstancesByType(InstTypeMap& inst_type_stats,
237-
std::vector<dbInst*>& insts);
238-
void addInstanceByTypeInstance(odb::dbInst* inst,
239-
InstTypeMap& inst_type_stats);
240-
241240
dbDatabase* db_ = nullptr;
242241
Logger* logger_ = nullptr;
243242

0 commit comments

Comments
 (0)