From fb1fa71b89dd58902a3865ea5d63cf8b8db90dd8 Mon Sep 17 00:00:00 2001 From: Mike Inouye Date: Wed, 7 Aug 2024 00:59:27 +0000 Subject: [PATCH] Compatibility fix after OpenROAD report_cell_usage change. Signed-off-by: Mike Inouye --- place_and_route/private/benchmark.bzl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/place_and_route/private/benchmark.bzl b/place_and_route/private/benchmark.bzl index fadd9428..73fa2937 100644 --- a/place_and_route/private/benchmark.bzl +++ b/place_and_route/private/benchmark.bzl @@ -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])