Skip to content

Fault fails with wrong circt version #328

Description

@phanrahan

Fault fails with wrong circt version.

def circt_opt_version() -> str:
        circt_home = _circt_home()
        circt_opt_binary = _circt_opt_binary(circt_home)
        ostream = io.TextIOWrapper(io.BytesIO())
        returncode = _run_subprocess(
            [circt_opt_binary, "--version"],
            stdin=io.BytesIO(),
            stdout=ostream.buffer,
        )
        ostream.seek(0)
        version = ostream.read()
        match = re.search(_CIRCT_VERSION_RE_PATTERN, version, re.MULTILINE)
        if match is None:
>           raise BadCirctOptVersionStringError(version)
E           magma.backend.mlir.mlir_to_verilog.BadCirctOptVersionStringError: LLVM (http://llvm.org/):
E             LLVM version 17.0.0git
E             DEBUG build with assertions.
E           CIRCT unknown git version

../../magma/magma/backend/mlir/mlir_to_verilog.py:123: BadCirctOptVersionStringError

Trying to disable the check as follows doesn't work.

tester.compile_and_run("verilator", disp_type="realtime",
                           magma_output="mlir-verilog",
                           check_circt_opt_version=False)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions