aboutsummaryrefslogtreecommitdiffstats
path: root/common/command.cc
diff options
context:
space:
mode:
authorMaciej Kurc <mkurc@antmicro.com>2021-09-28 17:38:12 +0200
committerMaciej Kurc <mkurc@antmicro.com>2021-09-28 17:42:51 +0200
commit9018782eaaec23c57987266629b23484cfd9b984 (patch)
treed78fc4225f2cd4f0a5611720347ee757e769dc7e /common/command.cc
parenta9df3b425fb8a2e6b9054a0abbf033942eabc602 (diff)
downloadnextpnr-9018782eaaec23c57987266629b23484cfd9b984.tar.gz
nextpnr-9018782eaaec23c57987266629b23484cfd9b984.tar.bz2
nextpnr-9018782eaaec23c57987266629b23484cfd9b984.zip
Added a commandline option controlled writeout of per-net timing details
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Diffstat (limited to 'common/command.cc')
-rw-r--r--common/command.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/command.cc b/common/command.cc
index 954a3442..006a6217 100644
--- a/common/command.cc
+++ b/common/command.cc
@@ -179,6 +179,8 @@ po::options_description CommandHandler::getGeneralOptions()
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");
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");
@@ -328,6 +330,10 @@ void CommandHandler::setupContext(Context *ctx)
ctx->settings[ctx->id("placerHeap/criticalityExponent")] = std::to_string(2);
if (ctx->settings.find(ctx->id("placerHeap/timingWeight")) == ctx->settings.end())
ctx->settings[ctx->id("placerHeap/timingWeight")] = std::to_string(10);
+
+ if (vm.count("detailed-timing-report")) {
+ ctx->detailed_timing_report = true;
+ }
}
int CommandHandler::executeMain(std::unique_ptr<Context> ctx)