Skip to content

feat(sv)!: support runtime file output and memory dumps - #1609

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/svtf-runtime/support-runtime-file-output-memory-dumps--c8428758
Oct 20, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/svtf-runtime/support-runtime-file-output-memory-dumps--c8428758

Conversation

@tignear

@tignear tignear commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Implement $writememh/$writememb and $fopen/$fclose/$fdisplay/$fwrite variants through per-simulation file descriptors and ordered runtime events. Schedule edge-triggered host requests and reject checkpointing external file resources. Inspect defaults selected by omitted arguments, preserve clock/reset metadata, and retain the timed execution requirement even when host calls fold away. Choose primary edge roles globally across ordinary and scheduled processes, reject unsupported vector event signals, and publish selected stdout even when another MCD channel fails. Preserve scheduled-edge processes in every local driver scan and reject writes and closes using a zero MCD. Reject repeated standard-stream closes across FD/MCD aliases and retain scheduled reset-to-clock reflection. Keep stdout events bounded and unformatted until the caller drains them; preserve the shared overwrite policy and event order. Arm converted edge waiters before time-zero host signal changes. Reject untimed builds of ordinary repeating host procedures through site-level requirements while retaining one-shot initial behavior.

Focused file I/O, narrow memory snapshot, mixed-family and checkpoint regressions pass. Affected crates pass checks, all-target Clippy and formatting. Portable memory dump cases pass external simulator validation within documented backend exclusions. Default-argument, clock/reset metadata and folded-request regressions pass across all four backends. Global role priority, event-width validation and failed-MCD stdout regressions also pass across all four backends, alongside existing derived-clock and file-output cases. Driver checks cover scheduled/ordinary/child/package writers and retain disjoint writes; failed MCD-open output and close calls are rejected across all four backends. Regressions cover caller-supplied formatting context, mixed stdout/ring overflow, time-zero clock/reset edges, initial/NBA ordering and checkpoint/state-file restoration. Update the two newly passing file-I/O conformance rows from CI run 39413853030 (artifact 12262168735).

BREAKING CHANGE: Public system-task catalogs and CheckpointError gain variants; update exhaustive matches. ProcessSlots gains requires_timed_simulation and ProcessRefs gains starts_with_event_wait; update explicit struct literals. Native images use format 18 and must be rebuilt. Designs with runtime file resources cannot be checkpointed.

Depends-On: #1608

@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:07.899303Z eb4e6ae 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: c56e9caf06

ℹ️ 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-distribution-plusarg-system-funcs--ae0d4de3 branch from ec1c28c to e1130e4 Compare October 20, 2026 12:05
@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 commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial c56e9ca 2026-10-20 12:05 UTC
2 content c56e9ca → 0d6c780 2026-10-20 12:05 UTC
3 content 0d6c780 → cd20e03 2026-10-20 13:43 UTC
4 content cd20e03 → d08c9d4 2026-10-20 14:16 UTC
5 content d08c9d4 → 4e24a13 2026-10-20 14:47 UTC
6 content 4e24a13 → 77709d3 Keep ProcessSlots schema incompatible with the preceding host-request format 2026-10-20 15:06 UTC
7 content 77709d3 → 8aafb9e Reject repeated standard stream closes and retain scheduled reset clock associations 2026-10-20 15:22 UTC
8 content 8aafb9e → 4ca66f4 Document deferred bounded output, time-zero startup, and public ProcessRefs field 2026-10-20 15:46 UTC
9 content 4ca66f4 → eb4e6ae Reject repeating ordinary host-request kernels through site-level timed requirements 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: 0d6c780ba8

ℹ️ 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/file_io.rs Resolved
@mergify

mergify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Queued — the merge queue status continues in this comment ↓.

@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

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

ℹ️ 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/file_io.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

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

ℹ️ 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/file_io.rs Resolved
@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
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime/add-distribution-plusarg-system-funcs--ae0d4de3 branch 2 times, most recently from c1b36cf to ff81df5 Compare October 20, 2026 15:06
@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

@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: 77709d3e6e

ℹ️ 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/file_io.rs Resolved
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime/add-distribution-plusarg-system-funcs--ae0d4de3 branch from ff81df5 to c5d2277 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: 8aafb9ea2e

ℹ️ 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-sv-analyzer/src/ir.rs Resolved
@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

@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: 4ca66f4ce1

ℹ️ 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
Implement $writememh/$writememb and $fopen/$fclose/$fdisplay/$fwrite variants through per-simulation file descriptors and ordered runtime events. Schedule edge-triggered host requests and reject checkpointing external file resources. Inspect defaults selected by omitted arguments, preserve clock/reset metadata, and retain the timed execution requirement even when host calls fold away. Choose primary edge roles globally across ordinary and scheduled processes, reject unsupported vector event signals, and publish selected stdout even when another MCD channel fails. Preserve scheduled-edge processes in every local driver scan and reject writes and closes using a zero MCD. Reject repeated standard-stream closes across FD/MCD aliases and retain scheduled reset-to-clock reflection. Keep stdout events bounded and unformatted until the caller drains them; preserve the shared overwrite policy and event order. Arm converted edge waiters before time-zero host signal changes. Reject untimed builds of ordinary repeating host procedures through site-level requirements while retaining one-shot initial behavior.

Focused file I/O, narrow memory snapshot, mixed-family and checkpoint regressions pass. Affected crates pass checks, all-target Clippy and formatting. Portable memory dump cases pass external simulator validation within documented backend exclusions. Default-argument, clock/reset metadata and folded-request regressions pass across all four backends. Global role priority, event-width validation and failed-MCD stdout regressions also pass across all four backends, alongside existing derived-clock and file-output cases. Driver checks cover scheduled/ordinary/child/package writers and retain disjoint writes; failed MCD-open output and close calls are rejected across all four backends. Regressions cover caller-supplied formatting context, mixed stdout/ring overflow, time-zero clock/reset edges, initial/NBA ordering and checkpoint/state-file restoration. Update the two newly passing file-I/O conformance rows from CI run 39413853030 (artifact 12262168735).

BREAKING CHANGE: Public system-task catalogs and CheckpointError gain variants; update exhaustive matches. ProcessSlots gains requires_timed_simulation and ProcessRefs gains starts_with_event_wait; update explicit struct literals. Native images use format 18 and must be rebuilt. Designs with runtime file resources cannot be checkpointed.

Change-Id: Ic8428758273662a384f6b07c32944b26b314804e
@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.

@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 16 minutes 54 seconds in the queue, including 34 minutes 32 seconds running CI.

Required conditions to merge

Base automatically changed from stack/tignear/feat/svtf-runtime/add-distribution-plusarg-system-funcs--ae0d4de3 to master October 20, 2026 17:23
@mergify
mergify Bot merged commit cef312c into master Oct 20, 2026
31 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/svtf-runtime/support-runtime-file-output-memory-dumps--c8428758 branch October 20, 2026 17:59
@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