aboutsummaryrefslogtreecommitdiffstats
path: root/common/command.cc
diff options
context:
space:
mode:
authorMaciej Kurc <mkurc@antmicro.com>2021-09-09 15:50:03 +0200
committerMaciej Kurc <mkurc@antmicro.com>2021-09-28 17:42:51 +0200
commit99ae5ef38e5c7d92da56545701a4316e580c6f7b (patch)
tree62522b5301c4cd5f363c37388eb8f23500717de7 /common/command.cc
parent9d8d3bdbc48133ff7758c9c5293e5904bc6e5ba7 (diff)
downloadnextpnr-99ae5ef38e5c7d92da56545701a4316e580c6f7b.tar.gz
nextpnr-99ae5ef38e5c7d92da56545701a4316e580c6f7b.tar.bz2
nextpnr-99ae5ef38e5c7d92da56545701a4316e580c6f7b.zip
Added writing a CSV report with timing analysis of each net branch
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Diffstat (limited to 'common/command.cc')
-rw-r--r--common/command.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/command.cc b/common/command.cc
index 954a3442..737a5b77 100644
--- a/common/command.cc
+++ b/common/command.cc
@@ -183,6 +183,9 @@ po::options_description CommandHandler::getGeneralOptions()
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");
+ general.add_options()("timing-report", po::value<std::string>(),
+ "write timing analysis report in CSV format to file");
+
return general;
}
@@ -249,6 +252,11 @@ void CommandHandler::setupContext(Context *ctx)
ctx->settings[ctx->id("timing/allowFail")] = true;
}
+ if (vm.count("timing-report")) {
+ std::string filename = vm["timing-report"].as<std::string>();
+ ctx->settings[ctx->id("timing/reportFile")] = filename;
+ }
+
if (vm.count("placer")) {
std::string placer = vm["placer"].as<std::string>();
if (std::find(Arch::availablePlacers.begin(), Arch::availablePlacers.end(), placer) ==