Skip to content

feat(sv)!: add source-driven VCD controls - #1610

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/svtf-runtime/add-source-driven-vcd-controls--d407bf67
Oct 20, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/svtf-runtime/add-source-driven-vcd-controls--d407bf67

Conversation

@tignear

@tignear tignear commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Support $dumpfile/$dumpvars/$dumpon/$dumpoff/$dumpall/$dumplimit/$dumpflush with source hierarchy and depth selection. Preserve waveform signals through optimization, propagate output errors and flush at simulation completion, including direct host API finishes. Enforce dump limits between complete header commands and value records, resume partially emitted headers before values, and rescan when limits relax. Flush old streams before reopening paths, report timed write failures, retain authored names, and apply source selections to component traces. Preserve on/off state changes while output is limited, resolve absolute $root selections, and keep package state outside module-recursive selections. Resolve escaped names, constant indexed hierarchy and explicit package-variable selections; reject source VCD tasks in untimed Simulator builds. Resolve imported package aliases, preserve source controls across output-file switches, retain terminal finish state on output failure, and publish pending diagnostic waveforms before returning fatal errors, including final run-until evaluation. Keep lexically resolved local dump targets distinct from same-named top modules. Accept omitted dump levels while retaining explicit selections, and decode dumpfile names through the shared packed-string binder.

Focused VCD and mixed-family regressions pass, including error propagation, hierarchy selection and clocked processes. The completed tree also passes the recorded full unit/system-function, native image/checkpoint, Clippy, JavaScript and documentation checks. Regressions cover each reviewed output/selection failure, including deterministic activity-based limit resumption and injected traces, limited-output suspension, absolute hierarchy names, escaped/indexed hierarchy, explicit package selection and untimed-build rejection. Finish-output errors, fatal diagnostic output, restarted control state and imported-name shadowing have dedicated regressions. Header-command limit boundaries, omitted-depth package filtering and octal/multiline filenames have regressions. SV-only test helpers are gated so default-feature builds remain supported. Update the two newly passing dumpfile conformance rows from CI run 39413853030 (artifact 12262168735).

BREAKING CHANGE: The public system-task catalog gains VCD variants; update exhaustive matches. Native images use format 19 for component-aware and lexically bound VCD selections and must be rebuilt. Designs with VCD system tasks cannot be checkpointed.

Depends-On: #1609

@tignear

tignear commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 feat(sv)!: add distribution and plusarg system functions #1608
2 feat(sv)!: support runtime file output and memory dumps #1609
3 feat(sv)!: add source-driven VCD controls #1610 👈

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 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 ⚠️ Failed 2026-10-20T16:06:12.027490Z 3ad74a1 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.

@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: 11a2b89185

ℹ️ 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".

Comment thread crates/celox-runtime/src/vcd.rs Resolved
Comment thread crates/celox-runtime/src/vcd.rs Resolved
Comment thread crates/celox/src/simulation.rs Resolved
Comment thread crates/celox/src/simulation.rs Resolved
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime/support-runtime-file-output-memory-dumps--c8428758 branch from c56e9ca to 0d6c780 Compare October 20, 2026 12:05
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime/add-source-driven-vcd-controls--d407bf67 branch from 11a2b89 to 557041f Compare October 20, 2026 12:05
@tignear

tignear commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 11a2b89 2026-10-20 12:05 UTC
2 content 11a2b89 → 557041f Record reviewed seed-width exclusions and newly passing conformance cases in their owning stack commits 2026-10-20 12:05 UTC
3 content 557041f → 72dfa75 Address second-review event-role, MCD stdout and VCD selection/state findings with regressions 2026-10-20 13:43 UTC
4 content 72dfa75 → 059e745 Address third-review driver validation, zero MCD and VCD selection/untimed-build findings 2026-10-20 14:16 UTC
5 content 059e745 → 0a9a93a Address negative unknown plusarg review and rebase stack onto current master to resolve queue conflicts 2026-10-20 14:47 UTC
6 content 0a9a93a → ca3095e Address follow-up plusarg parser findings and advance native image format numbers after trunk schema change 2026-10-20 15:06 UTC
7 rebase ca3095e → da30740 (rebase only) Reject repeated standard stream closes and preserve scheduled reset clock reflection 2026-10-20 15:22 UTC
8 content da30740 → b879aa2 Honor initial header dump limits, omitted dumpvars depth, and shared string decoding for filenames 2026-10-20 15:46 UTC
9 content b879aa2 → 3ad74a1 (raw) Reject ordinary repeating edge host kernels in untimed Simulator builds 2026-10-20 16:05 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: 557041f768

ℹ️ 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".

Comment thread crates/celox-runtime/src/vcd.rs Resolved
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime/support-runtime-file-output-memory-dumps--c8428758 branch from 0d6c780 to cd20e03 Compare October 20, 2026 13:43
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime/add-source-driven-vcd-controls--d407bf67 branch from 557041f to 72dfa75 Compare October 20, 2026 13:43

@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: 72dfa756e5

ℹ️ 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".

