liberty max_transition warning resolves #403

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2026-03-11 11:58:58 -07:00
parent 0703d8ef40
commit 00ee6a1956
1 changed files with 4 additions and 1 deletions

View File

@ -1520,8 +1520,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.