From eebb6ec3bb3ebb8e42b5ae8cbd232c02f2be962d Mon Sep 17 00:00:00 2001 From: Catherine Date: Tue, 13 Feb 2024 04:58:26 +0000 Subject: [PATCH] back.verilog: require Yosys 0.38. This avoids the awkward requirement due to the bug in Yosys 0.37, and will soon be required anyway once the `$check` cell is emitted. --- amaranth/back/verilog.py | 4 +--- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/amaranth/back/verilog.py b/amaranth/back/verilog.py index d5c75a1..ef32555 100644 --- a/amaranth/back/verilog.py +++ b/amaranth/back/verilog.py @@ -9,9 +9,7 @@ __all__ = ["YosysError", "convert", "convert_fragment"] def _convert_rtlil_text(rtlil_text, *, strip_internal_attrs=False, write_verilog_opts=()): # this version requirement needs to be synchronized with the one in pyproject.toml! - # Yosys 0.37 has a critical miscompilation in Verilog backend: - # https://github.com/amaranth-lang/amaranth/issues/1049 - yosys = find_yosys(lambda ver: ver >= (0, 35) and not (0, 36, 79) <= ver <= (0, 37, 29)) + yosys = find_yosys(lambda ver: ver >= (0, 38)) script = [] script.append(f"read_ilang <=0.35,!=0.37.0.*"] +builtin-yosys = ["amaranth-yosys>=0.38"] remote-build = ["paramiko~=2.7"] [project.scripts]