Skip to content

Commit f76d441

Browse files
committed
Added missing updates.
1 parent aad80f0 commit f76d441

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/rsz/include/rsz/Resizer.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ class Resizer : public dbStaState, public dbNetworkObserver
457457
float max_drive_resist);
458458
void findBuffers();
459459
void findFastBuffers();
460-
LibertyCell* findLowestDriveBuffer(LibertyCell* buffer_cell = nullptr);
460+
LibertyCell* selectBufferCell(LibertyCell* buffer_cell = nullptr);
461461
bool isLinkCell(LibertyCell* cell) const;
462462
void findTargetLoads();
463463
void balanceBin(const std::vector<odb::dbInst*>& bin,

src/rsz/src/Resizer.cc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ void Resizer::findBuffers()
746746
}
747747
}
748748

749-
LibertyCell* Resizer::findLowestDriveBuffer(LibertyCell* buffer_cell)
749+
LibertyCell* Resizer::selectBufferCell(LibertyCell* buffer_cell)
750750
{
751751
// Prefer user-specified buffer cell if provided.
752752
if (buffer_cell) {
@@ -781,9 +781,9 @@ void Resizer::bufferInputs(LibertyCell* buffer_cell)
781781
{
782782
init();
783783

784-
// find the buffer to use
785-
LibertyCell* buffer_to_use = findLowestDriveBuffer(buffer_cell);
786-
if (buffer_to_use == nullptr) {
784+
// Use buffer_cell. If it is null, find the buffer w/ lowest drive resistance.
785+
LibertyCell* selected_buffer_cell = selectBufferCell(buffer_cell);
786+
if (selected_buffer_cell == nullptr) {
787787
return;
788788
}
789789

@@ -806,7 +806,7 @@ void Resizer::bufferInputs(LibertyCell* buffer_cell)
806806
// Hands off special nets.
807807
&& !db_network_->isSpecial(net) && hasPins(net)) {
808808
// repair_design will resize to target slew.
809-
bufferInput(pin, buffer_to_use);
809+
bufferInput(pin, selected_buffer_cell);
810810
}
811811
}
812812
}
@@ -1006,9 +1006,9 @@ void Resizer::bufferOutputs(LibertyCell* buffer_cell)
10061006
{
10071007
init();
10081008

1009-
// find the buffer to use
1010-
LibertyCell* buffer_to_use = findLowestDriveBuffer(buffer_cell);
1011-
if (buffer_to_use == nullptr) {
1009+
// Use buffer_cell. If it is null, find the buffer w/ lowest drive resistance.
1010+
LibertyCell* selected_buffer_cell = selectBufferCell(buffer_cell);
1011+
if (selected_buffer_cell == nullptr) {
10121012
return;
10131013
}
10141014

@@ -1031,7 +1031,7 @@ void Resizer::bufferOutputs(LibertyCell* buffer_cell)
10311031
// drivers.
10321032
&& !hasTristateOrDontTouchDriver(net) && !vertex->isConstant()
10331033
&& hasPins(net)) {
1034-
bufferOutput(pin, buffer_to_use);
1034+
bufferOutput(pin, selected_buffer_cell);
10351035
}
10361036
}
10371037
}

0 commit comments

Comments
 (0)