1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-04-30 05:34:53 +00:00

Placer: Fix static legalise radius (#1382)

This commit is contained in:
Meinhard Kissich
2024-10-08 15:20:33 +02:00
committed by GitHub
parent 0e5b1348e6
commit d27993f019

View File

@@ -1245,7 +1245,7 @@ class StaticPlacer
total_iters_noreset++;
if (total_iters > int(ccells.size())) {
total_iters = 0;
ripup_radius = std::max(std::max(width + 1, height + 1), ripup_radius * 2);
ripup_radius = std::min(std::max(width + 1, height + 1), ripup_radius * 2);
}
if (total_iters_noreset > std::max(5000, 8 * int(ctx->cells.size()))) {