Wrong computation of the up/down dogleg layer for 2 layers gauges.

* Bug: In Anabatic::AutoHorizontal::_makeDogleg(), the up/down flag
    was incorrectly computed when the RoutingGauge RL where not the
    lower one. This was leading to making doglegs in non-routable
    layers (but present in the gauge for other purposes).
This commit is contained in:
Jean-Paul Chaput 2023-01-18 23:42:17 +01:00
parent 2116e181de
commit 047bf14921
2 changed files with 2 additions and 2 deletions

View File

@ -875,7 +875,7 @@ namespace Anabatic {
bool upLayer = true;
if (Session::getRoutingGauge()->isTwoMetals()) {
upLayer = (depth == 0);
upLayer = (not Session::getRoutingGauge()->isVH());
} else if (Session::getRoutingGauge()->isVH()) {
upLayer = (depth < 2);
} else {

View File

@ -736,7 +736,7 @@ namespace Anabatic {
bool upLayer = true;
if (Session::getRoutingGauge()->isTwoMetals()) {
upLayer = (depth == 0);
upLayer = (Session::getRoutingGauge()->isVH());
} else if (Session::getRoutingGauge()->isVH()) {
upLayer = (depth < 2);
} else {