Skip to content

Commit

Permalink
openroad.bzl: Added including logs from abstract stage
Browse files Browse the repository at this point in the history
Signed-off-by: Grzegorz Latosinski <[email protected]>
  • Loading branch information
glatosinski committed Aug 28, 2024
1 parent 1a2fb81 commit b2da622
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions openroad.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -414,12 +414,18 @@ def _yosys_impl(ctx, canonicalize, log_names = [], report_names = []):
for report in report_names:
reports.append(ctx.actions.declare_file("reports/{}/{}/base/{}".format(_platform(ctx), _module_top(ctx), report)))

previous_logs = []
previous_reports = []
if canonicalize:
verilog_files = ctx.files.verilog_files
rtlil = []
synth_outputs = [ctx.actions.declare_file(result_dir + "1_synth.rtlil")]
previous_logs = []
previous_reports = []

for dep in ctx.attr.deps:
if dep[LoggingInfo].logs:
previous_logs.extend(dep[LoggingInfo].logs)
if dep[LoggingInfo].reports:
previous_reports.extend(dep[LoggingInfo].reports)
else:
verilog_files = []
rtlil = [ctx.attr.canonicalized[CanonicalizeInfo].rtlil]
Expand All @@ -428,8 +434,8 @@ def _yosys_impl(ctx, canonicalize, log_names = [], report_names = []):
ctx.actions.declare_file(result_dir + "1_synth.sdc"),
ctx.actions.declare_file(result_dir + "mem.json"),
]
previous_logs = ctx.attr.canonicalized[LoggingInfo].logs
previous_reports = ctx.attr.canonicalized[LoggingInfo].reports
previous_logs.extend(ctx.attr.canonicalized[LoggingInfo].logs)
previous_reports.extend(ctx.attr.canonicalized[LoggingInfo].logs)

command = _add_optional_generation_to_command("make $@", logs + reports)

Expand Down

0 comments on commit b2da622

Please sign in to comment.