Skip to content

Commit

Permalink
gpl: obey dont-use in mbff clustering
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Liberty <[email protected]>
  • Loading branch information
maliberty committed Jan 2, 2025
1 parent 472c5be commit 644531f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/gpl/src/mbff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include "db_sta/dbSta.hh"
#include "graphics.h"
#include "odb/dbTransform.h"
#include "rsz/Resizer.hh"
#include "sta/ArcDelayCalc.hh"
#include "sta/ClkNetwork.hh"
#include "sta/DcalcAnalysisPt.hh"
Expand Down Expand Up @@ -490,7 +491,8 @@ bool MBFF::IsValidTray(odb::dbInst* tray)
if (lib_cell == nullptr) {
return false;
}
if (!lib_cell->hasSequentials() || lib_cell->isClockGate()) {
if (!lib_cell->hasSequentials() || lib_cell->isClockGate()
|| resizer_->dontUse(lib_cell)) {
return false;
}

Expand Down Expand Up @@ -2421,6 +2423,7 @@ void MBFF::ReadPaths()
MBFF::MBFF(odb::dbDatabase* db,
sta::dbSta* sta,
utl::Logger* log,
rsz::Resizer* resizer,
int threads,
int multistart,
int num_paths,
Expand All @@ -2430,7 +2433,7 @@ MBFF::MBFF(odb::dbDatabase* db,
sta_(sta),
network_(sta_->getDbNetwork()),
corner_(sta_->cmdCorner()),
log_(log),
resizer_(resizer),
num_threads_(threads),
multistart_(multistart),
num_paths_(num_paths),
Expand Down
6 changes: 6 additions & 0 deletions src/gpl/src/mbff.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ namespace utl {
class Logger;
}

namespace rsz {
class Resizer;
}

namespace sta {
class dbNetwork;
class dbSta;
Expand Down Expand Up @@ -81,6 +85,7 @@ class MBFF
MBFF(odb::dbDatabase* db,
sta::dbSta* sta,
utl::Logger* log,
rsz::Resizer* resizer,
int threads,
int multistart,
int num_paths,
Expand Down Expand Up @@ -239,6 +244,7 @@ class MBFF
sta::dbNetwork* network_;
sta::Corner* corner_;
utl::Logger* log_;
rsz::Resizer* resizer_;
std::unique_ptr<Graphics> graphics_;
int num_threads_;
int multistart_;
Expand Down
2 changes: 1 addition & 1 deletion src/gpl/src/replace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ void Replace::runMBFF(int max_sz,
int threads,
int num_paths)
{
MBFF pntset(db_, sta_, log_, threads, 20, num_paths, gui_debug_);
MBFF pntset(db_, sta_, log_, rs_, threads, 20, num_paths, gui_debug_);
pntset.Run(max_sz, alpha, beta);
}

Expand Down

0 comments on commit 644531f

Please sign in to comment.