Skip to content

Commit

Permalink
Extract the correct power totals from the logfile.
Browse files Browse the repository at this point in the history
There is another 'Total' in the logfile that would override
the values just found (and does not have multiple columns).

Make the regex a bit more specific to only latch on the line that
actually contains all the power values.
  • Loading branch information
hzeller committed Jun 11, 2024
1 parent c873aeb commit 346aaac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions place_and_route/private/benchmark.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def benchmark(ctx, open_road_info):
("worst_slack_max:", "'/wns/ {{ print $2 }}')"),
("total_negative_slack_max:", "'/tns/ {{ print $2 }}')"),
("power_total {", "'')"),
(" internal_package_watts:", "'/Total/ {{ intern_power=$2 }} END {{ print intern_power }}')"),
(" switching_package_watts:", "'/Total/ {{ switch_power=$3 }} END {{ print switch_power }}')"),
(" total_package_watts:", "'/Total/ {{ total_power=$5 }} END {{ print total_power }}')"),
(" internal_package_watts:", "'/^Total / {{ intern_power=$2 }} END {{ print intern_power }}')"),
(" switching_package_watts:", "'/^Total / {{ switch_power=$3 }} END {{ print switch_power }}')"),
(" total_package_watts:", "'/^Total / {{ total_power=$5 }} END {{ print total_power }}')"),
("}", "'')"),
("area_micro_meters_squared:", "'/Design area/ {{ print $3 }}')"),
("area_utilization_percentage:", "-F '[ %]' '/Design area/ {{ print $5 }}')"),
Expand Down

0 comments on commit 346aaac

Please sign in to comment.