Repository navigation
fix(sv): name event declarations and disable fork, and reject timing in functions as illegal - #1818
Merged
Merged
Conversation
…in functions as illegal An `event` declaration failed as "unsupported internal data type" before the named-event diagnostics could apply; it is now rejected as a named event. `disable fork` reported the generic "disable statement" and now names itself. A delay, event control or wait in a function was reported as unimplemented, but IEEE 1800-2023 13.4 forbids it, so it is now the TimingControlOutsideProcess language error. Fixes #1711 Change-Id: I6d3ffd65d3191266dea91d9e39afd879600c7f1c
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. |
Contributor
Merge Queue Status
This pull request spent 1 hour 29 minutes 27 seconds in the queue, including 1 hour 1 minute 43 seconds running CI. Required conditions to merge
|
This was referenced Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #1123. Fixes #1711.
event e; initial -> e;initial disable fork;function void f(); #1; endfunctionTimingControlOutsideProcess: "delay control in a function: onlyinitialandalwaysprocesses may suspend"IEEE 1800-2023 13.4 forbids timing controls in functions, so that case is a language error rather than unimplemented.
disableof a named block still reports "disable statement". Other internal data types such aschandlestill report "unsupported internal data type".Only error paths change: a design that analyzes today produces the same IR.
Tests
rejects_unimplemented_timing_constructs, which now also coversdisable fork;unimplemented_timing_features_are_rejected;timing_controls_outside_suspendable_processes_are_rejected.--test systemverilog: 4259 passed. The analyzer, frontend-sv and test-suite tests pass, and so doesretained_reports.expected.tsv.