mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-09-07 19:56:55 +02:00
Add port_direction/pin_direction SDC property aliases (#127)
This commit is contained in:
+6
-3
@@ -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));
|
||||
@@ -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());
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user