Skip to content

merge queue: checking #1718 + #1688 together on master (86a2c20) - #1732

Closed
mergify[bot] wants to merge 4 commits into
masterfrom
mergify/merge-queue/3da5d5215e
Closed

mergify[bot] wants to merge 4 commits into
masterfrom
mergify/merge-queue/3da5d5215e

Conversation

@mergify

@mergify mergify Bot commented Oct 22, 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 nearest-mayonnaise-gtvbc8 of the changes queue, to test #1718 and #1688 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 #1718 and #1688 still pass CI on top of master. CI runs on this draft's code, built in this order:

  1. master at 86a2c20
  2. #1718 + #1688, 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

  • Mergify merges #1718 and #1688 into master and closes this draft.
Metadata for CI tooling, read by mergify ci
---
all_scopes: false
checking_base_sha: 86a2c204009cd5f7635ee0aaa5094e6da824c1be
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 1718
    scopes:
      - core
  - number: 1688
    scopes:
      - core
scopes:
  - core
...
1 scope
  • core
Required conditions of queue rule changes for 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
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
    85e5dac8a5124765ac0426d0ccaec3e1["nearest-mayonnaise-gtvbc8<br/>#1718 + #1688<br/>scopes: core"]
    aad89df4bbc54f4e99f01d5a4c0cff48["obvious-aneth-920jli<br/>#1725<br/>scopes: core"]
    85e5dac8a5124765ac0426d0ccaec3e1 --> aad89df4bbc54f4e99f01d5a4c0cff48
    style 85e5dac8a5124765ac0426d0ccaec3e1 fill:#6366f1,color:#fff
Loading

tignear and others added 4 commits October 22, 2026 11:21
The SV frontend classified every power expression as unsigned. Expressions
such as $signed(error) / 2**4 consequently zero-extended negative errors;
a 13-bit -384 became 7808 and divided to 488 instead of -24. This prevented
Taxi's PTP control loops from locking.

Use the base's signedness in both expression and port-connection classifiers,
with a self-determined exponent (IEEE 1800-2023 11.6.1, Table 11-21).
Add classifier tests and shared two-state/four-state regressions covering
constant and dynamic powers, signed/unsigned bases and destinations, sized
casts, and continuous/always_comb/always_ff execution.

Validation:
- SV common suite on all five backend variants: 3658 passed, 20 existing ignores.
- SV frontend unit tests: 3 passed.
- New cases: Icarus 2 passed; Verilator 1 passed, four-state case unsupported.
- Minimal reproducer at O0 and O1: five input vectors each, no mismatches.
- Original Taxi clock_cdc[96] and td_leaf full tests pass at O1/two-state with inferred_latch=warn; original sources unchanged.
- cargo fmt and affected library/integration clippy checks pass with warnings denied.

Change-Id: I0cf4f9c8176f5e537ff239b7d8a0eb644ef54d8a
SystemVerilog `string` variables, function arguments and results now
simulate as 32-bit handles into the heap introduced for testbench
strings (IEEE 1800-2023 6.16).

- The analyzer rewrites operators, methods and conversions with a
  string operand into string operations: equality stays an integral
  comparison of handles, ordering compares contents, and concatenation,
  replication with a run-time count, `s[i]`, casts and the `len`,
  `getc`, `putc`, `toupper`, `tolower`, `compare`, `icompare`,
  `substr`, `atoi` and `itoa` families lower to them. A string literal
  or integral value assigned or cast to a string contributes its bytes;
  NUL bytes are removed.
- Compiled code reaches the heap through one helper, called as an
  `ExternCall` with the reserved `HEAP_HELPER_ID`. Every backend passes
  the state pointer first, and the helper finds the heap through a new
  state header slot. Buffers build new strings in place and are interned
  when frozen, so equal contents keep equal handles.
- Each backend owns its heap, so hosts that keep only the backend, such
  as NAPI, keep their strings. `StateImage` captures the heap, so every
  checkpoint restores it. Handles are never reused, so a stale copy that
  is only compared cannot match a later string.
- The heap is collected after each timed step and each `tick`. Runtime
  events still in the backend's buffer are read first, which replaces
  string arguments by their contents. Concurrent testbench processes
  block the `tick` collection, since their saved temporaries are outside
  state memory.
- `%s` and format-less display print string values. Typed `string`
  parameters keep their packed text. Unpacked arrays of strings are
  rejected, since their element and character selects are not yet told
  apart.

Twenty-one sv-tests cases now pass in both state modes; each was
simulated and its values checked. New shared cases pass on Verilator;
Icarus 13.0 lacks the string methods, recorded as a reviewed limitation.

BREAKING CHANGE: `SimBackend` requires `heap` and `heap_mut`. The state
header grows to 48 bytes and the native image container version to 22,
so earlier images must be rebuilt. `StateSchema::capture` and `load` read
the backend's heap; `capture_with_heap` and `load_with_heap` are removed.

Refs #1400

Change-Id: Id79cec4106b91e786ac4517811392d67c4c8ec00
@mergify mergify Bot closed this Oct 22, 2026
@mergify
mergify Bot deleted the mergify/merge-queue/3da5d5215e branch October 22, 2026 08:00
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