Skip to content

Commit

Permalink
Merge pull request #370 from spurserh/main
Browse files Browse the repository at this point in the history
Add extra_tcl_command argument to synthesize_rtl rule.
  • Loading branch information
QuantamHD authored Nov 29, 2024
2 parents 5eeb393 + a406f12 commit 9975e10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions synthesis/build_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ def _synthesize_design_impl(ctx):
args.add("-Q") # Don't print header
args.add_all("-l", [log_file]) # put output in log file
args.add_all("-c", [synth_tcl]) # run synthesis tcl script
if ctx.attr.extra_tcl_command:
args.add("-p", ctx.attr.extra_tcl_command)

dont_use_args = ""
or_config = ctx.attr.standard_cells[StandardCellInfo].open_road_configuration
Expand Down Expand Up @@ -347,6 +349,9 @@ synthesize_rtl = rule(
"deps": attr.label_list(
providers = [[VerilogInfo], [UhdmInfo]],
),
"extra_tcl_command": attr.string(
default = "",
),
"output_file_name": attr.string(
doc = "The output file name.",
),
Expand Down

0 comments on commit 9975e10

Please sign in to comment.