1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-02-07 08:57:24 +00:00

Add --no-placer-timeout flag to override timeout during refinement

This commit is contained in:
Arjen Roodselaar
2022-12-19 22:58:52 -08:00
parent 2712cbf6e4
commit d5299f144f
3 changed files with 12 additions and 5 deletions

View File

@@ -189,6 +189,7 @@ 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");
#if !defined(__wasm)
general.add_options()("parallel-refine", "use new experimental parallelised engine for placement refinement");
@@ -328,6 +329,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("parallel-refine"))
ctx->settings[ctx->id("placerHeap/parallelRefine")] = true;