Skip to content

feat(sv): support task calls with timing controls - #1592

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sv-timed-task-calls/support-task-calls-timing-controls--af2e9f0e
Oct 20, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sv-timed-task-calls/support-task-calls-timing-controls--af2e9f0e

Conversation

@tignear

@tignear tignear commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Tasks containing delays, event controls, or wait statements currently fail analysis. Inline these calls into the caller's existing resumable process kernel, including nested calls and ordinary edge-sensitive always blocks that must rearm only after the task returns.

Give automatic task arguments and locals private storage for each inlined activation so concurrent callers cannot overwrite suspended state. Preserve module-local static argument sharing and output/inout copyback at task return. Reject timed calls from functions and combinational/always_ff processes. Reject NBAs to automatic task storage even in untimed callees and folded branches; module-storage NBAs remain allowed. Static locals in timed tasks, recursion, and ref arguments remain unsupported. Reject package/$unit timed tasks with static arguments and waits reading static task arguments until shared storage and change notifications are available. Preserve driver validation for ordinary always processes converted to resumable kernels, including input writes, overlapping ranges, child outputs, and package-variable writers across instances.

Add shared regressions for concurrent scalar/array activations, nested waits and early returns, copyback timing, static arguments, edge rearming, and four-state values. Enable the two existing timed-task regressions and check O0/O1/O2 with two-state and four-state simulation. Document the support and restrictions in both languages.

Validation: SV regression corpus and optimization-level checks across native, Cranelift, Wasm, and parallel variants; 752 analyzer tests; frontend unit tests; all shared-suite unit, integration, and documentation tests with both external features; affected-crate and SV-test Clippy; formatting and lint; CLI smoke test. Focused timed-task regressions also pass on the latest master: 36 passed, with 10 pre-existing event-expression exclusions unchanged.

Verilator and Icarus each pass five new shared cases. Verilator cannot validate the four-state case. Icarus 13.0 incorrectly shares automatic unpacked task arrays; retain the observed mismatch and narrowly exclude that case for Icarus while keeping its assertions enabled on Celox and Verilator.

@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 ✅ Completed 2026-10-20T10:55:14.804589Z 42f0e57 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 20, 2026

@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: 003888c215

ℹ️ 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/sv-timed-task-calls/support-task-calls-timing-controls--af2e9f0e branch from 003888c to bb40f42 Compare October 20, 2026 09:43
@tignear

tignear commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 003888c 2026-10-20 09:42 UTC
2 content 003888c → bb40f42 Address review r4323518563: reject automatic-variable NBAs in untimed task callees as well as tasks that suspend; add nested, concatenation, array and legal module-storage regressions. 2026-10-20 09:42 UTC
3 content bb40f42 → 2649388 Fix the CI retained-report contract: retain the missing ignored row for the reviewed Icarus automatic-task-array exclusion, and validate the entire test-suite package including retained_reports integ… 2026-10-20 10:15 UTC
4 content 2649388 → 42f0e57 Address review findings: preserve timed always driver validation, validate folded automatic NBAs, and reject unsupported scoped static formals and unobservable static-formal waits. 2026-10-20 10:50 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: bb40f42ce7

ℹ️ 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/sv-timed-task-calls/support-task-calls-timing-controls--af2e9f0e branch from bb40f42 to 2649388 Compare October 20, 2026 10:15

@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: 2649388a5a

ℹ️ 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 removed the merge-ready Request merging through Mergify after required checks label Oct 20, 2026
Tasks containing delays, event controls, or wait statements currently fail analysis. Inline these calls into the caller's existing resumable process kernel, including nested calls and ordinary edge-sensitive always blocks that must rearm only after the task returns.

Give automatic task arguments and locals private storage for each inlined activation so concurrent callers cannot overwrite suspended state. Preserve module-local static argument sharing and output/inout copyback at task return. Reject timed calls from functions and combinational/always_ff processes. Reject NBAs to automatic task storage even in untimed callees and folded branches; module-storage NBAs remain allowed. Static locals in timed tasks, recursion, and ref arguments remain unsupported. Reject package/$unit timed tasks with static arguments and waits reading static task arguments until shared storage and change notifications are available. Preserve driver validation for ordinary always processes converted to resumable kernels, including input writes, overlapping ranges, child outputs, and package-variable writers across instances.

Add shared regressions for concurrent scalar/array activations, nested waits and early returns, copyback timing, static arguments, edge rearming, and four-state values. Enable the two existing timed-task regressions and check O0/O1/O2 with two-state and four-state simulation. Document the support and restrictions in both languages.

Validation: SV regression corpus and optimization-level checks across native, Cranelift, Wasm, and parallel variants; 752 analyzer tests; frontend unit tests; all shared-suite unit, integration, and documentation tests with both external features; affected-crate and SV-test Clippy; formatting and lint; CLI smoke test. Focused timed-task regressions also pass on the latest master: 36 passed, with 10 pre-existing event-expression exclusions unchanged.

Verilator and Icarus each pass five new shared cases. Verilator cannot validate the four-state case. Icarus 13.0 incorrectly shares automatic unpacked task arrays; retain the observed mismatch and narrowly exclude that case for Icarus while keeping its assertions enabled on Celox and Verilator.

Change-Id: Iaf2e9f0e8cb38cc746024846aced5389d2d145f1
@tignear
tignear force-pushed the stack/tignear/feat/sv-timed-task-calls/support-task-calls-timing-controls--af2e9f0e branch from 2649388 to 42f0e57 Compare October 20, 2026 10:51
@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 2 hours 25 minutes 6 seconds in the queue, including 53 minutes 34 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • 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

@mergify
mergify Bot merged commit e2992da into master Oct 20, 2026
30 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/sv-timed-task-calls/support-task-calls-timing-controls--af2e9f0e branch October 20, 2026 14:15
@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