From d5299f144f0dc8cdcca9195d8ffbbd5a77cff77e Mon Sep 17 00:00:00 2001 From: Arjen Roodselaar Date: Mon, 19 Dec 2022 22:58:52 -0800 Subject: Add --no-placer-timeout flag to override timeout during refinement --- common/kernel/command.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/kernel') diff --git a/common/kernel/command.cc b/common/kernel/command.cc index c548509f..22000299 100644 --- a/common/kernel/command.cc +++ b/common/kernel/command.cc @@ -189,6 +189,7 @@ po::options_description CommandHandler::getGeneralOptions() general.add_options()("placer-heap-critexp", po::value(), "placer heap criticality exponent (int, default: 2)"); general.add_options()("placer-heap-timingweight", po::value(), "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()); + 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; -- cgit v1.2.3 From 923458a2c90ee295cf6502a83ca6182d1d281f48 Mon Sep 17 00:00:00 2001 From: Arjen Roodselaar Date: Tue, 20 Dec 2022 11:15:06 -0800 Subject: Allow setting cell placement timeout --- common/kernel/command.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'common/kernel') 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(), "placer heap criticality exponent (int, default: 2)"); general.add_options()("placer-heap-timingweight", po::value(), "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(), + "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()); - 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())); if (vm.count("parallel-refine")) ctx->settings[ctx->id("placerHeap/parallelRefine")] = true; -- cgit v1.2.3 From be1f700b0b3099dd7762bf8cbe23ecca4b77fe5b Mon Sep 17 00:00:00 2001 From: Arjen Roodselaar Date: Tue, 20 Dec 2022 13:10:37 -0800 Subject: Set divisor instead of absolute value --- common/kernel/command.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/kernel') diff --git a/common/kernel/command.cc b/common/kernel/command.cc index 6d2dc939..65aa0299 100644 --- a/common/kernel/command.cc +++ b/common/kernel/command.cc @@ -190,7 +190,7 @@ po::options_description CommandHandler::getGeneralOptions() "placer heap criticality exponent (int, default: 2)"); general.add_options()("placer-heap-timingweight", po::value(), "placer heap timing weight (int, default: 10)"); general.add_options()("placer-heap-cell-placement-timeout", po::value(), - "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)"); + "allow placer to attempt up to max(10000, total cells^2 / N) iterations to place a cell (int N, default: 8, 0 for no timeout)"); #if !defined(__wasm) general.add_options()("parallel-refine", "use new experimental parallelised engine for placement refinement"); -- cgit v1.2.3