Repository navigation
merge queue: checking #1722 on master (86a2c20), stacked on #1718, #1688 and #1725 - #1738
Closed
mergify[bot] wants to merge 11 commits into
Closed
mergify[bot] wants to merge 11 commits into
mergify[bot] wants to merge 11 commits into
Conversation
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
An always whose edgeless event list names exactly the variables @* would compute for its statement (IEEE 1800-2023 9.4.2.2), and whose statement neither suspends nor makes a nonblocking assignment, is lowered like always @*, so an untimed Simulator runs it. When such a block closes a combinational loop, the scheduler reports the loop's members, and only the blocks that drive them run as processes. Change-Id: I72eb16b617333506ba2aaaf58a961b0cef5c0903
…processes Verilator runs edgeless event-list always blocks at time zero; the two affected cases are excluded with an adapter-free reproduction. Change-Id: I72c16f4b9aa69f06a7ea37bfa5635b972ffbb703
Change-Id: I7fb7b8ea84d8192a21b47b54d33b91574d8d8d7f
Change-Id: I7add15ad54316af2cffff68d1b3cb7fafd18d0be
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This is a merge queue draft opened by Mergify. Nobody needs to act on it.
Mergify opened it for batch conventional-baba-9fft92 of the
changesqueue, to test #1722 before it merges intomaster.What this draft tests
Mergify checks that #1722 still passes CI once combined with everything queued ahead of it. CI runs on this draft's code, built in this order:
masterat86a2c20a6f301eThe check is speculative: it assumes the pull requests ahead will merge, so it starts without waiting for them.
✨ Where it stands: closed
The number of speculative checks has been reduced.
Follow the
changesqueue in the dashboardWhat happens next
Tip
A red check is not necessarily caused by this batch. These checks run on a tip that also carries the commits of the 3 pull requests ahead, so a failure here can come from them as much as from #1722. See only this batch's changes.
Queued ahead of this batch
These pull requests entered the queue before this batch and are not part of it.
corecoreMetadata for CI tooling, read by
mergify ci1 scope
coreRequired conditions of queue rule
changesfor mergecheck-success = Conventional Commit titlecheck-success = Queue validationmaster]:check-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatcheck-success = @github-actions/Lint & Formatmaster]:check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)check-success = @github-actions/NAPI Build (Linux ARM64 GNU)master]:check-neutral = @github-actions/NAPI Build (Windows)check-skipped = @github-actions/NAPI Build (Windows)check-success = @github-actions/NAPI Build (Windows)master]:check-neutral = @github-actions/Rust Test & NAPI Buildcheck-skipped = @github-actions/Rust Test & NAPI Buildcheck-success = @github-actions/Rust Test & NAPI Buildmaster]:check-neutral = @github-actions/JS Test (Ubuntu)check-skipped = @github-actions/JS Test (Ubuntu)check-success = @github-actions/JS Test (Ubuntu)master]:check-neutral = @github-actions/JS Test (Windows)check-skipped = @github-actions/JS Test (Windows)check-success = @github-actions/JS Test (Windows)master]:check-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titlecheck-success = @github-actions/Conventional Commit titleRequired conditions to stay in the queue
-conflict-draft-head ~= ^(integration/|renovate/veryl-crates$|upgrade/veryl-|release-please--branches--master--components--celox$|master$)-head ~= ^renovate/-label = release:holdbase ~= ^(master|develop)$base ~= ^stack/body ~= (?m)^Depends-On:head != release-please--branches--master--components--celoxlabel = merge-readymaster]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]:check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)check-success = @github-actions/NAPI Build (Linux ARM64 GNU)master]:check-skipped = @github-actions/NAPI Build (Windows)check-neutral = @github-actions/NAPI Build (Windows)check-success = @github-actions/NAPI Build (Windows)master]:check-success = @github-actions/Rust Test & NAPI Buildcheck-neutral = @github-actions/Rust Test & NAPI Buildcheck-skipped = @github-actions/Rust Test & NAPI Buildmaster]:check-success = @github-actions/JS Test (Ubuntu)check-neutral = @github-actions/JS Test (Ubuntu)check-skipped = @github-actions/JS Test (Ubuntu)master]:check-skipped = @github-actions/JS Test (Windows)check-neutral = @github-actions/JS Test (Windows)check-success = @github-actions/JS Test (Windows)master]:check-success = @github-actions/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titleQueue 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"] d41da730f34d4a2eb387cc723347f085["conventional-baba-9fft92<br/>#1722<br/>scopes: core"] 85e5dac8a5124765ac0426d0ccaec3e1 --> aad89df4bbc54f4e99f01d5a4c0cff48 aad89df4bbc54f4e99f01d5a4c0cff48 --> d41da730f34d4a2eb387cc723347f085 style d41da730f34d4a2eb387cc723347f085 fill:#6366f1,color:#fff