From 99ae5ef38e5c7d92da56545701a4316e580c6f7b Mon Sep 17 00:00:00 2001 From: Maciej Kurc Date: Thu, 9 Sep 2021 15:50:03 +0200 Subject: Added writing a CSV report with timing analysis of each net branch Signed-off-by: Maciej Kurc --- common/command.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'common/command.cc') 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(), "write render of placement to SVG file"); general.add_options()("routed-svg", po::value(), "write render of routing to SVG file"); + general.add_options()("timing-report", po::value(), + "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(); + ctx->settings[ctx->id("timing/reportFile")] = filename; + } + if (vm.count("placer")) { std::string placer = vm["placer"].as(); if (std::find(Arch::availablePlacers.begin(), Arch::availablePlacers.end(), placer) == -- cgit v1.2.3 From 6deff56e836543fe6d3083d7402fd42edc00e4c7 Mon Sep 17 00:00:00 2001 From: Maciej Kurc Date: Tue, 28 Sep 2021 17:01:28 +0200 Subject: Moved timing result report storage to the context, added its writeout to the current utilization and fmax report Signed-off-by: Maciej Kurc --- common/command.cc | 8 -------- 1 file changed, 8 deletions(-) (limited to 'common/command.cc') diff --git a/common/command.cc b/common/command.cc index 737a5b77..954a3442 100644 --- a/common/command.cc +++ b/common/command.cc @@ -183,9 +183,6 @@ po::options_description CommandHandler::getGeneralOptions() general.add_options()("placed-svg", po::value(), "write render of placement to SVG file"); general.add_options()("routed-svg", po::value(), "write render of routing to SVG file"); - general.add_options()("timing-report", po::value(), - "write timing analysis report in CSV format to file"); - return general; } @@ -252,11 +249,6 @@ void CommandHandler::setupContext(Context *ctx) ctx->settings[ctx->id("timing/allowFail")] = true; } - if (vm.count("timing-report")) { - std::string filename = vm["timing-report"].as(); - ctx->settings[ctx->id("timing/reportFile")] = filename; - } - if (vm.count("placer")) { std::string placer = vm["placer"].as(); if (std::find(Arch::availablePlacers.begin(), Arch::availablePlacers.end(), placer) == -- cgit v1.2.3 From 9018782eaaec23c57987266629b23484cfd9b984 Mon Sep 17 00:00:00 2001 From: Maciej Kurc Date: Tue, 28 Sep 2021 17:38:12 +0200 Subject: Added a commandline option controlled writeout of per-net timing details Signed-off-by: Maciej Kurc --- common/command.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/command.cc') 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(), "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(), "write render of placement to SVG file"); general.add_options()("routed-svg", po::value(), "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 ctx) -- cgit v1.2.3 From 1db3a87c62acc79de0b3c7bd8c4c155c61c864ee Mon Sep 17 00:00:00 2001 From: Maciej Kurc Date: Wed, 29 Sep 2021 14:59:09 +0200 Subject: Code formatting Signed-off-by: Maciej Kurc --- common/command.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'common/command.cc') diff --git a/common/command.cc b/common/command.cc index 006a6217..38de8344 100644 --- a/common/command.cc +++ b/common/command.cc @@ -179,8 +179,7 @@ po::options_description CommandHandler::getGeneralOptions() general.add_options()("report", po::value(), "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()("detailed-timing-report", "Append detailed net timing data to the JSON report"); general.add_options()("placed-svg", po::value(), "write render of placement to SVG file"); general.add_options()("routed-svg", po::value(), "write render of routing to SVG file"); -- cgit v1.2.3