From: whitequark Date: Thu, 11 Jun 2020 16:19:40 +0000 (+0000) Subject: back.cxxrtl: new backend. X-Git-Tag: working2~8 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=545e49c2;p=nmigen.git back.cxxrtl: new backend. --- diff --git a/nmigen/back/cxxrtl.py b/nmigen/back/cxxrtl.py new file mode 100644 index 0000000..8010539 --- /dev/null +++ b/nmigen/back/cxxrtl.py @@ -0,0 +1,27 @@ +from .._yosys import * +from . import rtlil + + +__all__ = ["YosysError", "convert", "convert_fragment"] + + +def _convert_rtlil_text(rtlil_text, *, src_loc_at=0): + # FIXME: update this requirement once Yosys updates its node version + yosys = find_yosys(lambda ver: ver >= (0, 9)) + return yosys.run(["-q", "-"], """ +read_ilang <