Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2026-03-16 16:29:10 -07:00
parent 5a1b4cb74b
commit 61b2a4b2c3
1 changed files with 8 additions and 8 deletions

View File

@ -534,23 +534,23 @@ GraphDelayCalc::seedLoadSlew(Vertex *vertex)
const Sdc *sdc = scene->sdc(); const Sdc *sdc = scene->sdc();
for (const MinMax *min_max : MinMax::range()) { for (const MinMax *min_max : MinMax::range()) {
DcalcAPIndex ap_index = scene->dcalcAnalysisPtIndex(min_max); DcalcAPIndex ap_index = scene->dcalcAnalysisPtIndex(min_max);
for (const RiseFall *rf : RiseFall::range()) { for (const RiseFall *rf : RiseFall::range()) {
ClockSet *clks = sdc->findLeafPinClocks(pin); ClockSet *clks = sdc->findLeafPinClocks(pin);
if (!vertex->slewAnnotated(rf, min_max)) { if (!vertex->slewAnnotated(rf, min_max)) {
float slew = 0.0; float slew = 0.0;
if (clks) { if (clks) {
slew = min_max->initValue(); slew = min_max->initValue();
for (Clock *clk : *clks) { for (Clock *clk : *clks) {
float clk_slew = clk->slew(rf, min_max); float clk_slew = clk->slew(rf, min_max);
if (min_max->compare(clk_slew, slew)) if (min_max->compare(clk_slew, slew))
slew = clk_slew; slew = clk_slew;
} }
} }
graph_->setSlew(vertex, rf, ap_index, slew); graph_->setSlew(vertex, rf, ap_index, slew);
}
} }
} }
} }
}
} }
// If a driving cell does not specify a -from_pin, the first port // If a driving cell does not specify a -from_pin, the first port