From bde869c22f3aba563158893a89feca35d883cd47 Mon Sep 17 00:00:00 2001 From: Will S <71153900+wrs225@users.noreply.github.com> Date: Sat, 7 Dec 2024 02:23:57 -0800 Subject: [PATCH] bugfix: crash when `SYNTH_NO_FLAT` is set to `true` (#620) * `Yosys.*Synthesis` * Fixed crash when `SYNTH_NO_FLAT` is set to `true`. --- openlane/scripts/pyosys/synthesize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlane/scripts/pyosys/synthesize.py b/openlane/scripts/pyosys/synthesize.py index 39308d67f..d0ed67f2d 100644 --- a/openlane/scripts/pyosys/synthesize.py +++ b/openlane/scripts/pyosys/synthesize.py @@ -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)