import warnings from .._toolchain.yosys import * from ..hdl import ir 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 setup.py! yosys = find_yosys(lambda ver: ver >= (0, 10)) yosys_version = yosys.version() script = [] script.append("read_ilang <