port_location

This commit is contained in:
James Cherry 2021-06-10 10:16:05 -07:00
parent fe0392f789
commit f2e042ecd8
1 changed files with 9 additions and 1 deletions

View File

@ -5403,7 +5403,7 @@ delays_invalid()
}
const char *
pin_location(Pin *pin)
pin_location(const Pin *pin)
{
Network *network = cmdNetwork();
double x, y;
@ -5416,6 +5416,14 @@ pin_location(Pin *pin)
return "";
}
const char *
port_location(const Port *port)
{
Network *network = cmdNetwork();
const Pin *pin = network->findPin(network->topInstance(), port);
return pin_location(pin);
}
int
endpoint_count()
{