From f58212eb9610bce3c2f1955943ef87fc93795879 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Thu, 14 Oct 2021 23:50:14 +0200 Subject: [PATCH] Fix incorrect application of xTracksReservedMin in Katana. * Bug: In KatanaEngine::annotateGlobalGraph(), the minimum track reservation was not applied correctly. Instead of adding the *difference* between the minimum and the current reservation, the minimum was simply added. Leading to too high reservation. And loss of control about what we were doing on the edges capacities... Really stupid. --- katana/src/KatanaEngine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/katana/src/KatanaEngine.cpp b/katana/src/KatanaEngine.cpp index 93d7e2cb..de12c297 100644 --- a/katana/src/KatanaEngine.cpp +++ b/katana/src/KatanaEngine.cpp @@ -583,12 +583,12 @@ namespace Katana { for ( Edge* edge : gcell->getEdges( Flags::NorthSide) ) { if (edge->getReservedCapacity() < vReservedMin) { - edge->reserveCapacity( vReservedMin ); + edge->reserveCapacity( vReservedMin - edge->getReservedCapacity() ); } } for ( Edge* edge : gcell->getEdges( Flags::EastSide) ) { if (edge->getReservedCapacity() < hReservedMin) - edge->reserveCapacity( hReservedMin ); + edge->reserveCapacity( hReservedMin - edge->getReservedCapacity() ); } } }