diff options
author | Arjen Roodselaar <arjen@oxide.computer> | 2022-12-20 11:15:06 -0800 |
---|---|---|
committer | Arjen Roodselaar <arjen@oxide.computer> | 2022-12-20 11:15:06 -0800 |
commit | 923458a2c90ee295cf6502a83ca6182d1d281f48 (patch) | |
tree | b6c8664d974c40a6e4dc00a36eec8d51fe64f6fa /common/kernel | |
parent | d5299f144f0dc8cdcca9195d8ffbbd5a77cff77e (diff) | |
download | nextpnr-923458a2c90ee295cf6502a83ca6182d1d281f48.tar.gz nextpnr-923458a2c90ee295cf6502a83ca6182d1d281f48.tar.bz2 nextpnr-923458a2c90ee295cf6502a83ca6182d1d281f48.zip |
Allow setting cell placement timeout
Diffstat (limited to 'common/kernel')
-rw-r--r-- | common/kernel/command.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/common/kernel/command.cc b/common/kernel/command.cc index 22000299..6d2dc939 100644 --- a/common/kernel/command.cc +++ b/common/kernel/command.cc @@ -189,7 +189,8 @@ po::options_description CommandHandler::getGeneralOptions() general.add_options()("placer-heap-critexp", po::value<int>(), "placer heap criticality exponent (int, default: 2)"); general.add_options()("placer-heap-timingweight", po::value<int>(), "placer heap timing weight (int, default: 10)"); - general.add_options()("no-placer-timeout", "allow the placer to attempt placement without timeout"); + general.add_options()("placer-heap-cell-placement-timeout", po::value<int>(), + "allow placer to attempt up to the given number of iterations to place the cell (int, default: design size^2 / 8, 0 for no timeout)"); #if !defined(__wasm) general.add_options()("parallel-refine", "use new experimental parallelised engine for placement refinement"); @@ -329,8 +330,9 @@ void CommandHandler::setupContext(Context *ctx) if (vm.count("placer-heap-timingweight")) ctx->settings[ctx->id("placerHeap/timingWeight")] = std::to_string(vm["placer-heap-timingweight"].as<int>()); - if (vm.count("no-placer-timeout")) - ctx->settings[ctx->id("placerHeap/noTimeout")] = true; + if (vm.count("placer-heap-cell-placement-timeout")) + ctx->settings[ctx->id("placerHeap/cellPlacementTimeout")] = + std::to_string(std::max(0, vm["placer-heap-cell-placement-timeout"].as<int>())); if (vm.count("parallel-refine")) ctx->settings[ctx->id("placerHeap/parallelRefine")] = true; |