aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer_heap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/placer_heap.cc')
-rw-r--r--common/placer_heap.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/placer_heap.cc b/common/placer_heap.cc
index f9b639f8..4d1f4863 100644
--- a/common/placer_heap.cc
+++ b/common/placer_heap.cc
@@ -1516,11 +1516,11 @@ int HeAPPlacer::CutSpreader::seq = 0;
bool placer_heap(Context *ctx, PlacerHeapCfg cfg) { return HeAPPlacer(ctx, cfg).place(); }
-PlacerHeapCfg::PlacerHeapCfg(Context *ctx) : Settings(ctx)
+PlacerHeapCfg::PlacerHeapCfg(Context *ctx)
{
- alpha = get<float>("placerHeap/alpha", 0.1);
- criticalityExponent = get<int>("placerHeap/criticalityExponent", 2);
- timingWeight = get<int>("placerHeap/timingWeight", 10);
+ alpha = ctx->setting<float>("placerHeap/alpha", 0.1);
+ criticalityExponent = ctx->setting<int>("placerHeap/criticalityExponent", 2);
+ timingWeight = ctx->setting<int>("placerHeap/timingWeight", 10);
}
NEXTPNR_NAMESPACE_END
@@ -1538,7 +1538,7 @@ bool placer_heap(Context *ctx, PlacerHeapCfg cfg)
return false;
}
-PlacerHeapCfg::PlacerHeapCfg(Context *ctx) : Settings(ctx) {}
+PlacerHeapCfg::PlacerHeapCfg(Context *ctx) {}
NEXTPNR_NAMESPACE_END