Repository navigation
merge queue: checking #1916 + #1875 together on master (8b3372b) - #1928
Closed
mergify[bot] wants to merge 5 commits into
Closed
mergify[bot] wants to merge 5 commits into
mergify[bot] wants to merge 5 commits into
Conversation
Change-Id: Ie43192fc57f87e17226b84ab5779211d3b4245f7
IEEE 1800-2023 20.10 has every severity task report its severity, the file and line of the call, the scope that issued it and the simulation time. Celox lost most of this: - `$info`, `$warning` and `$error` all became `RuntimeEvent::AssertContinue`, so the severity was gone; - events carried no location and no scope; - the `celox` command failed a run on `$warning` and `$info`. This is the first part of SVA stage 1 (#89). Deferred assertions and concurrent assertions will report through the same record. **`RuntimeEvent::Report`.** It replaces `AssertContinue` and `AssertFatal`. A `Report` has: - `severity`: `Info`, `Warning`, `Error` or `Fatal`; - `message`: the formatted bytes, as before; - `scope`: from the drain context, else the scope of the site; - `location`: the file and line as `` `__FILE__ `` and `` `__LINE__ `` give them, so `` `line `` directives apply; - `assertion`: for a report from an action block of an immediate assertion, its statement label (which names it in its scope, 16.3), `assert`/`assume`/`cover`, and whether the pass or the fail action issued it. The default `$error` of an `assert` or `assume` without a fail action has the location of the assertion. Severity tasks in subroutines the action block calls are not attributed; - `time`: the time of the drain context. The VPI host drains at each callback, so its times are exact. A later change stamps events at the end of their time slot for every host. `Report::render` formats a report as `Error: file:line: message`, then the time and the scope. The VPI host and the `celox` command print reports this way. **Design metadata.** `RuntimeEventKind::Report(Severity)` replaces `AssertContinue` and `AssertFatal`. Veryl's `$assert` is a fatal report and `$assert_continue` an error. `RuntimeEventSite` has `location` and `assertion` (serde default: none). The SV analyzer records the logical file and line in `SourceSpan` and attributes severity tasks to their assertion in `Stmt::SystemTask::assertion`. A task of a nested assertion keeps the attribution of the inner one. The native image container version is 35. **Failures.** - The `celox` command fails a run only on `$error` and `$fatal`. - The Veryl native testbench and the SV suite harness count only errors and fatal reports as failures. They print info and warning reports like `$display`. - `$fatal` still ends the simulation with an error. - lydite's proof backend (`lydite/conformance/veryl-proof`) accepts reports below `Fatal` where it accepted `AssertContinue`, and still fails closed on fatal ones. - New `crates/celox/tests/sv_reports.rs` on the interpreter, cranelift, native and wasm backends: - `$info`, `$warning` and `$error` give their severity, message, line and scope; - action blocks of a labeled `assert` (with a `$warning` fail action and with the default `$error`), a labeled `cover` and an unlabeled `assume` name their assertion and outcome; - an `always_comb` report keeps its location; - a `` `line `` directive sets the file and line; - a failing assertion in the action block of another reports the inner one; - plus a unit test of `Report::render`. - New lydite unit test `test_events.test_only_nonfatal_runtime_events_are_observed`: `Display`, `Write` and reports up to `Error` are observed, and `Fatal`, `Finish` and `Stop` fail closed. The `bridge` job's veryl-proof gate rejected `flip_flop::test_ff_assert_message_output_argument_is_eager` without it. - New `celox` command test: a run fails on `$error` but not on `$info` or `$warning`, and each is printed with its severity and location. - Existing tests that compare drained events now compare them without the report context, which they do not check. Their messages and severities are unchanged. - `cargo nextest run` with CI's features (`celox/systemverilog,celox-test-suite/verilator,celox-test-suite/icarus`): - celox and celox-vpi: 13,548 passed; - celox-frontend-{core,sv,veryl}, celox-sv-analyzer, celox-runtime, celox-design, celox-slt, celox-test-suite and celox-napi: 1,294 passed. - sv-tests conformance (`conformance/sv-tests/run.py`): unchanged from `expected.tsv`. - `cargo clippy --workspace --all-targets` with CI's features and `-D warnings`; clippy of `celox` without default features; `cargo fmt --check`. - `celox::RuntimeEvent::AssertContinue` and `AssertFatal` are replaced by `RuntimeEvent::Report(Report)`. - `celox_design::RuntimeEventKind::AssertContinue` and `AssertFatal` are replaced by `RuntimeEventKind::Report(Severity)`. - `celox_design::RuntimeEventSite` has the new fields `location` and `assertion`. - `celox_sv_analyzer::ir::SourceSpan` has the new fields `logical_path` and `line`, and `Stmt::SystemTask` has `assertion`. - The `celox` command no longer fails a run on `$info` or `$warning`, and prints reports with their severity and location. Change-Id: I4abb3cc497c11a31008ec8429fedaf365b4689a1
Change-Id: I4b6427df26ee17c68a606e4b9c68d3424f866390
This was referenced Oct 24, 2026
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 suitable-tome-k2numv of the
changesqueue, to test #1916 and #1875 before they merge intomaster.What this draft tests
Mergify checks that #1916 and #1875 still pass CI on top of
master. CI runs on this draft's code, built in this order:masterat8b3372b🕵️ Where it stands: failed, splitting the batch
The checks of this draft failed. Mergify splits this batch to find which pull request is responsible.
Follow the
changesqueue in the dashboardWhat happens next
Metadata 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 title