Merge pull request #199 from openroadie/master

latest OpenSTA code
This commit is contained in:
Harsh Vardhan 2023-10-09 22:50:55 -07:00 committed by GitHub
commit 44f06c5215
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 11 deletions

View File

@ -515,14 +515,14 @@ MakeTimingModel::findClkInsertionDelays()
{
Instance *top_inst = network_->topInstance();
Cell *top_cell = network_->cell(top_inst);
CellPortIterator *port_iter = network_->portIterator(top_cell);
CellPortIterator *port_iter = network_->portBitIterator(top_cell);
while (port_iter->hasNext()) {
Port *port = port_iter->next();
if (network_->direction(port)->isInput()) {
const char *port_name = network_->name(port);
LibertyPort *lib_port = cell_->findLibertyPort(port_name);
Pin *pin = network_->findPin(top_inst, port);
if (sdc_->isClock(pin)) {
if (pin && sdc_->isClock(pin)) {
lib_port->setIsClock(true);
ClockSet *clks = sdc_->findClocks(pin);
size_t clk_count = clks->size();

View File

@ -6032,15 +6032,15 @@ requireds_clk(const RiseFall *rf,
const RiseFall *clk_rf)
{
Sta *sta = Sta::sta();
FloatSeq requireds;
FloatSeq reqs;
const ClockEdge *clk_edge = nullptr;
if (clk)
clk_edge = clk->edge(clk_rf);
for (auto path_ap : sta->corners()->pathAnalysisPts()) {
requireds.push_back(delayAsFloat(sta->vertexRequired(self, rf, clk_edge,
path_ap)));
reqs.push_back(delayAsFloat(sta->vertexRequired(self, rf, clk_edge,
path_ap)));
}
return requireds;
return reqs;
}
StringSeq
@ -6050,16 +6050,15 @@ requireds_clk_delays(const RiseFall *rf,
int digits)
{
Sta *sta = Sta::sta();
StringSeq requireds;
StringSeq reqs;
const ClockEdge *clk_edge = nullptr;
if (clk)
clk_edge = clk->edge(clk_rf);
for (auto path_ap : sta->corners()->pathAnalysisPts()) {
requireds.push_back(delayAsString(sta->vertexRequired(self, rf, clk_edge,
path_ap),
sta, digits));
reqs.push_back(delayAsString(sta->vertexRequired(self, rf, clk_edge, path_ap),
sta, digits));
}
return requireds;
return reqs;
}
Slack