Skip to content

Commit

Permalink
Merge pull request #333 from hzeller/feature-20240611-extract-power-t…
Browse files Browse the repository at this point in the history
…otal

Extract the correct power totals from the logfile.
  • Loading branch information
hzeller authored Jun 12, 2024
2 parents c873aeb + 9b08d98 commit 0d1f251
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions place_and_route/private/benchmark.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ 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 }}')"),
("num_combinational_gates:", "'/Complex combinational cells:/ {{ print $4 }}')"),
("num_combinational_gates:", "'/combinational cells:/ {{ print $4 }}')"),
("num_flops:", "'/Sequential cells:/ {{ print $3 }}')"),
("num_buffers:", "'/Buffer/ {{ buffers=$2; exit }} END {{ print buffers }}')"),
("num_timing_buffers:", "'/Timing Repair/ {{ print $4 }}')"),
Expand Down

0 comments on commit 0d1f251

Please sign in to comment.