diff options
author | gatecat <gatecat@ds0.me> | 2021-05-21 09:59:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 09:59:19 +0100 |
commit | 81818fd38c5405005305d1b8354eb75beb8dc18d (patch) | |
tree | 776fbc43bd241c48505a033d3a5ab7bf367596c8 /common/command.cc | |
parent | 54b8364ceaa3be52cf5161e268cdefa96588e749 (diff) | |
parent | 1595c0726079e62313e0df82bdb31120b72bdc39 (diff) | |
download | nextpnr-81818fd38c5405005305d1b8354eb75beb8dc18d.tar.gz nextpnr-81818fd38c5405005305d1b8354eb75beb8dc18d.tar.bz2 nextpnr-81818fd38c5405005305d1b8354eb75beb8dc18d.zip |
Merge pull request #712 from YosysHQ/gatecat/rr-heatmap
router2: Add heatmap by routing resource type
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 5f19e01b..f48d6adf 100644 --- a/common/command.cc +++ b/common/command.cc @@ -170,6 +170,9 @@ po::options_description CommandHandler::getGeneralOptions() "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()("router2-heatmap", po::value<std::string>(), + "prefix for router2 resource congestion heatmaps"); + general.add_options()("placed-svg", po::value<std::string>(), "write render of placement to SVG file"); general.add_options()("routed-svg", po::value<std::string>(), "write render of routing to SVG file"); @@ -278,6 +281,8 @@ 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("router2-heatmap")) + ctx->settings[ctx->id("router2/heatmap")] = vm["router2-heatmap"].as<std::string>(); // Setting default values if (ctx->settings.find(ctx->id("target_freq")) == ctx->settings.end()) |