aboutsummaryrefslogtreecommitdiffstats
path: root/common/command.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-05-20 14:54:23 +0100
committergatecat <gatecat@ds0.me>2021-05-20 14:54:23 +0100
commit1595c0726079e62313e0df82bdb31120b72bdc39 (patch)
tree0b8e243e8b72785bde9c4d1b3758aa5658ffa465 /common/command.cc
parent5a41d2070c8a7c065d4e3fbfb70b3a3fbd19b319 (diff)
downloadnextpnr-1595c0726079e62313e0df82bdb31120b72bdc39.tar.gz
nextpnr-1595c0726079e62313e0df82bdb31120b72bdc39.tar.bz2
nextpnr-1595c0726079e62313e0df82bdb31120b72bdc39.zip
router2: Add heatmap by routing resource type
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'common/command.cc')
-rw-r--r--common/command.cc5
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())