Skip to content

Commit

Permalink
Add option to run clock tree synthesis locally.
Browse files Browse the repository at this point in the history
  • Loading branch information
grebe committed Nov 5, 2024
1 parent a6b6eff commit b7a3b3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions place_and_route/build_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ place_and_route = rule(
default = True,
doc = "Enable/Disable improve_placement pass.",
),
"local_clock_tree_synthesis_execution": attr.bool(
default = False,
doc = "Whether to run clock tree synthesis on a remote executor. If the clock tree synthesis exceeds 15 minutes flip this setting.",
),
"local_detailed_routing_execution": attr.bool(
default = False,
doc = "Whether to run detailed routing on a remote executor. If the detailed routing exceeds 15 minutes flip this setting.",
Expand Down
5 changes: 5 additions & 0 deletions place_and_route/private/clock_tree_synthesis.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,16 @@ def clock_tree_synthesis(ctx, open_road_info):
if open_road_configuration.check_placement:
open_road_commands.append("check_placement")

execution_requirements = {}
if ctx.attr.local_clock_tree_synthesis_execution:
execution_requirements["no-remote-exec"] = ""

command_output = openroad_command(
ctx,
commands = open_road_commands,
input_db = open_road_info.output_db,
inputs = inputs,
execution_requirements = execution_requirements,
step_name = "clock_tree_synthesis",
)

Expand Down

0 comments on commit b7a3b3f

Please sign in to comment.