diff options
| author | David Shah <davey1576@gmail.com> | 2018-06-29 15:47:56 +0200 |
|---|---|---|
| committer | David Shah <davey1576@gmail.com> | 2018-06-29 15:47:56 +0200 |
| commit | d908928b56917c02db4d8127b7c594b1225ba974 (patch) | |
| tree | f86d5096e329a88dc0a87ab2e2e34be034023ba5 /common | |
| parent | 23789b756989dc2146717860985ffa857bdbb4d4 (diff) | |
| download | nextpnr-d908928b56917c02db4d8127b7c594b1225ba974.tar.gz nextpnr-d908928b56917c02db4d8127b7c594b1225ba974.tar.bz2 nextpnr-d908928b56917c02db4d8127b7c594b1225ba974.zip | |
Tidying up the SA placer
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common')
| -rw-r--r-- | common/place_sa.cc | 7 | ||||
| -rw-r--r-- | common/place_sa.h | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/common/place_sa.cc b/common/place_sa.cc index 17be91a2..c0c1b180 100644 --- a/common/place_sa.cc +++ b/common/place_sa.cc @@ -46,7 +46,7 @@ NEXTPNR_NAMESPACE_BEGIN class SAPlacer { public: - SAPlacer(Context *ctx, bool timing_driven) : ctx(ctx), timing_driven(timing_driven) + SAPlacer(Context *ctx) : ctx(ctx) { int num_bel_types = 0; for (auto bel : ctx->getBels()) { @@ -416,7 +416,6 @@ class SAPlacer float curr_tns = 0; float temp = 1000; bool improved = false; - bool timing_driven = true; int n_move, n_accept; int diameter = 35, max_x = 1, max_y = 1; std::unordered_map<BelType, int> bel_types; @@ -428,10 +427,10 @@ class SAPlacer const float post_legalise_dia_scale = 2; }; -bool place_design_sa(Context *ctx, bool timing_driven) +bool place_design_sa(Context *ctx) { try { - SAPlacer placer(ctx, timing_driven); + SAPlacer placer(ctx); placer.place(); log_info("Checksum: 0x%08x\n", ctx->checksum()); #ifndef NDEBUG diff --git a/common/place_sa.h b/common/place_sa.h index e61d9375..1fd8c712 100644 --- a/common/place_sa.h +++ b/common/place_sa.h @@ -23,7 +23,7 @@ NEXTPNR_NAMESPACE_BEGIN -extern bool place_design_sa(Context *ctx, bool timing_driven = true); +extern bool place_design_sa(Context *ctx); NEXTPNR_NAMESPACE_END |
