Skip to content

Fix wrap_openframe.py: parenthesize OEB inversion for parser#48

Merged
robtaylor merged 2 commits intomainfrom
fix/wrap-oeb-parens
Feb 27, 2026
Merged

Fix wrap_openframe.py: parenthesize OEB inversion for parser#48
robtaylor merged 2 commits intomainfrom
fix/wrap-oeb-parens

Conversation

@robtaylor
Copy link
Contributor

Summary

  • Wraps OEB inversion operands in parentheses: ~( \io$name$oe ) instead of ~\io$name$oe
  • Loom's sverilog parser can't handle unary operators (~, !) immediately before backslash-escaped identifiers
  • Adding parentheses makes the expression unambiguous for the parser

Fixes MCU SoC Metal Simulation CI failure on PR #44.

Test plan

@robtaylor robtaylor closed this Feb 27, 2026
@robtaylor robtaylor reopened this Feb 27, 2026
Loom's sverilogparse cannot parse unary operators immediately before
backslash-escaped identifiers (e.g. `~\io$name$oe`). Wrap the
operand in parentheses: `~( \io$name$oe )` so the parser handles
it correctly.

Co-developed-by: Claude Code v2.1.44 (claude-opus-4-6)
@robtaylor robtaylor merged commit 1e12b24 into main Feb 27, 2026
8 checks passed
@robtaylor robtaylor deleted the fix/wrap-oeb-parens branch February 27, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant