Skip to content

Commit

Permalink
openroad: Pass user provided stage_sources to configuration targets
Browse files Browse the repository at this point in the history
This allows `$(location <label>)` expansion in user provided arguments.
  • Loading branch information
hovind authored and oharboe committed Jun 10, 2024
1 parent c8c8cbd commit 2bc8919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openroad.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ def build_openroad(
["GDS_ALLOW_EMPTY=(" + "|".join(macros) + ")"] if len(macros) > 0 else [])
stage_args["generate_abstract"] += ["ABSTRACT_SOURCE=" + abstract_source] if mock_abstract else []

stage_cfg_sources = init_stage_dict(all_stage_names, {})
stage_cfg_sources = init_stage_dict(all_stage_names, stage_sources)
if sdc_constraints != None:
stage_cfg_sources["floorplan"].append(sdc_constraints)
stage_cfg_sources["synth_sdc"].append(sdc_constraints)
Expand All @@ -706,7 +706,7 @@ def build_openroad(
stage_cfg_sources["floorplan"].append(io_constraints)
stage_cfg_sources["place"].append(io_constraints)

stage_sources = init_stage_dict(all_stage_names, stage_sources | stage_cfg_sources)
stage_sources = init_stage_dict(all_stage_names, stage_cfg_sources)
stage_sources["route"] += outs["cts"]
for stage in ["floorplan", "final", "generate_abstract"]:
stage_args[stage] += lefs_args
Expand Down

0 comments on commit 2bc8919

Please sign in to comment.