Skip to content

Commit 76b93b6

Browse files
committed
changes to accomodate for new changes in OpenSTA 6/30 pulling latest
Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>
1 parent 7304ba7 commit 76b93b6

30 files changed

Lines changed: 39 additions & 39 deletions

src/Design.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ bool Design::isSequential(odb::dbMaster* master)
190190
if (!lib_cell) {
191191
return false;
192192
}
193-
return lib_cell->hasSequentials();
193+
return lib_cell->isSequential();
194194
}
195195

196196
bool Design::isInClock(odb::dbInst* inst)

src/cts/src/LatencyBalancer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ bool LatencyBalancer::propagateClock(odb::dbITerm* input)
582582
return true;
583583
}
584584
// Combinational components
585-
if (!libertyCell->hasSequentials()) {
585+
if (!libertyCell->isSequential()) {
586586
return true;
587587
}
588588
sta::LibertyPort* inputPort

src/cut/src/abc_library_factory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static bool IsCombinational(sta::LibertyCell* cell)
7878
return false;
7979
}
8080
return (!cell->isClockGate() && !cell->isPad() && !cell->isMacro()
81-
&& !cell->hasSequentials() && !cell->isLevelShifter()
81+
&& !cell->isSequential() && !cell->isLevelShifter()
8282
&& !cell->isIsolationCell() && !cell->isMemory());
8383
}
8484

src/cut/src/blif.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ bool Blif::writeBlif(const char* file_name, bool write_arrival_requireds)
9595
auto master_name = master->getName();
9696

9797
std::string current_gate
98-
= ((cell->hasSequentials()) ? ".mlatch " : ".gate ") + master_name;
98+
= ((cell->isSequential()) ? ".mlatch " : ".gate ") + master_name;
9999
std::string current_connections, current_clock;
100100
std::set<std::string> current_clocks;
101101

@@ -250,10 +250,10 @@ bool Blif::writeBlif(const char* file_name, bool write_arrival_requireds)
250250

251251
current_gate += current_connections;
252252

253-
if (cell->hasSequentials() && current_clocks.size() != 1) {
253+
if (cell->isSequential() && current_clocks.size() != 1) {
254254
continue;
255255
}
256-
if (cell->hasSequentials()) {
256+
if (cell->isSequential()) {
257257
current_gate += " " + current_clock;
258258
}
259259

src/cut/src/logic_cut.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ void ConnectPinToDriver(
212212
abc::Abc_Obj_t* abc_net = abc::Abc_NtkCreateNet(&abc_network);
213213

214214
if (network->isTopInstance(driver_instance)
215-
|| network->libertyCell(driver_instance)->hasSequentials()) {
215+
|| network->libertyCell(driver_instance)->isSequential()) {
216216
abc::Abc_Obj_t* abc_input = abc::Abc_NtkCreatePi(&abc_network);
217217
abc::Abc_ObjAddFanin(abc_net, abc_input);
218218
std::string driver_name = network->name(driver);

src/dbSta/src/dbNetwork.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5603,7 +5603,7 @@ bool dbNetwork::isValidFlop(odb::dbInst* FF) const
56035603
return false;
56045604
}
56055605
const LibertyCell* lib_cell = testCell(cell);
5606-
if (lib_cell == nullptr || !lib_cell->hasSequentials()) {
5606+
if (lib_cell == nullptr || !lib_cell->isSequential()) {
56075607
return false;
56085608
}
56095609

src/dbSta/src/dbSta.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ dbSta::InstType dbSta::getInstanceType(odb::dbInst* inst)
614614
if (lib_cell->isLevelShifter()) {
615615
return STD_LEVEL_SHIFT;
616616
}
617-
if (lib_cell->hasSequentials()) {
617+
if (lib_cell->isSequential()) {
618618
return STD_SEQUENTIAL;
619619
}
620620
if (lib_cell->portCount() == 0) {

src/dft/src/cells/ScanCellFactory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ TypeOfCell IdentifyCell(odb::dbInst* inst, sta::dbSta* sta)
6666
sta::dbNetwork* db_network = sta->getDbNetwork();
6767
sta::LibertyCell* liberty_cell
6868
= GetLibertyCell(inst->getMaster(), db_network);
69-
if (liberty_cell != nullptr && liberty_cell->hasSequentials()
69+
if (liberty_cell != nullptr && liberty_cell->isSequential()
7070
&& !inst->getMaster()->isBlock()) {
7171
// we assume that we are only dealing with one bit cells, but in the future
7272
// we could deal with multibit cells too

src/dft/src/replace/ScanReplace.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ void ScanReplace::collectScanCellAvailable()
278278
}
279279

280280
// We only care about sequential cells in DFT
281-
if (!liberty_cell->hasSequentials()) {
281+
if (!liberty_cell->isSequential()) {
282282
continue;
283283
}
284284

@@ -389,7 +389,7 @@ void ScanReplace::scanReplace(odb::dbBlock* block)
389389
continue;
390390
}
391391

392-
if (!from_liberty_cell->hasSequentials()
392+
if (!from_liberty_cell->isSequential()
393393
|| from_liberty_cell->isClockGate()) {
394394
// If the cell is not sequential, then there is nothing to replace
395395
continue;

src/dft/src/utils/Utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ bool IsSequentialCell(sta::dbNetwork* db_network, odb::dbInst* instance)
5454
odb::dbMaster* master = instance->getMaster();
5555
sta::Cell* master_cell = db_network->dbToSta(master);
5656
sta::LibertyCell* liberty_cell = db_network->libertyCell(master_cell);
57-
return liberty_cell->hasSequentials();
57+
return liberty_cell->isSequential();
5858
}
5959

6060
odb::dbInst* ReplaceCell(

0 commit comments

Comments
 (0)