Repository navigation
merge queue: checking #1725 on master (86a2c20), stacked on #1718 and #1688 - #1733
Closed
mergify[bot] wants to merge 6 commits into
Closed
mergify[bot] wants to merge 6 commits into
mergify[bot] wants to merge 6 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
1 task
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 obvious-aneth-920jli of the
dependenciesqueue, to test #1725 before it merges intomaster. Pushing to this branch or closing this pull request removes #1725 from the queue.What this draft tests
Mergify checks that #1725 still passes CI once combined with everything queued ahead of it. CI runs on this draft's code, built in this order:
masterat86a2c2001b99c2The check is speculative: it assumes the pull requests ahead will merge, so it starts without waiting for them.
🎉 Where it stands: checks passed
CI passed on this draft.
Follow the
dependenciesqueue in the dashboardWhat happens next
masterand closes this draft.Tip
A red check is not necessarily caused by this batch. These checks run on a tip that also carries the commits of the 2 pull requests ahead, so a failure here can come from them as much as from #1725. 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.
Metadata for CI tooling, read by
mergify ci1 scope
coreRequired conditions of queue rule
dependenciesfor mergecheck-success = Conventional Commit titlecheck-success = Queue validationmaster]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]: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)master]:check-success = @github-actions/NAPI Build (Windows)check-neutral = @github-actions/NAPI Build (Windows)check-skipped = @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-success = @github-actions/JS Test (Windows)check-neutral = @github-actions/JS Test (Windows)check-skipped = @github-actions/JS Test (Windows)master]:check-success = @github-actions/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @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$)-label = release:holdbase ~= ^(master|develop)$head ~= ^renovate/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 title