From 17b48a681ba6e55974e4a587a0cd642c98c6a75e Mon Sep 17 00:00:00 2001 From: James Cherry Date: Mon, 6 Jul 2020 09:45:45 -0700 Subject: [PATCH] get_property pin name --- search/Property.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/search/Property.cc b/search/Property.cc index 386d551f..0a840dfa 100644 --- a/search/Property.cc +++ b/search/Property.cc @@ -732,13 +732,13 @@ getProperty(const Pin *pin, Sta *sta) { auto network = sta->cmdNetwork(); - if (stringEqual(property, "direction")) - return PropertyValue(network->direction(pin)->name()); - else if (stringEqual(property, "name") - || stringEqual(property, "full_name")) - return PropertyValue(network->pathName(pin)); - else if (stringEqual(property, "lib_pin_name")) + if (stringEqual(property, "name") + || stringEqual(property, "lib_pin_name")) return PropertyValue(network->portName(pin)); + else if (stringEqual(property, "full_name")) + return PropertyValue(network->pathName(pin)); + else if (stringEqual(property, "direction")) + return PropertyValue(network->direction(pin)->name()); else if (stringEqual(property, "clocks")) { ClockSet clks; sta->clocks(pin, clks);