In RoutingPad, prefer Segment over Pad at constant area.
This case may arise with cells created from GDS+LEF.
This commit is contained in:
parent
c5827877f6
commit
a8d0371990
|
@ -377,6 +377,9 @@ namespace Hurricane {
|
|||
double bestArea = getArea(bestComponent);
|
||||
|
||||
if (compArea == bestArea) {
|
||||
if (dynamic_cast<Segment*>(component) and dynamic_cast<Pad*>(bestComponent)) {
|
||||
bestComponent = component;
|
||||
} else {
|
||||
Box compBox = component->getBoundingBox();
|
||||
Box bestBox = bestComponent->getBoundingBox();
|
||||
|
||||
|
@ -391,6 +394,7 @@ namespace Hurricane {
|
|||
if (compBox.getXMin() < bestBox.getXMin())
|
||||
bestComponent = component;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (compArea > bestArea)
|
||||
bestComponent = component;
|
||||
|
|
Loading…
Reference in New Issue