Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions search/Property.cc
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,8 @@ getProperty(const Port *port,
if (stringEqual(property, "name")
|| stringEqual(property, "full_name"))
return PropertyValue(network->name(port));
else if (stringEqual(property, "direction"))
else if (stringEqual(property, "direction")
|| stringEqual(property, "port_direction"))
return PropertyValue(network->direction(port)->name());
else if (stringEqual(property, "liberty_port"))
return PropertyValue(network->libertyPort(port));
Expand Down Expand Up @@ -868,7 +869,8 @@ getProperty(const LibertyPort *port,
return PropertyValue(port->name());
else if (stringEqual(property, "lib_cell"))
return PropertyValue(port->libertyCell());
else if (stringEqual(property, "direction"))
else if (stringEqual(property, "direction")
|| stringEqual(property, "port_direction"))
return PropertyValue(port->direction()->name());
else if (stringEqual(property, "capacitance")) {
float cap = port->capacitance(RiseFall::rise(), MinMax::max());
Expand Down Expand Up @@ -974,7 +976,8 @@ getProperty(const Pin *pin,
return PropertyValue(network->portName(pin));
else if (stringEqual(property, "full_name"))
return PropertyValue(network->pathName(pin));
else if (stringEqual(property, "direction"))
else if (stringEqual(property, "direction")
|| stringEqual(property, "pin_direction"))
return PropertyValue(network->direction(pin)->name());
else if (stringEqual(property, "is_hierarchical"))
return PropertyValue(network->isHierarchical(pin));
Expand Down