From 83e1f9b77f35a953dbd3c01dba431a789a981803 Mon Sep 17 00:00:00 2001 From: dsengupta0628 Date: Fri, 13 Mar 2026 00:19:07 +0000 Subject: [PATCH] Changes to bring back warning 1241 and fix lumpedCapDelayCalc- both commits also in parallax/osta Signed-off-by: dsengupta0628 --- dcalc/LumpedCapDelayCalc.cc | 2 +- liberty/LibertyReader.cc | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dcalc/LumpedCapDelayCalc.cc b/dcalc/LumpedCapDelayCalc.cc index c9f2985c..6bf5db47 100644 --- a/dcalc/LumpedCapDelayCalc.cc +++ b/dcalc/LumpedCapDelayCalc.cc @@ -168,7 +168,7 @@ LumpedCapDelayCalc::makeResult(const LibertyLibrary *drvr_library, for (const auto [load_pin, load_idx] : load_pin_index_map) { ArcDelay wire_delay = 0.0; Slew load_slew = drvr_slew; - thresholdAdjust(load_pin, drvr_library, rf, wire_delay, drvr_slew); + thresholdAdjust(load_pin, drvr_library, rf, wire_delay, load_slew); dcalc_result.setWireDelay(load_idx, wire_delay); dcalc_result.setLoadSlew(load_idx, load_slew); } diff --git a/liberty/LibertyReader.cc b/liberty/LibertyReader.cc index 5d99d1f1..3164a17b 100644 --- a/liberty/LibertyReader.cc +++ b/liberty/LibertyReader.cc @@ -1518,8 +1518,11 @@ LibertyReader::readCapacitance(const LibertyPortSeq &ports, // min/max_transition attr_name = min_max->to_string() + "_transition"; port_group->findAttrFloat(attr_name, limit, exists); - if (exists) + if (exists) { + if (min_max == MinMax::max() && limit == 0.0) + libWarn(1241, port_group, "max_transition is 0.0."); port->setSlewLimit(limit * time_scale_, min_max); + } } // Default capacitance.