Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions place_and_route/build_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ place_and_route = rule(
""",
values = [step[0] for step in PLACE_AND_ROUTE_STEPS],
),
"suppress_warnings": attr.string_list(
doc = "A list of OpenROAD warnings to suppress, e.g., [\"STA-1212\", \"PDR-0020\"].",
),
"synthesized_rtl": attr.label(
mandatory = True,
providers = [SynthesisInfo],
Expand Down
10 changes: 10 additions & 0 deletions place_and_route/open_road.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,16 @@ def openroad_command(ctx, commands, input_db = None, step_name = None, inputs =

real_commands = []

if hasattr(ctx.attr, "suppress_warnings") and ctx.attr.suppress_warnings:
for warning in ctx.attr.suppress_warnings:
parts = warning.split("-")
if len(parts) != 2:
fail(
"Invalid format in suppress_warnings: {}. ".format(warning) +
"Expected format: MODULE-NUMBER",
)
real_commands.append('::utl::suppress_message "{}" "{}"'.format(parts[0], parts[1]))

# Liberty Setup
stdcell_info = ctx.attr.synthesized_rtl[SynthesisInfo].standard_cell_info
liberty = stdcell_info.default_corner.liberty
Expand Down