1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-05-05 07:33:27 +00:00

router2: add alternate weight option (#1162)

This commit is contained in:
Lofty
2023-05-25 09:47:10 +01:00
committed by GitHub
parent 7912a61ce3
commit 5936464967
2 changed files with 17 additions and 5 deletions

View File

@@ -211,6 +211,8 @@ po::options_description CommandHandler::getGeneralOptions()
general.add_options()("router2-tmg-ripup",
"enable experimental timing-driven ripup in router (deprecated; use --tmg-ripup instead)");
general.add_options()("router2-alt-weights", "use alternate router2 weights");
general.add_options()("report", po::value<std::string>(),
"write timing and utilization report in JSON format to file");
general.add_options()("detailed-timing-report", "Append detailed net timing data to the JSON report");
@@ -352,6 +354,9 @@ void CommandHandler::setupContext(Context *ctx)
if (vm.count("tmg-ripup") || vm.count("router2-tmg-ripup"))
ctx->settings[ctx->id("router/tmg_ripup")] = true;
if (vm.count("router2-alt-weights"))
ctx->settings[ctx->id("router2/alt-weights")] = true;
// Setting default values
if (ctx->settings.find(ctx->id("target_freq")) == ctx->settings.end())
ctx->settings[ctx->id("target_freq")] = std::to_string(12e6);