pin_location_str

This commit is contained in:
James Cherry 2020-07-06 15:42:53 -07:00
parent 9cb7222f56
commit ccff78468b
1 changed files with 8 additions and 2 deletions

View File

@ -410,9 +410,15 @@ proc report_net_pin { pin verbose corner digits } {
}
}
# default handler
# Used by report_net
proc pin_location_str { pin } {
return ""
set loc [pin_location $pin]
if { $loc != "" } {
lassign $loc x y
return " ([format_distance $x 0], [format_distance $y 0])"
} else {
return ""
}
}
################################################################