delete_net update sdc net_wire_cap_map_

This commit is contained in:
James Cherry 2020-10-27 16:37:03 -07:00
parent f457b75304
commit ebc9614004
3 changed files with 14 additions and 0 deletions

View File

@ -187,6 +187,7 @@ public:
bool isConstrained(const Net *net) const; bool isConstrained(const Net *net) const;
// Build data structures for search. // Build data structures for search.
void searchPreamble(); void searchPreamble();
void deleteNetBefore(Net *net);
// SWIG sdc interface. // SWIG sdc interface.
AnalysisType analysisType() { return analysis_type_; } AnalysisType analysisType() { return analysis_type_; }

View File

@ -403,6 +403,18 @@ Sdc::initInstancePvtMaps()
instance_pvt_maps_[mm_index] = nullptr; instance_pvt_maps_[mm_index] = nullptr;
} }
void
Sdc::deleteNetBefore(Net *net)
{
if (net_wire_cap_map_) {
for (int corner_index = 0; corner_index < corners_->count(); corner_index++) {
net_wire_cap_map_[corner_index].erase(net);
for (Pin *pin : *network_->drivers(net))
drvr_pin_wire_cap_map_[corner_index].erase(pin);
}
}
}
//////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////
bool bool

View File

@ -4170,6 +4170,7 @@ Sta::deleteNetBefore(Net *net)
} }
delete pin_iter; delete pin_iter;
} }
sdc_->deleteNetBefore(net);
} }
void void