Repository navigation
merge queue: checking #2403 on master (1f54802), stacked on #2402 - #2488
Closed
mergify[bot] wants to merge 4 commits into
Closed
mergify[bot] wants to merge 4 commits into
mergify[bot] wants to merge 4 commits into
Conversation
Implement formatting to a string (IEEE 1800-2023 21.3.3). The analyzer binds `$sformatf(format, args...)` as a string operation, so it is typed `string` wherever a string value is valid: assignments, function results, arguments, concatenations and conditional operands. `$sformat(output, format, args...)` assigns the same value to a string variable, a function's return variable or a string class property. A call with conversions is a synchronous host request of the scheduled process. The host renders the format with the `$display` renderer, so every conversion, field width, X/Z digit and `%m` scope matches `$display`, and interns the text as the result. A literal format is fixed at compile time and its `%t` values are scaled as the analyzer scales those of `$display`; a `string` or integral format is read when the call runs and the host scales its `%t` values. A literal without conversions or arguments is a constant. Integral outputs, `%p` and the `$swrite` family remain unsupported. A host request in a later input of a subroutine call would otherwise lose the registers computed for earlier inputs across the suspension, so those inputs are kept, converted to their formals, in temporaries; operands of string, object and container operations are materialized as the heap helpers already do. A cached transitive check finds subroutines that make host requests, including in the defaults of omitted arguments. A format read at run time keeps bytes that are not UTF-8. `$display` now resolves every string-valued argument, not only string identifiers, so a string conditional prints its text. The shared string_format cases compare `$sformatf` and `$sformat` with `$display` on all backends and in a native image. Verilator 5.052 passes all of them (the four-state case is unsupported there); Icarus 13.0 limitations (string conditional crash, class-property output, integral format) and an xezim 0.11.3 integral-format bug are retained with evidence. Change-Id: Ife5fd5bc64ccbecb7a73976fc8b68f22e5216d53
Implement `$swrite`, `$swriteb`, `$swriteo` and `$swriteh` (IEEE 1800-2023 21.3.3). Like `$write`, a string literal that no conversion consumes is a format, a later one included, and each value without a conversion of its own is written in the task's radix, a string as text and a real as `$write` writes it. `$display`, `$write`, `$fdisplay` and `$fwrite` now also treat a later unconsumed string literal as a further format, as Verilator, Icarus and xezim do (21.2.1.1), instead of printing its conversions literally. The analyzer builds that format and binds the call as the `$sformatf` string operation, then assigns the result to the output, a string variable, a function's return variable or a string class property. The shared swrite_matches_write case compares each form with `$write` of the same arguments; Verilator 5.052, Icarus 13.0 and xezim 0.11.3 pass it. Change-Id: Ie03af76400361cd0410abcac91959d1c272c56a1
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 nutty-quatrequart-acvmes of the
changesqueue, to test #2403 before it merges intomaster. Pushing to this branch or closing this pull request removes #2403 from the queue.What this draft tests
Mergify checks that #2403 still passes CI once combined with everything queued ahead of it. CI runs on this draft's code, built in this order:
masterat1f5480225c6ad7The 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
changesqueue 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 pull request ahead, so a failure here can come from it as much as from #2403. See only this batch's changes.
Queued ahead of this batch
This pull request entered the queue before this batch and is not part of it.
Metadata for CI tooling, read by
mergify ci1 scope
coreRequired conditions of queue rule
changesfor mergecheck-success = Conventional Commit titlecheck-success = Queue validationdepends-on = celox-sim/celox#2402[⛓️ feat(sv): support $sformatf and $sformat #2402]master]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]: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/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titlemaster]:check-success = @github-actions/Queue validationcheck-neutral = @github-actions/Queue validationcheck-skipped = @github-actions/Queue validationRequired 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:holddepends-on = celox-sim/celox#2402[⛓️ feat(sv): support $sformatf and $sformat #2402]base ~= ^(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-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/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titlemaster]:check-skipped = @github-actions/Queue validationcheck-neutral = @github-actions/Queue validationcheck-success = @github-actions/Queue validationQueue graph
The diagram is not laid out in queue order, so a node's position says nothing about when it merges.
graph LR 9de8cd569ca440789411c70534b09e91["nutty-quatrequart-acvmes<br/>#2403<br/>scopes: core"] febd2903944c427abbe64e82a72ad011["fleet-camembert-oz5m42<br/>#2487 + #2480<br/>scopes: core"] 9de8cd569ca440789411c70534b09e91 --> febd2903944c427abbe64e82a72ad011 style 9de8cd569ca440789411c70534b09e91 fill:#6366f1,color:#fff