diff --git a/search/Sta.cc b/search/Sta.cc index 6c15cd53..f590e6b4 100644 --- a/search/Sta.cc +++ b/search/Sta.cc @@ -3708,34 +3708,6 @@ Sta::disconnectPin(Pin *pin) network->disconnectPin(pin); } -void -Sta::insertBuffer(const char *buffer_name, - LibertyCell *buffer_cell, - Net *net, - PinSeq *load_pins, - const char *buffer_out_net_name) -{ - Instance *parent = network_->topInstance(); - LibertyPort *buffer_in_port = findCellPort(buffer_cell, PortDirection::input()); - LibertyPort *buffer_out_port = findCellPort(buffer_cell, PortDirection::output()); - if (buffer_in_port && buffer_out_port) { - Instance *buffer = makeInstance(buffer_name, buffer_cell, parent); - connectPin(buffer, buffer_in_port, net); - - Net *buffer_out_net = makeNet(buffer_out_net_name, parent); - connectPin(buffer, buffer_out_port, buffer_out_net); - - PinSeq::Iterator pin_iter(load_pins); - while (pin_iter.hasNext()) { - Pin *load_pin = pin_iter.next(); - auto load_inst = network_->instance(load_pin); - auto load_port = network_->port(load_pin); - disconnectPin(load_pin); - connectPin(load_inst, load_port, buffer_out_net); - } - } -} - LibertyPort * Sta::findCellPort(LibertyCell *cell, PortDirection *dir) diff --git a/search/Sta.hh b/search/Sta.hh index f67e9bed..4cae275f 100644 --- a/search/Sta.hh +++ b/search/Sta.hh @@ -1103,16 +1103,6 @@ public: // disconnect_net virtual void disconnectPin(Pin *pin); - // Insert a buffer_cell instance named inst_name by adding it's input - // pin on net and moving load_pins from net to the output of - // the instance. buffer_cell must have one input and one output port. - // The buffer's parent is the top_instance. - void insertBuffer(const char *buffer_name, - LibertyCell *buffer_cell, - Net *net, - PinSeq *load_pins, - const char *buffer_out_net_name); - // Network edit before/after methods. void makeInstanceAfter(Instance *inst); // Not used by Sta (connectPinAfter). diff --git a/tcl/NetworkEdit.i b/tcl/NetworkEdit.i index faf7ebc0..0fe381a4 100644 --- a/tcl/NetworkEdit.i +++ b/tcl/NetworkEdit.i @@ -93,16 +93,4 @@ disconnect_pin_cmd(Pin *pin) Sta::sta()->disconnectPin(pin); } -void -insert_buffer_cmd(const char *buffer_name, - LibertyCell *buffer_cell, - Net *net, - PinSeq *load_pins, - const char *buffer_out_net_name) -{ - Sta::sta()->insertBuffer(buffer_name, buffer_cell, net, load_pins, - buffer_out_net_name); - delete load_pins; -} - %} // inline