pin_location

This commit is contained in:
James Cherry 2020-07-06 15:35:03 -07:00
parent 27cc8f1614
commit 9cb7222f56
1 changed files with 14 additions and 0 deletions

View File

@ -5311,6 +5311,20 @@ delays_invalid()
sta->delaysInvalid();
}
const char *
pin_location(Pin *pin)
{
Network *network = cmdNetwork();
double x, y;
bool exists;
network->location(pin, x, y, exists);
// return x/y as tcl list
if (exists)
return sta::stringPrintTmp("%f %f", x, y);
else
return "";
}
%} // inline
////////////////////////////////////////////////////////////////