rm insert_buffer

This commit is contained in:
James Cherry 2019-06-14 16:52:34 -07:00
parent 9659c43590
commit 154dcf0042
3 changed files with 0 additions and 50 deletions

View File

@ -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)

View File

@ -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).

View File

@ -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