Skip to content

Commit

Permalink
Merge pull request #343 from hdl/benchmark
Browse files Browse the repository at this point in the history
Compatibility fix after OpenROAD report_cell_usage change.
  • Loading branch information
QuantamHD authored Aug 29, 2024
2 parents 805f6fa + fb1fa71 commit 0dacd9a
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 @@ -73,10 +73,10 @@ def benchmark(ctx, open_road_info):
("}", "'')"),
("area_micro_meters_squared:", "'/Design area/ {{ print $3 }}')"),
("area_utilization_percentage:", "-F '[ %]' '/Design area/ {{ print $5 }}')"),
("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 }}')"),
("num_combinational_gates:", "'/combinational cell/ {{ print 0 + $4 }}')"),
("num_flops:", "'/Sequential cell/ {{ print 0 + $3 }}')"),
("num_buffers:", "'/Buffer/ {{ buffer=$2; exit }} END {{ print 0 + buffers }}')"),
("num_timing_buffers:", "'/Timing Repair/ {{ print 0 + $4 }}')"),
]
cmds.extend([prefix + cmd + suffix.format(field = field, out = benchmark_path) for field, cmd in awk_cmds])

Expand Down

0 comments on commit 0dacd9a

Please sign in to comment.