Skip to content

Commit 7d85930

Browse files
authored
Merge pull request #364 from grebe/local_cts
Add option to run clock tree synthesis locally.
2 parents a6b6eff + b7a3b3f commit 7d85930

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

place_and_route/build_defs.bzl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ place_and_route = rule(
109109
default = True,
110110
doc = "Enable/Disable improve_placement pass.",
111111
),
112+
"local_clock_tree_synthesis_execution": attr.bool(
113+
default = False,
114+
doc = "Whether to run clock tree synthesis on a remote executor. If the clock tree synthesis exceeds 15 minutes flip this setting.",
115+
),
112116
"local_detailed_routing_execution": attr.bool(
113117
default = False,
114118
doc = "Whether to run detailed routing on a remote executor. If the detailed routing exceeds 15 minutes flip this setting.",

place_and_route/private/clock_tree_synthesis.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,16 @@ def clock_tree_synthesis(ctx, open_road_info):
6161
if open_road_configuration.check_placement:
6262
open_road_commands.append("check_placement")
6363

64+
execution_requirements = {}
65+
if ctx.attr.local_clock_tree_synthesis_execution:
66+
execution_requirements["no-remote-exec"] = ""
67+
6468
command_output = openroad_command(
6569
ctx,
6670
commands = open_road_commands,
6771
input_db = open_road_info.output_db,
6872
inputs = inputs,
73+
execution_requirements = execution_requirements,
6974
step_name = "clock_tree_synthesis",
7075
)
7176

0 commit comments

Comments
 (0)