aboutsummaryrefslogtreecommitdiffstats
path: root/common/command.cc
diff options
context:
space:
mode:
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) ==