Skip to content

Commit

Permalink
openroad.bzl: Add docstring to _make_impl function
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Leonowicz <[email protected]>
  • Loading branch information
mleonowicz committed Sep 3, 2024
1 parent 293d80c commit 60aa780
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions openroad.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,23 @@ orfs_synth = rule(
)

def _make_impl(ctx, stage, steps, result_names = [], object_names = [], log_names = [], report_names = [], extra_arguments = {}):
"""
Implementation function for the OpenROAD-flow-scripts stages.
Args:
ctx: The context object.
stage: The stage name.
steps: Makefile targets to run.
result_names: The names of the result files.
object_names: The names of the object files.
log_names: The names of the log files.
report_names: The names of the report files.
extra_arguments: Extra arguments to add to the configuration.
Returns:
A list of providers. The returned PdkInfo and TopInfo providers are taken from the first
target of a ctx.attr.srcs list.
"""
all_arguments = extra_arguments | _data_arguments(ctx) | _required_arguments(ctx) | _orfs_arguments(ctx.attr.srcs[0][OrfsInfo])
config = ctx.actions.declare_file("results/{}/{}/base/{}.mk".format(_platform(ctx), _module_top(ctx), stage))
ctx.actions.write(
Expand Down

0 comments on commit 60aa780

Please sign in to comment.