Skip to content

Fix wrap_openframe.py: use ~ instead of ! for OEB inversion#45

Merged
robtaylor merged 1 commit intomainfrom
fix/wrap-script-parse
Feb 27, 2026
Merged

Fix wrap_openframe.py: use ~ instead of ! for OEB inversion#45
robtaylor merged 1 commit intomainfrom
fix/wrap-script-parse

Conversation

@robtaylor
Copy link
Contributor

Summary

  • Changes ! to ~ in OEB (output enable bar) assign statements
  • Loom's sverilog parser can't handle !\escaped_name - the ! immediately before a backslash-escaped identifier causes a parse error
  • ~ (bitwise NOT) produces the same result as ! (logical NOT) for single-bit signals

This fixes the MCU SoC Metal Simulation CI failure on PR #44 (auto/update-mcu-soc-data).

Test plan

  • Merge this, then rebuild will use the fixed wrapper
  • MCU SoC Metal Simulation CI should pass with the new netlist

Loom's sverilogparse cannot parse `!\escaped_name` (! immediately
before backslash-escaped identifier). Using ~ (bitwise NOT) instead
of ! (logical NOT) produces the same result for single-bit signals
and is valid Verilog that the parser can handle.

Co-developed-by: Claude Code v2.1.44 (claude-opus-4-6)
@robtaylor robtaylor merged commit f6c682c into main Feb 27, 2026
8 checks passed
@robtaylor robtaylor deleted the fix/wrap-script-parse branch February 27, 2026 06:51
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