diff options
author | David Shah <davey1576@gmail.com> | 2018-12-08 13:59:10 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2019-03-22 10:31:28 +0000 |
commit | 0d80181c5e547aad165ee35a1d1a6fc85505bb25 (patch) | |
tree | a76f4188d23433f50d69c12f193d8338cb6ddbd1 /common/command.cc | |
parent | a218c27305c9be824531195d99d68c6f86782830 (diff) | |
download | nextpnr-0d80181c5e547aad165ee35a1d1a6fc85505bb25.tar.gz nextpnr-0d80181c5e547aad165ee35a1d1a6fc85505bb25.tar.bz2 nextpnr-0d80181c5e547aad165ee35a1d1a6fc85505bb25.zip |
placer1: Make budget-based placement an option
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common/command.cc')
-rw-r--r-- | common/command.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/command.cc b/common/command.cc index 1399efdb..dd351c0d 100644 --- a/common/command.cc +++ b/common/command.cc @@ -122,6 +122,8 @@ po::options_description CommandHandler::getGeneralOptions() general.add_options()("randomize-seed,r", "randomize seed value for random number generator"); general.add_options()("slack_redist_iter", po::value<int>(), "number of iterations between slack redistribution"); general.add_options()("cstrweight", po::value<float>(), "placer weighting for relative constraint satisfaction"); + general.add_options()("placer-budgets", "use budget rather than criticality in placer timing weights"); + general.add_options()("pack-only", "pack design only without placement or routing"); general.add_options()("ignore-loops", "ignore combinational loops in timing analysis"); @@ -187,6 +189,9 @@ void CommandHandler::setupContext(Context *ctx) settings->set("placer1/constraintWeight", vm["cstrweight"].as<float>()); } + if (vm.count("placer-budgets")) { + settings->set("placer1/budgetBased", true); + } if (vm.count("freq")) { auto freq = vm["freq"].as<double>(); if (freq > 0) |