Skip to content

feat(sv): extend sampled values and inferred history clocks - #1882

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sva-stage1/sample-static-locals-combinational-logic-infer--964607db
Oct 26, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sva-stage1/sample-static-locals-combinational-logic-infer--964607db

Conversation

@tignear

@tignear tignear commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Sample static locals and permit $sampled in combinational logic, while retaining the process's ordinary sensitivity. Infer the history clock in asynchronous-reset processes and called subroutines, including omitted-argument defaults. Reject nested sampled history and gates depending on unsupported subroutine arguments explicitly.

For multi-event processes, advance history on every four-state edge in IEEE 1800-2023 Table 9-2. Compare the clock's least significant bit with case equality so 0-to-X/Z rising edges and 1-to-X/Z falling edges count too. The regression covers all ten positive/negative transitions on all four backends and failed before the fix.

The documented limitation remains: a clock that returns to its pre-slot level within the same slot cannot yet be distinguished from another triggering event by the history guard.

The regression registrations explicitly select build_cranelift; the default build() method selects native. Optional backends are feature-gated.

Validation:

  • Sampled/history/deferred-assertion and native-image regressions: 187 passed.
  • SV analyzer/frontend, simulator and runtime units: 1,142 passed, 3 ignored.
  • Common SV timing suite including fork/process control: 1,057 passed; final procedures: 18 passed.
  • Affected-crate all-targets Clippy with -D warnings and formatting.
  • Debug NAPI build and timing/cascaded-clock/runtime-event JS integration: 9 passed.

Depends-On: #1881

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 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-26T10:00:06.039678Z 1a36881 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 commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 feat(sv): support $sampled in processes #1879
2 feat(sv): support $past and the value change functions in clocked processes #1880
3 fix(sv)!: give reports the time they are issued at #1881
4 feat(sv): extend sampled values and inferred history clocks #1882 👈

@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: 93f7dd4b03

ℹ️ 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".

@mergify

mergify Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

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

@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/sample-static-locals-combinational-logic-infer--964607db branch from 93f7dd4 to 461009b Compare October 24, 2026 11:06
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/give-reports-time-they-issued--865a9dce branch from c8a5075 to 04fd5ce Compare October 24, 2026 11:06
@tignear

tignear commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 93f7dd4 2026-10-24 11:03 UTC
2 content 93f7dd4 → 461009b Review: scan argument defaults for $past; document the level-based tick of async-reset processes 2026-10-24 11:03 UTC
3 rebase 461009b → d9b1622 (rebase only) 2026-10-24 12:11 UTC
4 content d9b1622 → c0d88ce 2026-10-24 18:21 UTC
5 rebase c0d88ce → a8f9531 (rebase only) 2026-10-24 21:36 UTC
6 rebase a8f9531 → d607a7f (rebase only) 2026-10-25 04:27 UTC
7 rebase d607a7f → f511a8a (rebase only) 2026-10-25 05:14 UTC
8 rebase f511a8a → 332ca30 (rebase only) 2026-10-25 06:02 UTC
9 rebase 332ca30 → 61a9c31 (rebase only) 2026-10-25 06:58 UTC
10 rebase 61a9c31 → 54f6356 (rebase only) 2026-10-25 08:25 UTC
11 rebase 54f6356 → 928f689 (rebase only) 2026-10-25 08:57 UTC
12 rebase 928f689 → 5505293 (rebase only) 2026-10-25 09:46 UTC
13 content 5505293 → f6914d5 (raw) 2026-10-25 09:59 UTC
14 content f6914d5 → b51df89 2026-10-25 10:06 UTC
15 content b51df89 → b2d5a1d Record final validation on master with the merged fork/process-control runtime and aliased-copy regression. 2026-10-26 09:01 UTC
16 content b2d5a1d → 2106865 Validate static-local, four-state history, and deferred assertion cases on an explicitly selected Cranelift backend. 2026-10-26 09:25 UTC
17 content 2106865 → 1a36881 2026-10-26 09:56 UTC

@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/sample-static-locals-combinational-logic-infer--964607db branch from 461009b to d9b1622 Compare October 24, 2026 12:12
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/give-reports-time-they-issued--865a9dce branch from 04fd5ce to 3711ca3 Compare October 24, 2026 12:12

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

ℹ️ 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/sva-stage1/sample-static-locals-combinational-logic-infer--964607db branch from d9b1622 to c0d88ce Compare October 24, 2026 18:24
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/give-reports-time-they-issued--865a9dce branch from 3711ca3 to 41b3f6d Compare October 24, 2026 18:24
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/sample-static-locals-combinational-logic-infer--964607db branch from c0d88ce to a8f9531 Compare October 24, 2026 21:38
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/give-reports-time-they-issued--865a9dce branch from 41b3f6d to 094d050 Compare October 24, 2026 21:38

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

