From b54125a1ae6c41018dd2b618267594049d4f28e6 Mon Sep 17 00:00:00 2001 From: James Cherry Date: Thu, 9 Jul 2020 11:26:06 -0700 Subject: [PATCH] get_property pin is_register_clock --- search/Property.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/search/Property.cc b/search/Property.cc index d69bd3f1..177cb858 100644 --- a/search/Property.cc +++ b/search/Property.cc @@ -688,6 +688,8 @@ getProperty(const LibertyPort *port, float cap = port->capacitance(RiseFall::rise(), MinMax::max()); return PropertyValue(sta->units()->capacitanceUnit()->asString(cap, 6)); } + else if (stringEqual(property, "is_register_clock")) + return PropertyValue(port->isRegClk()); else if (stringEqual(property, "drive_resistance_rise_min")) return PropertyValue(port->driveResistance(RiseFall::rise(), MinMax::min())); @@ -741,6 +743,10 @@ getProperty(const Pin *pin, return PropertyValue(network->pathName(pin)); else if (stringEqual(property, "direction")) return PropertyValue(network->direction(pin)->name()); + else if (stringEqual(property, "is_register_clock")) { + const LibertyPort *port = network->libertyPort(pin); + return PropertyValue(port && port->isRegClk()); + } else if (stringEqual(property, "clocks")) { ClockSet clks; sta->clocks(pin, clks);