Skip to content

Commit

Permalink
clean up getting buffer pins
Browse files Browse the repository at this point in the history
Signed-off-by: andyfox-rushc <[email protected]>
  • Loading branch information
andyfox-rushc committed Dec 4, 2024
1 parent 6a6fbdb commit 1433655
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions src/rsz/src/Resizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -733,37 +733,19 @@ Instance* Resizer::bufferInput(const Pin* top_pin, LibertyCell* buffer_cell)
= makeBuffer(buffer_cell, buffer_name.c_str(), parent, pin_loc);
inserted_buffer_count_++;

/*
Get buffer output iterm
*/

Pin* buffer_ip_pin = nullptr;
Pin* buffer_op_pin = nullptr;
odb::dbITerm* buffer_ip_iterm;

odb::dbITerm* buffer_op_iterm;
odb::dbBTerm* buffer_bterm_ignore;
odb::dbModITerm* buffer_moditerm_ignore;
odb::dbModBTerm* buffer_modbterm_ignore;

getBufferPins(buffer, buffer_ip_pin, buffer_op_pin);
db_network_->staToDb(buffer_ip_pin,
buffer_ip_iterm,
buffer_bterm_ignore,
buffer_moditerm_ignore,
buffer_modbterm_ignore);
db_network_->staToDb(buffer_op_pin,
buffer_op_iterm,
buffer_bterm_ignore,
buffer_moditerm_ignore,
buffer_modbterm_ignore);
buffer_ip_iterm = db_network_->flatPin(buffer_ip_pin);
buffer_op_iterm = db_network_->flatPin(buffer_op_pin);

pin_iter = network_->connectedPinIterator(input_net);
while (pin_iter->hasNext()) {
const Pin* pin = pin_iter->next();

if (pin == top_pin) {
}
//
// Get destination type.
// could be moditerm
Expand Down

0 comments on commit 1433655

Please sign in to comment.