from .._toolchain.yosys import * from ..hdl import _ast, _ir from ..lib import wiring from . import rtlil __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 = find_yosys(lambda ver: ver >= (0, 40)) script = [] script.append(f"read_rtlil <