Skip to content

fix(sv): name event declarations and disable fork, and reject timing in functions as illegal - #1818

Merged
mergify[bot] merged 1 commit into
masterfrom
fix/sv-timing-diagnostics
Oct 23, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
fix/sv-timing-diagnostics

Conversation

@tignear

@tignear tignear commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Part of #1123. Fixes #1711.

Source Before Now
event e; initial -> e; Unsupported: "unsupported internal data type" Unsupported: "named event"
initial disable fork; Unsupported: "disable statement" Unsupported: "disable fork statement"
function void f(); #1; endfunction Unsupported: "delay control in a subroutine" language error TimingControlOutsideProcess: "delay control in a function: only initial and always processes may suspend"

IEEE 1800-2023 13.4 forbids timing controls in functions, so that case is a language error rather than unimplemented. disable of a named block still reports "disable statement". Other internal data types such as chandle still report "unsupported internal data type".

Only error paths change: a design that analyzes today produces the same IR.

Tests

  • Updated the pinned diagnostics:
    • analyzer rejects_unimplemented_timing_constructs, which now also covers disable fork;
    • the function-timing analyzer test, which now matches the error variant;
    • 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 does retained_reports.
  • sv-tests: no change against expected.tsv.

…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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 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-23T08:48:14.735981Z c9ea3d2 PR opened
ℹ️ 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 23, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 23, 2026
@mergify

mergify Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
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
  • 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 5eea1b3 into master Oct 23, 2026
30 checks passed
@mergify
mergify Bot deleted the fix/sv-timing-diagnostics branch October 23, 2026 11:39
@mergify mergify Bot removed the queued Mergify queue entry label Oct 23, 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.

SV: clearer diagnostics for event declarations, disable fork, and timing in functions

1 participant