Skip to content

merge queue: checking #2415 + #2419 + #2422 together on master (5fcbf1f) - #2495

Closed
mergify[bot] wants to merge 6 commits into
masterfrom
mergify/merge-queue/6c07876e25
Closed

mergify[bot] wants to merge 6 commits into
masterfrom
mergify/merge-queue/6c07876e25

Conversation

@mergify

@mergify mergify Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Note

This is a merge queue draft opened by Mergify. Nobody needs to act on it.
Mergify opened it for batch secret-rillettes-ek0053 of the changes queue, to test #2415, #2419 and #2422 before they merge into master. Pushing to this branch or closing this pull request removes them from the queue.

What this draft tests

Mergify checks that #2415, #2419 and #2422 still pass CI on top of master. CI runs on this draft's code, built in this order:

  1. master at 5fcbf1f
  2. #2415 + #2419 + #2422, the pull requests of this batch, tested together as one tip

🎉 Where it stands: checks passed

CI passed on this draft.

Follow the changes queue in the dashboard

What happens next

Metadata for CI tooling, read by mergify ci
---
all_scopes: false
checking_base_sha: 5fcbf1fec76f93bac16fc528c1eef17ca37a48ce
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 2415
    scopes:
      - core
  - number: 2419
    scopes:
      - core
  - number: 2422
    scopes:
      - core
scopes:
  - core
...
1 scope
  • core
Required conditions of queue rule changes for merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on = celox-sim/celox#2419 [⛓️ feat(sv): support class properties of unpacked structure type #2419]
  • 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/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/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Queue validation
    • check-neutral = @github-actions/Queue validation
    • check-skipped = @github-actions/Queue validation
Required conditions to stay in the queue
Queue graph

The diagram is not laid out in queue order, so a node's position says nothing about when it merges.

graph LR
    c6f669d239c748f8b04669126875afb9["secret-rillettes-ek0053<br/>#2415 + #2419 + #2422<br/>scopes: core"]
    1e344019650646f88bf45c49a344d9b5["sound-pistou-nd74ne<br/>#2424 + #2473<br/>scopes: core"]
    c6f669d239c748f8b04669126875afb9 --> 1e344019650646f88bf45c49a344d9b5
    style c6f669d239c748f8b04669126875afb9 fill:#6366f1,color:#fff
Loading

tignear and others added 6 commits October 29, 2026 06:16
Unpacked structures (IEEE 1800-2023 7.2) were rejected. A variable of
an unpacked structure type is now a set of leaf variables, one per
member that is not itself an unpacked structure, named by the member
path (`s.a.b`). Each leaf keeps its member's type, so `string`, class
handle, enumeration and 2-state or 4-state integral members behave like
variables of those types, and the heap collector finds handle members
through their own slots. A whole structure value is the concatenation
of its leaves; it only lives within one evaluation.

Supported:
- module variables, procedural locals, and subroutine arguments of any
  direction and results (a structure argument is passed flat and copied
  into and out of its members' variables);
- member reads and writes, whole assignment (also continuous, in
  `always_comb` and nonblocking), `==`, `!=`, `===`, `!==`, `?:`;
- assignment patterns: positional, by member name, `default` (applied
  recursively to nested structures, 10.9.2) and typed `T'{...}`.

Only patterns and values of the same structure type may be assigned
(6.22.3); other operators, selects and casts of a whole structure are
rejected. Ports, nets, parameters, class properties, arrays and
container elements of an unpacked structure type, and members with
unpacked dimensions or default values, are rejected with dedicated
diagnostics; unpacked unions stay unsupported (#440).

The concatenation parts of an assignment target now take the raw bits
of the value, so a string member receives its handle instead of the
bytes of an integral value. sv-tests chapter-7/structures/unpacked/basic
now passes in both state modes. Icarus 13.0 does not support unpacked
structures, Verilator 5.052 misapplies a nested `default`, and xezim
0.11.3 shows four defects on the new cases; these are retained as
reviewed limitations and xezim review entries.

Change-Id: I9a94c0cc4394766e17f949f72af405c2a3442b0f
A class property of an unpacked structure type was rejected. Its leaf
members are now laid out as ordinary properties named by their member
path (`orig.m_type`), so a `string` or class handle member is a handle
property the collector traces, and a 4-state member keeps its X/Z bits.
The class records the property and its structure-typed members
(`Class::aggregates`) for lookup and hiding.

`h.p.m` and an unqualified `p.m` inside a method resolve through the
member path to the leaf property, including `h.p.m.q` through a handle
member. A whole property `h.p` reads as the concatenation of its leaf
loads; assigning it, from a pattern, a variable, another property, a
conditional or a call, stores each leaf, evaluating the value once.
Declaration initializers run in the constructor in declaration order,
and a shallow copy copies the members. Methods returning a structure are
now recognised when checking an assignment's type.

Static, `rand` and `const` properties of an unpacked structure type stay
unsupported with dedicated diagnostics. Icarus 13.0 still lacks unpacked
structures; xezim 0.11.3 formats string members of such properties as
packed values, which the review retains.

Change-Id: I8d7ebe18fdf58ac33c7b1f2f76b7e27bf598b542
Queues, dynamic arrays and associative arrays of an unpacked structure
type were rejected. A structure of at most 64 bits whose members are all
2-state or all 4-state and hold no handle is kept as its flat value, so
the container's default element is the structure's default. Any other
structure is held as an immutable heap record: `ObjectOp::Box` builds a
record from the flat value on `push`, `insert` or an assignment, and
`ObjectOp::Unbox` reads it back. Each leaf is a record field, so the
collector traces string and handle members through the record's handle
list, and 4-state members keep their X/Z bits. Record fields are
`nullable`: the new `OBJECT_LOAD_NULLABLE` heap operation reads a null
record as zeros without a fault, which is the default structure for a
missing associative entry or a new dynamic array element. Records are not
seeded, so they do not draw from the process RNG.

`e.m` reads a member of an element `q[i]`, `aa[k]` or a popped element
directly from the record or the flat value, including a handle member's
properties (`q[0].orig.m_type.n`). Patterns, typed patterns and values of
the structure type initialize elements. Comparing containers of records
and sorting structures without `with` are rejected, as is writing a
member of an element.

Assignment patterns passed to a method argument now receive the formal's
shape, which method calls taking a structure need.

Change-Id: Iac820f46cbee8d792f4b0fbde28baccdd54ecf31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant