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.
This commit is contained in:
parent
0da439cce1
commit
eebb6ec3bb
|
@ -9,9 +9,7 @@ __all__ = ["YosysError", "convert", "convert_fragment"]
|
||||||
|
|
||||||
def _convert_rtlil_text(rtlil_text, *, strip_internal_attrs=False, write_verilog_opts=()):
|
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!
|
# this version requirement needs to be synchronized with the one in pyproject.toml!
|
||||||
# Yosys 0.37 has a critical miscompilation in Verilog backend:
|
yosys = find_yosys(lambda ver: ver >= (0, 38))
|
||||||
# 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))
|
|
||||||
|
|
||||||
script = []
|
script = []
|
||||||
script.append(f"read_ilang <<rtlil\n{rtlil_text}\nrtlil")
|
script.append(f"read_ilang <<rtlil\n{rtlil_text}\nrtlil")
|
||||||
|
|
|
@ -20,7 +20,7 @@ dependencies = [
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
# this version requirement needs to be synchronized with the one in amaranth.back.verilog!
|
# this version requirement needs to be synchronized with the one in amaranth.back.verilog!
|
||||||
builtin-yosys = ["amaranth-yosys>=0.35,!=0.37.0.*"]
|
builtin-yosys = ["amaranth-yosys>=0.38"]
|
||||||
remote-build = ["paramiko~=2.7"]
|
remote-build = ["paramiko~=2.7"]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
|
|
Loading…
Reference in a new issue