Skip to content

Commit

Permalink
Fix cell utilization report for place and route. (hdl#363)
Browse files Browse the repository at this point in the history
Previously, it unconditionally reported zero utilization.
  • Loading branch information
grebe authored Nov 4, 2024
1 parent 8657ee9 commit a6b6eff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion place_and_route/private/benchmark.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def benchmark(ctx, open_road_info):
struct(
area = struct(
cell_area_um2 = "${area:=0}",
cell_utilization_fraction = "$(printf %.0f $(bc<<<$util/100.0))",
# Use bc -l to set scale, otherwise XX/100 will evaluate to zero.
cell_utilization_fraction = "$(printf %.3f $(bc -l<<<$util/100.0))",
area_sequentials_um2 = "${seq_area:=0}",
area_combinationals_um2 = "${combos_area:=0}",
area_buffers_um2 = "${buffs_area:=0}",
Expand Down

0 comments on commit a6b6eff

Please sign in to comment.