Skip to content

Commit

Permalink
bugfix: crash when SYNTH_NO_FLAT is set to true (#620)
Browse files Browse the repository at this point in the history
* `Yosys.*Synthesis`
  * Fixed crash when `SYNTH_NO_FLAT` is set to `true`.
  • Loading branch information
wrs225 authored Dec 7, 2024
1 parent df6079d commit bde869c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openlane/scripts/pyosys/synthesize.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def run_strategy(d):
if config["SYNTH_NO_FLAT"]:
# Resynthesize, flattening
d_flat = ys.Design()
d_flat.add_blackbox_models(blackbox_models)
d_flat.add_blackbox_models(blackbox_models, includes=includes, defines=defines)

shutil.copy(output, f"{output}.hierarchy.nl.v")
d_flat.run_pass("read_verilog", "-sv", output)
Expand Down

0 comments on commit bde869c

Please sign in to comment.