We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ff4b85 commit 03f7382Copy full SHA for 03f7382
1 file changed
src/dbSta/src/dbSta.cc
@@ -724,17 +724,7 @@ void dbSta::deleteInstance(Instance* inst)
724
725
void dbSta::replaceCell(Instance* inst, Cell* to_cell, LibertyCell* to_lib_cell)
726
{
727
- NetworkEdit* network = networkCmdEdit();
728
- LibertyCell* from_lib_cell = network->libertyCell(inst);
729
- if (sta::equivCells(from_lib_cell, to_lib_cell)) {
730
- replaceEquivCellBefore(inst, to_lib_cell);
731
- network->replaceCell(inst, to_cell);
732
- replaceEquivCellAfter(inst);
733
- } else {
734
- replaceCellBefore(inst, to_lib_cell);
735
736
- replaceCellAfter(inst);
737
- }
+ Sta::replaceCell(inst, to_cell, to_lib_cell);
738
}
739
740
void dbSta::deleteNet(Net* net)
0 commit comments