From 23789b756989dc2146717860985ffa857bdbb4d4 Mon Sep 17 00:00:00 2001 From: David Shah Date: Fri, 29 Jun 2018 15:30:00 +0200 Subject: [PATCH] Increase temp and diameter after legalisation Signed-off-by: David Shah --- common/place_sa.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/place_sa.cc b/common/place_sa.cc index 75686485..17be91a2 100644 --- a/common/place_sa.cc +++ b/common/place_sa.cc @@ -40,6 +40,7 @@ #include "place_common.h" #include "place_legaliser.h" #include "util.h" +#include "timing.h" NEXTPNR_NAMESPACE_BEGIN class SAPlacer @@ -215,6 +216,8 @@ class SAPlacer if (cell.second->belStrength < STRENGTH_STRONG) autoplaced.push_back(cell.second); } + temp = post_legalise_temp; + diameter *= post_legalise_dia_scale; ctx->shuffle(autoplaced); } @@ -421,6 +424,8 @@ class SAPlacer std::unordered_set locked_bels; bool require_legal = false; const float legalise_temp = 1; + const float post_legalise_temp = 20; + const float post_legalise_dia_scale = 2; }; bool place_design_sa(Context *ctx, bool timing_driven)