Skip to content

fix(sv): handle Veryl-emitted interface declarations and calls - #1525

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-conformance-gaps/handle-veryl-emitted-interface-declarations-calls--9a411d53
Oct 19, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-conformance-gaps/handle-veryl-emitted-interface-declarations-calls--9a411d53

Conversation

@tignear

@tignear tignear commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Veryl-emitted interfaces could fail on header package imports, type parameters,
nested interface instances and calls on selected interface-array elements.
Preserve imported defaults across source files, specialize and forward interface
types, bind nested instances without leaking private handles, and resolve
constant array selections before binding function calls. Diagnose recursive
specializations and nesting beyond 64 levels.

Add four shared Veryl regressions using the real emitter, analyzer diagnostics,
and updated support documentation. The array-call and nested-instance fixtures
retain explicit native-path exclusions: Veryl 0.22 loses array selection and
interface-body/nested-instance logic in its native IR. The emitted SV path is
the target of these fixes. Record observed Icarus limitations and register their
retained aggregate evidence.

Validation: interface-only SV suite 2,919 passes, interface suite 188 passes,
package 57 and compilation-unit 12 passes; analyzer tests, Clippy, formatting,
retained reports and evidence checks pass. All four new cases pass Verilator;
Icarus compile limitations are documented with measured evidence. Rechecked the
standalone interface commit's 188 interface tests and documentation build after
splitting the parameter fix. NAPI does not expose the SV frontend.

Keep catalogue validation independent of the total case count while checking
nonempty contents, unique names and stable lookup/category behavior.
Validation: all 11 external_adapter tests pass both at this commit and at the
stack tip; focused Clippy passes.

Depends-On: #1522

@tignear

tignear commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 docs(sv): separate the getting-started guide from the language reference #1522
2 fix(sv): handle Veryl-emitted interface declarations and calls #1525 👈
3 fix(sv): preserve parameter overrides with explicit analysis state #1526
4 refactor(native): own emission state in the assembler #1530
5 refactor(veryl)!: pass lowering state and dependency collectors explicitly #1531
6 refactor(vpi)!: own runtime state in an explicit VPI session #1532
7 chore(lint): prohibit thread-local state outside unit tests #1533

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T08:38:15.061625Z 9288d2f New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 19, 2026
@tignear
tignear force-pushed the stack/tignear/fix/sv-conformance-gaps/handle-veryl-emitted-interface-declarations-calls--9a411d53 branch from 0e18bd6 to 9b287ac Compare October 19, 2026 07:08
@tignear

tignear commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 0e18bd6 2026-10-19 07:08 UTC
2 content 0e18bd6 → 9b287ac Fix CI catalogue validation: additions must preserve unique stable names, not a frozen total. 2026-10-19 07:08 UTC
3 content 9b287ac → 9288d2f Resolve overlap with merged warning regression tests while preserving both test groups. 2026-10-19 08:34 UTC

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9b287ac1e4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@tignear

tignear commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

🛑 Queue command has been cancelled

Veryl-emitted interfaces could fail on header package imports, type parameters,
nested interface instances and calls on selected interface-array elements.
Preserve imported defaults across source files, specialize and forward interface
types, bind nested instances without leaking private handles, and resolve
constant array selections before binding function calls. Diagnose recursive
specializations and nesting beyond 64 levels.

Add four shared Veryl regressions using the real emitter, analyzer diagnostics,
and updated support documentation. The array-call and nested-instance fixtures
retain explicit native-path exclusions: Veryl 0.22 loses array selection and
interface-body/nested-instance logic in its native IR. The emitted SV path is
the target of these fixes. Record observed Icarus limitations and register their
retained aggregate evidence.

Validation: interface-only SV suite 2,919 passes, interface suite 188 passes,
package 57 and compilation-unit 12 passes; analyzer tests, Clippy, formatting,
retained reports and evidence checks pass. All four new cases pass Verilator;
Icarus compile limitations are documented with measured evidence. Rechecked the
standalone interface commit's 188 interface tests and documentation build after
splitting the parameter fix. NAPI does not expose the SV frontend.

Keep catalogue validation independent of the total case count while checking
nonempty contents, unique names and stable lookup/category behavior.
Validation: all 11 external_adapter tests pass both at this commit and at the
stack tip; focused Clippy passes.

Change-Id: I9a411d53c81740f27b6ca3f733cc1e59bbf366f5
@tignear
tignear force-pushed the stack/tignear/fix/sv-conformance-gaps/separate-getting-started-guide-language-ref--81de046a branch from 5f3c2e4 to bce1190 Compare October 19, 2026 08:30
@tignear
tignear force-pushed the stack/tignear/fix/sv-conformance-gaps/handle-veryl-emitted-interface-declarations-calls--9a411d53 branch from 9b287ac to 9288d2f Compare October 19, 2026 08:35
@mergify

mergify Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

queue

🛑 The queue request has been cancelled: new commits were pushed

Details

@tignear pushed to this pull request after queue was requested. Review the new commits and request it again.

Base automatically changed from stack/tignear/fix/sv-conformance-gaps/separate-getting-started-guide-language-ref--81de046a to master October 19, 2026 09:49
@mergify mergify Bot added the queued Mergify queue entry label Oct 19, 2026
@mergify

mergify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 1 hour 54 minutes 32 seconds in the queue, including 1 hour 5 minutes 12 seconds running CI.

Required conditions to merge

@mergify
mergify Bot merged commit 6316db0 into master Oct 19, 2026
30 checks passed
@mergify
mergify Bot deleted the stack/tignear/fix/sv-conformance-gaps/handle-veryl-emitted-interface-declarations-calls--9a411d53 branch October 19, 2026 12:13
@mergify mergify Bot removed the queued Mergify queue entry label Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant