Skip to content

feat(sv): support the chandle type - #2464

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sv-chandle/support-chandle-type--ad6401e7
Oct 31, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sv-chandle/support-chandle-type--ad6401e7

Conversation

@tignear

@tignear tignear commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Support chandle (IEEE 1800-2023 6.14), which UVM uses for the handles of its DPI-C functions. A chandle is held as 64 two-state bits that start as null (0), so variables, class properties, elements of dynamic arrays, queues and associative arrays, subroutine arguments and results lower like any 64-bit value; designs without chandles are unchanged. DPI-C imports pass chandle arguments and results as C pointers on every backend.

The analyzer admits a chandle only where 6.14 allows one. The expression binder checks every value it reads: a chandle is accepted only as an operand of ==, !=, === or !== with another chandle or null, as a Boolean test (a condition, !, &&, ||), or as a value a chandle receives (an assignment with =, an initializer, an argument, a result, a container element, a property or an associative array index), which must itself be a chandle or null. Write targets are checked the same way, so only a procedural = writes a chandle. Every other context, an operator, a cast, an index, a count, a delay or event, a system subroutine argument, a concatenation, a stream or a continuous assignment, rejects a chandle without a check of its own. Chandle ports, packed chandle types and enumerations based on chandles are rejected. Fixed-size unpacked arrays of chandles, which UVM does not use, are not supported: the type binder rejects them wherever they are declared, also through a typedef.

A new shared case passes on every backend, Verilator and xezim; Icarus rejects the chandle class property and the compile failure is retained. sv-tests 6.14--chandle now passes in both state modes.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 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-31T10:34:58.036743Z 2f52964 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.

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

ℹ️ 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-chandle/support-chandle-type--ad6401e7 branch from e5b8768 to b611015 Compare October 28, 2026 17:43
@tignear

