Repository navigation
merge queue: checking #1897 + #1875 + #1918 together on master (d9e44c9), stacked on #1896, #1930 and #1934 - #1944
Closed
mergify[bot] wants to merge 15 commits into
Closed
mergify[bot] wants to merge 15 commits into
mergify[bot] wants to merge 15 commits into
Conversation
A kernel of a program instance names the status slot of the instance's first kernel (ProcessSlots::program). Such kernels start, wake and resume in the Reactive region, a #0 resumes them in the Re-Inactive region, and their nonblocking updates take effect in the Re-NBA region (IEEE 1800-2023 4.4.2.6-4.4.2.8, 24.3.1). The reactive region set runs once the active region set is empty and returns to the active region set for the design activity it creates (4.5). ProcessStatus::Exit ends every kernel of the calling program instance (24.7), and the implicit $finish fires once every program kernel has ended (24.3). Program kernels run on the reference scheduler. Designs without programs schedule as before. BREAKING CHANGE: ProcessSlots gains `program`, ProcessStatus gains `Exit`, ProcessState and ScheduleKey gain the reactive, re-inactive and Re-NBA queues, and the native image container format is now 35. Change-Id: I6c899de1f0d5e8ca722733a53655ee80e3c988b8
The analyzer accepts program declarations and their instances (IEEE 1800-2023 24.3). It rejects always procedures, module instances and nested units inside a program, and reports a program nested in a module as unsupported. A program's initial procedures are not folded into initial state: they lower to kernels that name the program instance, so they run in the reactive region set, and $exit in a program ends its initial procedures (24.7). Continuous assignments of a program are evaluated with the design. Nested and anonymous programs, the implicit program top, and final and clocking blocks in programs are not supported yet. The shared suite's program cases are checked against xezim 0.11.3. Icarus 13.0 and Verilator 5.052 run program procedures in the active region set and do not end the simulation when the programs end; their exclusions record the pre-exclusion results. Change-Id: I3e6817bd4b94f04465a90ecb9ef4155ee3e582da
Change-Id: I99da4b4abb1f9113e2e89fa9cbe3bb0ea9a06b0b
Change-Id: I34c27f4234479a98dd5a1f2e45826759af799672
Change-Id: Ibcbf8e2b9f1a510006e52d7d3a26fed166f30bae
A host such as a VPI driver needs to see an edge before the flip-flop domains commit, and every settled slot. Simulation::observe_slots installs a SlotObserver: before_domains runs in every round once its processes and scheduled values have run and before its domains evaluate, end_of_slot once the slot has settled. Writes there are blocking host writes at the slot's time; the round settles them before the domains read them, and those at the end of a slot are settled at that time before the simulation advances. The compiled scheduler keeps every kernel it can. SchedulerSchema records, per kernel, the event signals it writes: the slots of the kernels and host clocks that may change an observed event signal run in the reference loop, the others stay compiled, one slot per run while an observer is installed. A differential simulation stops checking, as its shadow does not see the observer's writes. BREAKING CHANGE: native image containers are version 35; images of earlier versions no longer load. SchedulerSchema has a new public field, kernel_events. Part of #1730 Change-Id: I4ffaef0e5b3b716ec5185ff0250aeb33114fb496
Change-Id: I5737eb89d7389cb84585ee295af57fac35d9ccc4
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
Run the shared Veryl and SystemVerilog suites against xezim through its command line. Timed testbenches settle through a top-level program that acknowledges a design-side request event (IEEE 1800-2023 4.5, 24.3.1). The dev shell pins xezim by git revision, CI compares it in the external suite matrix, and the initial baseline retains each failure with its review in verification/xezim-review.json. Closes #1863. Change-Id: I3c2abece39ec71f689b07a5d0d9f5e27f804e9dd
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 associated-merveilleux-67nywh of the
changesqueue, to test #1897, #1875 and #1918 before they merge intomaster. Pushing to this branch or closing this pull request removes them from the queue.What this draft tests
Mergify checks that #1897, #1875 and #1918 still pass CI once combined with everything queued ahead of them. CI runs on this draft's code, built in this order:
masteratd9e44c9697812bThe 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 3 pull requests ahead, so a failure here can come from them as much as from #1897 + #1875 + #1918. 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.
coreMetadata 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#1896[⛓️ feat(runtime)!: run program kernels in the reactive region set #1896 [stack]]master]: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$)-head ~= ^renovate/-label = release:holddepends-on=celox-sim/celox#1896[⛓️ feat(runtime)!: run program kernels in the reactive region set #1896 [stack]]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-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 eecc53f70c1943b6844e9adf9615f07f["clean-religieuse-bwx7pn<br/>#1896 + #1930 + #1934<br/>scopes: core"] eaf9602e738d408d8ae0b326e0163890["associated-merveilleux-67nywh<br/>#1897 + #1875 + #1918<br/>scopes: core"] eecc53f70c1943b6844e9adf9615f07f --> eaf9602e738d408d8ae0b326e0163890 style eaf9602e738d408d8ae0b326e0163890 fill:#6366f1,color:#fff