diff options
Diffstat (limited to 'common/command.cc')
-rw-r--r-- | common/command.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/command.cc b/common/command.cc index 3dc0d968..d0087fc9 100644 --- a/common/command.cc +++ b/common/command.cc @@ -158,6 +158,10 @@ po::options_description CommandHandler::getGeneralOptions() general.add_options()("no-tmdriv", "disable timing-driven placement"); general.add_options()("sdf", po::value<std::string>(), "SDF delay back-annotation file to write"); general.add_options()("sdf-cvc", "enable tweaks for SDF file compatibility with the CVC simulator"); + general.add_options()("print-critical-path-source", + "print the source code associated with each net in the critical path"); + general.add_options()("critical-path-source-max-lines", po::value<int>(), + "max number of source lines to print per critical path report entry"); 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"); @@ -179,6 +183,13 @@ void CommandHandler::setupContext(Context *ctx) ctx->debug = true; } + if (vm.count("print-critical-path-source")) { + ctx->print_critical_path_source = true; + } + if (vm.count("critical-path-source-max-lines")) { + ctx->critical_path_source_max_lines = vm["critical-path-source-max-lines"].as<int>(); + } + if (vm.count("force")) { ctx->force = true; } |