|
|
@@ -151,7 +151,9 @@ def yosys_stats(top: str, run_root: Path) -> dict[str, object]:
|
|
|
f"hierarchy -check -top {top}; proc; opt; memory; opt; "
|
|
|
f"techmap; opt; abc -lut 4; clean; stat -json"
|
|
|
)
|
|
|
- record = run(["yosys", "-q", "-p", script], cwd=ROOT, log=log)
|
|
|
+ # -q suppresses `stat -json` on Yosys 0.23, so retain command output while
|
|
|
+ # omitting only the banner and footer.
|
|
|
+ record = run(["yosys", "-Q", "-T", "-p", script], cwd=ROOT, log=log)
|
|
|
if record["exit_code"] != 0:
|
|
|
raise RuntimeError(f"Yosys failed for {top}: {log}")
|
|
|
payload = extract_json(log.read_text(encoding="utf-8", errors="replace"))
|