diff options
author | gatecat <gatecat@ds0.me> | 2021-09-29 15:10:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-29 15:10:28 +0100 |
commit | bd137a8b50c220b2547030a4618aeefead2a1c38 (patch) | |
tree | e68e2aaafac168b97e25d9962230bf245c7c77a9 /common/command.cc | |
parent | 8b3e6711bcdab8c59bfa30f5eff8ed0bfa1bc302 (diff) | |
parent | 1db3a87c62acc79de0b3c7bd8c4c155c61c864ee (diff) | |
download | nextpnr-bd137a8b50c220b2547030a4618aeefead2a1c38.tar.gz nextpnr-bd137a8b50c220b2547030a4618aeefead2a1c38.tar.bz2 nextpnr-bd137a8b50c220b2547030a4618aeefead2a1c38.zip |
Merge pull request #810 from antmicro/write-timing-report
Timing report in JSON format
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 954a3442..38de8344 100644 --- a/common/command.cc +++ b/common/command.cc @@ -179,6 +179,7 @@ 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 +329,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) |