ℹ️ 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/sva-stage1/sample-static-locals-combinational-logic-infer--964607db branch from a8f9531 to d607a7f Compare October 25, 2026 04:28
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/give-reports-time-they-issued--865a9dce branch from 094d050 to f7cbbed Compare October 25, 2026 04:28
@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.

1 similar comment
@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 force-pushed the stack/tignear/feat/sva-stage1/sample-static-locals-combinational-logic-infer--964607db branch from d607a7f to f511a8a Compare October 25, 2026 05:15
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/give-reports-time-they-issued--865a9dce branch from f7cbbed to 9adae9b Compare October 25, 2026 05:15
@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.

1 similar comment
@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 force-pushed the stack/tignear/feat/sva-stage1/give-reports-time-they-issued--865a9dce branch from 2caed8e to 0de1883 Compare October 25, 2026 08:28
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/sample-static-locals-combinational-logic-infer--964607db branch from 54f6356 to 928f689 Compare October 25, 2026 08:57
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/give-reports-time-they-issued--865a9dce branch 2 times, most recently from 7961404 to d9cedfc Compare October 25, 2026 09:46
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/sample-static-locals-combinational-logic-infer--964607db branch 2 times, most recently from 5505293 to f6914d5 Compare October 25, 2026 09:59
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/give-reports-time-they-issued--865a9dce branch from d9cedfc to 6b81a3d Compare October 25, 2026 09:59
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/sample-static-locals-combinational-logic-infer--964607db branch from f6914d5 to b51df89 Compare October 25, 2026 10:07
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/give-reports-time-they-issued--865a9dce branch from 6b81a3d to 62ea34a Compare October 25, 2026 10:07

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

ℹ️ 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/sva-stage1/sample-static-locals-combinational-logic-infer--964607db branch from b51df89 to b2d5a1d Compare October 26, 2026 09:02
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/give-reports-time-they-issued--865a9dce branch from 62ea34a to 18e1cec Compare October 26, 2026 09:02
@tignear tignear changed the title feat(sv): sample static locals and combinational logic, and infer more clocks of $past feat(sv): extend sampled values and inferred history clocks Oct 26, 2026
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/give-reports-time-they-issued--865a9dce branch from 18e1cec to 24e45cf Compare October 26, 2026 09:26
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/sample-static-locals-combinational-logic-infer--964607db branch from b2d5a1d to 2106865 Compare October 26, 2026 09:26
@tignear tignear added merge-ready Request merging through Mergify after required checks and removed merge-ready Request merging through Mergify after required checks labels Oct 26, 2026
Sample static locals and permit $sampled in combinational logic, while retaining the process's ordinary sensitivity. Infer the history clock in asynchronous-reset processes and called subroutines, including omitted-argument defaults. Reject nested sampled history and gates depending on unsupported subroutine arguments explicitly.

For multi-event processes, advance history on every four-state edge in IEEE 1800-2023 Table 9-2. Compare the clock's least significant bit with case equality so 0-to-X/Z rising edges and 1-to-X/Z falling edges count too. The regression covers all ten positive/negative transitions on all four backends and failed before the fix.

The documented limitation remains: a clock that returns to its pre-slot level within the same slot cannot yet be distinguished from another triggering event by the history guard.

The regression registrations explicitly select build_cranelift; the default build() method selects native. Optional backends are feature-gated.

Validation:
- Sampled/history/deferred-assertion and native-image regressions: 187 passed.
- SV analyzer/frontend, simulator and runtime units: 1,142 passed, 3 ignored.
- Common SV timing suite including fork/process control: 1,057 passed; final procedures: 18 passed.
- Affected-crate all-targets Clippy with -D warnings and formatting.
- Debug NAPI build and timing/cascaded-clock/runtime-event JS integration: 9 passed.

Change-Id: I964607db06fbe5e75728e0b7f4cfd935c303e332
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/give-reports-time-they-issued--865a9dce branch from 24e45cf to 3837df4 Compare October 26, 2026 09:57
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/sample-static-locals-combinational-logic-infer--964607db branch from 2106865 to 1a36881 Compare October 26, 2026 09:57
@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 26, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 26, 2026
@mergify

mergify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 1 hour 6 minutes 27 seconds in the queue, including 37 minutes 7 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on = celox-sim/celox#1881 [⛓️ fix(sv)!: give reports the time they are issued at #1881]
  • 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

Base automatically changed from stack/tignear/feat/sva-stage1/give-reports-time-they-issued--865a9dce to master October 26, 2026 11:43
@mergify
mergify Bot merged commit 62a1c5c into master Oct 26, 2026
25 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/sva-stage1/sample-static-locals-combinational-logic-infer--964607db branch October 26, 2026 11:44
@mergify mergify Bot removed the queued Mergify queue entry label Oct 26, 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