diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2019-06-15 13:09:49 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2019-06-15 13:09:49 +0200 |
commit | 95280060b869f266beaff023dd63d74905c39ef4 (patch) | |
tree | 98d49d09ef31161ea712341767ff7019616cb342 /common/placer_heap.cc | |
parent | 66ea9f39f7f5d6e1152105328f9a48a367bd8ce0 (diff) | |
download | nextpnr-95280060b869f266beaff023dd63d74905c39ef4.tar.gz nextpnr-95280060b869f266beaff023dd63d74905c39ef4.tar.bz2 nextpnr-95280060b869f266beaff023dd63d74905c39ef4.zip |
No need for settings class
Diffstat (limited to 'common/placer_heap.cc')
-rw-r--r-- | common/placer_heap.cc | 10 |
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 |