tignear commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial e5b8768 2026-10-28 17:42 UTC
2 content e5b8768 → b611015 Rebased onto master (#2390/#2407/#2429: kept both sides in discovery.rs return metadata (enum_domain + chandle), retained_reports.rs arms, types.vtest cases). Review fixes: chandle-returning function… 2026-10-28 17:42 UTC
3 content b611015 → 5f47b1f Review fixes: assignments to chandles reject calls whose result is a known non-chandle and check both conditional branches; module-scope initializers are checked; static properties (C::h) are recogni… 2026-10-28 18:52 UTC
4 content 5f47b1f → 78b1990 2026-10-28 19:42 UTC
5 content 78b1990 → 43c3409 2026-10-28 21:07 UTC
6 content 43c3409 → dd6027d 2026-10-28 22:33 UTC
7 content dd6027d → 3578434 Rebased onto master (#2473 unpacked structures: Type/VariableDimensions keep both unpacked_struct and chandle; container, argument, select, assignment and default checks coexist; docs and LIMITATIONS… 2026-10-29 01:13 UTC
8 content 3578434 → 1240829 Kept the recursive class-specialization path within the default 2 MiB test stack (bind_in_mode checks the bound type in place; the inside check is out of line); frame sizes measured against master. 2026-10-29 02:13 UTC
9 content 1240829 → 04aab86 Rebased onto master (#2508 container formals: chandle argument checks run beside check_written_container; container-input defaults keep their shape after the chandle default check). 2026-10-29 03:12 UTC
10 content 04aab86 → d2047ec 2026-10-29 08:21 UTC
11 content d2047ec → 69eff2c 2026-10-29 09:07 UTC
12 content 69eff2c → 40f0ba4 2026-10-29 09:46 UTC
13 content 40f0ba4 → 6248531 2026-10-29 10:32 UTC
14 content 6248531 → d4e2ec7 2026-10-29 10:53 UTC
15 content d4e2ec7 → 3480ca9 2026-10-29 11:45 UTC
16 content 3480ca9 → b180d65 2026-10-29 16:31 UTC
17 content b180d65 → 1851006 2026-10-29 18:25 UTC
18 content 1851006 → 422ca4c 2026-10-29 19:21 UTC
19 content 422ca4c → fa7e3a4 2026-10-29 20:25 UTC
20 content fa7e3a4 → 384ce7c 2026-10-29 22:24 UTC
21 content 384ce7c → bcbd009 2026-10-29 23:26 UTC
22 content bcbd009 → 2582c9b 2026-10-30 00:13 UTC
23 content 2582c9b → 098618f 2026-10-30 03:53 UTC
24 content 098618f → c4efc63 2026-10-30 05:10 UTC
25 content c4efc63 → 02542ef Codex round on c4efc63: slice assignments resolve hierarchical source arrays; the chandle target check runs at the shared assignment entry, before container, property and virtual-interface dispatch. 2026-10-30 07:31 UTC
26 content 02542ef → a58b08a 2026-10-30 08:26 UTC
27 content a58b08a → 9a01c12 2026-10-30 10:08 UTC
28 content 9a01c12 → c329861 2026-10-30 11:02 UTC
29 content c329861 → 6e93e4c 2026-10-30 12:19 UTC
30 content 6e93e4c → 6e76bf0 2026-10-30 13:40 UTC
31 content 6e76bf0 → e2fd8ca 2026-10-30 15:46 UTC
32 content e2fd8ca → 246b9db 2026-10-30 16:57 UTC
33 content 246b9db → 42bdbc0 2026-10-30 18:02 UTC
34 content 42bdbc0 → 82d768f 2026-10-30 18:58 UTC
35 content 82d768f → e621b25 2026-10-30 19:35 UTC
36 content e621b25 → ce03444 2026-10-31 07:21 UTC
37 content ce03444 → ede5e9a 2026-10-31 08:45 UTC
38 content ede5e9a → 2f52964 Rebased on master after #2695: the chandle checks and binders take the analysis session as &mut; the module's chandle port check and DPI formal shapes sit inside the memoized module analysis. 2026-10-31 10:29 UTC

@tignear

tignear commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 feat(sv): support the chandle type #2464 👈
2 feat(sv): provide UVM's DPI-C functions #2471

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

ℹ️ 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 28, 2026 •

Copy link
Copy Markdown
Contributor

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

@tignear
tignear force-pushed the stack/tignear/feat/sv-chandle/support-chandle-type--ad6401e7 branch from b611015 to 5f47b1f Compare October 28, 2026 18:53

@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: 5f47b1fbd7

ℹ️ 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-chandle/support-chandle-type--ad6401e7 branch from 5f47b1f to 78b1990 Compare October 28, 2026 19:42

@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: 78b1990324

ℹ️ 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-chandle/support-chandle-type--ad6401e7 branch from 78b1990 to 43c3409 Compare October 28, 2026 21: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: 43c34090b3

ℹ️ 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-chandle/support-chandle-type--ad6401e7 branch from 43c3409 to dd6027d Compare October 28, 2026 22:33

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

ℹ️ 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-chandle/support-chandle-type--ad6401e7 branch from dd6027d to 3578434 Compare October 29, 2026 01:16

@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: 35784346b1

ℹ️ 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-chandle/support-chandle-type--ad6401e7 branch from 3578434 to 1240829 Compare October 29, 2026 02:13

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

ℹ️ 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-chandle/support-chandle-type--ad6401e7 branch from 1240829 to 04aab86 Compare October 29, 2026 03:13
@tignear

tignear commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@tignear
tignear force-pushed the stack/tignear/feat/sv-chandle/support-chandle-type--ad6401e7 branch from 04aab86 to d2047ec Compare October 29, 2026 08:21

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

ℹ️ 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-chandle/support-chandle-type--ad6401e7 branch from d2047ec to 69eff2c Compare October 29, 2026 09:08

@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: 69eff2cfeb

ℹ️ 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-chandle/support-chandle-type--ad6401e7 branch from 69eff2c to 40f0ba4 Compare October 29, 2026 09:47

@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: 40f0ba4f61

ℹ️ 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-chandle/support-chandle-type--ad6401e7 branch from 40f0ba4 to 6248531 Compare October 29, 2026 10:33

@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: 62485313b2

ℹ️ 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 31, 2026 •

Copy link
Copy Markdown
Contributor

🚫 Left the queue

13 min in the queue, with no time running CI.

So far

  • ✅ Entered the queue Sat 31 Oct, 04:49 · rule changes · triggered by rule Queue explicitly requested merges
  • 🚫 Left the queue 05:03 · e621b25

Reason

The pull request conflicts with master

Conflicting file: crates/celox-sv-analyzer/src/ast/packed_structs/selects.rs

The pull request was held in the queue, conflicting with 1 pull request ahead of it. The conflict became a base branch one after #2673 merged.

Hint

You should update or rebase your pull request. A pull request queued by a rule comes back to the queue once updated, as long as the rule still matches.

If it was queued with a command, post a new @mergifyio queue comment to requeue it.

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

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added dequeued Mergify stopped this queue entry; investigate before retrying and removed queued Mergify queue entry labels Oct 31, 2026
@tignear
tignear force-pushed the stack/tignear/feat/sv-chandle/support-chandle-type--ad6401e7 branch from e621b25 to ce03444 Compare October 31, 2026 07:22
@mergify mergify Bot removed the dequeued Mergify stopped this queue entry; investigate before retrying label Oct 31, 2026
@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 31, 2026
@tignear
tignear force-pushed the stack/tignear/feat/sv-chandle/support-chandle-type--ad6401e7 branch from ce03444 to ede5e9a Compare October 31, 2026 08:50
@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 31, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 31, 2026
@mergify

mergify Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🚫 Left the queue

26 min in the queue, with no time running CI.

So far

  • ✅ Entered the queue Sat 31 Oct, 09:34 · rule changes · triggered by rule Queue explicitly requested merges
  • 🚫 Left the queue 10:00 · ede5e9a

Reason

The pull request conflicts with master

The pull request was held in the queue, conflicting with at least one of 3 pull requests ahead of it. The conflict became a base branch one after #2695 merged.

Hint

You should update or rebase your pull request. A pull request queued by a rule comes back to the queue once updated, as long as the rule still matches.

If it was queued with a command, post a new @mergifyio queue comment to requeue it.

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

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added dequeued Mergify stopped this queue entry; investigate before retrying and removed queued Mergify queue entry labels Oct 31, 2026
Support `chandle` (IEEE 1800-2023 6.14), which UVM uses for the handles of its DPI-C functions. A chandle is held as 64 two-state bits that start as `null` (0), so variables, class properties, elements of dynamic arrays, queues and associative arrays, subroutine arguments and results lower like any 64-bit value; designs without chandles are unchanged. DPI-C imports pass chandle arguments and results as C pointers on every backend.

The analyzer admits a chandle only where 6.14 allows one. The expression binder checks every value it reads: a chandle is accepted only as an operand of `==`, `!=`, `===` or `!==` with another chandle or `null`, as a Boolean test (a condition, `!`, `&&`, `||`), or as a value a chandle receives (an assignment with `=`, an initializer, an argument, a result, a container element, a property or an associative array index), which must itself be a chandle or `null`. Write targets are checked the same way, so only a procedural `=` writes a chandle. Every other context, an operator, a cast, an index, a count, a delay or event, a system subroutine argument, a concatenation, a stream or a continuous assignment, rejects a chandle without a check of its own. Chandle ports, packed chandle types and enumerations based on chandles are rejected. Fixed-size unpacked arrays of chandles, which UVM does not use, are not supported: the type binder rejects them wherever they are declared, also through a typedef.

A new shared case passes on every backend, Verilator and xezim; Icarus rejects the chandle class property and the compile failure is retained. sv-tests `6.14--chandle` now passes in both state modes.

Change-Id: Iad6401e7634f688c3a2baa55d801ca1dbbdec29c
@tignear
tignear force-pushed the stack/tignear/feat/sv-chandle/support-chandle-type--ad6401e7 branch from ede5e9a to 2f52964 Compare October 31, 2026 10:30
@tignear tignear removed the merge-ready Request merging through Mergify after required checks label Oct 31, 2026
@mergify mergify Bot removed the dequeued Mergify stopped this queue entry; investigate before retrying label Oct 31, 2026
@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 31, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 31, 2026
@mergify

mergify Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

✅ Merged into master as 1a8c6aa at 11:17 UTC

Merged together with #2721. 14 min in the queue, 9 min of it CI.

So far

9 merge conditions met
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • check-success = Verify workflow lockfile
  • any of · required by 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 · required by 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 · required by 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 · required by 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
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/Queue validation
    • check-neutral = @github-actions/Queue validation
    • check-skipped = @github-actions/Queue validation
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/Verify workflow lockfile
    • check-neutral = @github-actions/Verify workflow lockfile
    • check-skipped = @github-actions/Verify workflow lockfile

Times in UTC · dashboard · how the merge queue works

@mergify
mergify Bot merged commit 1a8c6aa into master Oct 31, 2026
29 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/sv-chandle/support-chandle-type--ad6401e7 branch October 31, 2026 11:17
@mergify mergify Bot removed the queued Mergify queue entry label Oct 31, 2026
@github-actions github-actions Bot mentioned this pull request Oct 31, 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