Comment thread crates/celox/src/simulator/builder.rs Resolved
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime/support-runtime-file-output-memory-dumps--c8428758 branch from cd20e03 to d08c9d4 Compare October 20, 2026 14:17
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime/add-source-driven-vcd-controls--d407bf67 branch from 72dfa75 to 059e745 Compare October 20, 2026 14:17

@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: 059e745d98

ℹ️ 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".

Comment thread crates/celox-runtime/src/vcd.rs Resolved

@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: 059e745d98

ℹ️ 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".

Comment thread crates/celox-runtime/src/vcd.rs Resolved
Comment thread crates/celox/src/simulation.rs Resolved
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime/add-source-driven-vcd-controls--d407bf67 branch from 059e745 to 0a9a93a Compare October 20, 2026 14:48
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime/support-runtime-file-output-memory-dumps--c8428758 branch from d08c9d4 to 4e24a13 Compare October 20, 2026 14:48

@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: 0a9a93a6a9

ℹ️ 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".

Comment thread crates/celox/src/simulation.rs Resolved
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime/support-runtime-file-output-memory-dumps--c8428758 branch from 4e24a13 to 77709d3 Compare October 20, 2026 15:06
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime/add-source-driven-vcd-controls--d407bf67 branch from 0a9a93a to ca3095e Compare October 20, 2026 15:06

@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: ca3095e7c8

ℹ️ 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".

Comment thread crates/celox-runtime/src/vcd.rs Resolved
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime/add-source-driven-vcd-controls--d407bf67 branch from ca3095e to da30740 Compare October 20, 2026 15:22
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime/support-runtime-file-output-memory-dumps--c8428758 branch from 77709d3 to 8aafb9e Compare October 20, 2026 15:22

@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: da3074093e

ℹ️ 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 force-pushed the stack/tignear/feat/svtf-runtime/add-source-driven-vcd-controls--d407bf67 branch from da30740 to b879aa2 Compare October 20, 2026 15:46
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime/support-runtime-file-output-memory-dumps--c8428758 branch from 8aafb9e to 4ca66f4 Compare October 20, 2026 15:46
Support $dumpfile/$dumpvars/$dumpon/$dumpoff/$dumpall/$dumplimit/$dumpflush with source hierarchy and depth selection. Preserve waveform signals through optimization, propagate output errors and flush at simulation completion, including direct host API finishes. Enforce dump limits between complete header commands and value records, resume partially emitted headers before values, and rescan when limits relax. Flush old streams before reopening paths, report timed write failures, retain authored names, and apply source selections to component traces. Preserve on/off state changes while output is limited, resolve absolute $root selections, and keep package state outside module-recursive selections. Resolve escaped names, constant indexed hierarchy and explicit package-variable selections; reject source VCD tasks in untimed Simulator builds. Resolve imported package aliases, preserve source controls across output-file switches, retain terminal finish state on output failure, and publish pending diagnostic waveforms before returning fatal errors, including final run-until evaluation. Keep lexically resolved local dump targets distinct from same-named top modules. Accept omitted dump levels while retaining explicit selections, and decode dumpfile names through the shared packed-string binder.

Focused VCD and mixed-family regressions pass, including error propagation, hierarchy selection and clocked processes. The completed tree also passes the recorded full unit/system-function, native image/checkpoint, Clippy, JavaScript and documentation checks. Regressions cover each reviewed output/selection failure, including deterministic activity-based limit resumption and injected traces, limited-output suspension, absolute hierarchy names, escaped/indexed hierarchy, explicit package selection and untimed-build rejection. Finish-output errors, fatal diagnostic output, restarted control state and imported-name shadowing have dedicated regressions. Header-command limit boundaries, omitted-depth package filtering and octal/multiline filenames have regressions. SV-only test helpers are gated so default-feature builds remain supported. Update the two newly passing dumpfile conformance rows from CI run 39413853030 (artifact 12262168735).

BREAKING CHANGE: The public system-task catalog gains VCD variants; update exhaustive matches. Native images use format 19 for component-aware and lexically bound VCD selections and must be rebuilt. Designs with VCD system tasks cannot be checkpointed.

Change-Id: Id407bf67945978820cbb54624814a47d2b66a8f1
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime/add-source-driven-vcd-controls--d407bf67 branch from b879aa2 to 3ad74a1 Compare October 20, 2026 16:06
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime/support-runtime-file-output-memory-dumps--c8428758 branch from 4ca66f4 to eb4e6ae Compare October 20, 2026 16:06
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 20, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 20, 2026
@mergify

mergify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 1 hour 3 minutes 42 seconds in the queue, including 34 minutes 32 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on = celox-sim/celox#1609 [⛓️ feat(sv)!: support runtime file output and memory dumps #1609]
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

Base automatically changed from stack/tignear/feat/svtf-runtime/support-runtime-file-output-memory-dumps--c8428758 to master October 20, 2026 17:59
@mergify
mergify Bot merged commit aeabf87 into master Oct 20, 2026
32 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/svtf-runtime/add-source-driven-vcd-controls--d407bf67 branch October 20, 2026 18:00
@mergify mergify Bot removed the queued Mergify queue entry label Oct 20, 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