Repository navigation
feat(sv): support task calls with timing controls - #1592
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
003888c to
bb40f42
Compare
Revision history
|
There was a problem hiding this comment.
💡 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".
bb40f42 to
2649388
Compare
There was a problem hiding this comment.
💡 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".
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
2649388 to
42f0e57
Compare
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
|
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.