Skip to content

Commit a6b6eff

Browse files
authored
Fix cell utilization report for place and route. (#363)
Previously, it unconditionally reported zero utilization.
1 parent 8657ee9 commit a6b6eff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

place_and_route/private/benchmark.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ def benchmark(ctx, open_road_info):
9494
struct(
9595
area = struct(
9696
cell_area_um2 = "${area:=0}",
97-
cell_utilization_fraction = "$(printf %.0f $(bc<<<$util/100.0))",
97+
# Use bc -l to set scale, otherwise XX/100 will evaluate to zero.
98+
cell_utilization_fraction = "$(printf %.3f $(bc -l<<<$util/100.0))",
9899
area_sequentials_um2 = "${seq_area:=0}",
99100
area_combinationals_um2 = "${combos_area:=0}",
100101
area_buffers_um2 = "${buffs_area:=0}",

0 commit comments

Comments
 (0)