Repository navigation
test: add xezim as an external reference simulator - #1918
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
b60b16d to
e30afc4
Compare
Merge Queue Status
This pull request spent 9 minutes 40 seconds in the queue, with no time running CI. ReasonPull request #1918 has been dequeued by @tignear with a Requeued — the merge queue status continues in this comment ↓. |
|
@Mergifyio dequeue |
e30afc4 to
d3f6cb6
Compare
d3f6cb6 to
0b13ece
Compare
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
0b13ece to
f261bcd
Compare
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Merge Queue Status
This pull request spent 46 minutes 40 seconds in the queue, including 24 minutes 14 seconds running CI. Required conditions to merge
|
Closes #1863.
What
Adds xezim as a third external reference simulator for the shared Veryl and SystemVerilog suites, next to Verilator and Icarus.
src/xezim.rs,xezimfeature,verify-xezim/verify-sv-xezim). It uses the command line only, with no VPI or C++ harness.xezim --compile -D CELOX_SUITE_XEZIM, which separates source rejections from a run that ends in$fatal, and then run, parsed again, astimeout -k 10s 60s xezim --error-exit --max-time <RUN_UNTIL_LIMIT + 1> -s <top> …. Follow-up test(xezim): run each case with one xezim process instead of --compile plus a run #1927 tracks running each case with one process.$finishended it.--max-timeisRUN_UNTIL_LIMIT + 1ns, so every script time is reachable and the testbench's own deadline afterrun_to_finishfires first. xezim handles SIGTERM cooperatively and its output helper ignores it, sotimeout -k 10sescalates to SIGKILL. A time limit, event exhaustion, a crash or a forged marker all fail.icarus::is_source_rejection: exit code 1, every line is a recognised diagnostic, excerpt or header, and only reviewed messages count.`ifdef CELOX_SUITE_XEZIM. A top-levelprogram celox_suite_settleracknowledges a request counter. The testbench increments the counter, which is a design-side event caused by the stimulus, then waits withwhile (ack != request) @(ack).#0would resume before the design reacts.programsupport (feat(sv): program blocks and the reactive region set #1862), so this exists only on the xezim branch.tests/oracles.rs: NBA → comb → derived-clock NBA cascades,#0chains, settles at time 0 and later, early$finish, event exhaustion, and forged or partial markers.XEZIM_INIT_REG=0/XEZIM_INIT_MEM=0, and the generated testbench inputs start at'0on the xezim branch. Other variables still start at X, so on the xezim branch every design read of a two-state case goes throughsuite_read, which fails the run on unknown bits; X can no longer slip through!==, conditions or&&/||. That is the ruleIcarus::readapplies. 7 cases are recorded as two-state init limitations and 1 as a two-state semantics limitation.nix develop .#xezimadds xezim, pinned by git rev, to the development shell. Only the xezim external-suite jobs build it; the default shell and the devcontainer profile don't (flake.nixinput,nix/xezimwith a vendoredCargo.lockandupdate-lock.sh, because upstream does not commit one).update-lock.shresolves it with the nixpkgs cargo and rustc that build the package. Renovate opens rev bumps without automerge, and their description says the retained reports must be re-reviewed.xezimfor both suites. PR CI builds, lints and testscelox-test-suite/xezimwith the other adapter features; tests that run xezim itself are#[ignore]d there. It runs the live adapter tests and the same fresh-report gate (check-external-suite-report.mjs).Initial reviewed baseline
veryl_ff_effects,veryl_negative_for_bounds,veryl_runtime_system_calls,veryl_native_clock_components). Their emitted diagnostics are not stable between runs, so they are excluded the same way as for Verilator and Icarus. The pre-exclusion evidence is inverification/limitations/xezim.json.verification/xezim-review.jsonclassifies each one against IEEE 1800-2023, not by majority vote between simulators:%05dzero pad where 21.2.1.2 pads decimals with spaces, and a fixed wake order between processes woken by the same event (4.7).logicvector reads x (11.5.1) where the two-state contract gives 0.always_combwith zero inputs loops forever before the testbench's first write (9.2.2.2.1, 4.7), and one where processes woken by the first of two NBA updates run before the second (4.5, 4.6, 4.7).retained_reports::xezim_retained_failures_match_their_reviewrequires the review and the retained failures to match exactly, with the same names and statuses, and every cited bug to be catalogued.Two fresh full runs gave identical retained failures. Apart from the emission cases,
check-external-suite-report.mjsaccepted the second run against the first run's report: Veryl 785 and SV 691 cases. After rebasing on master, both catalogues were rerun fresh (SV now has 728 cases) and the 25 new SV non-passes were triaged.Validation
cargo fmt --all -- --checkcargo clippy --locked --workspace --all-targets --features celox/systemverilog,celox-test-suite/verilator,celox-test-suite/icarus,celox-test-suite/xezim --no-deps(no warnings)nix flake check --no-build --all-systems --no-update-lock-file;nix build .#xezimcargo nextest run -p celox-test-suite --profile ci --features verilator,icarus,xezim: 80 passed, 16 skipped (ignored live tests)cargo test -p celox-test-suite --features {xezim,icarus,verilator} --test oracles -- --ignored: xezim 3, Icarus 5, Verilator 4 passednode --test scripts/*.test.mjs: 271/272 pass. The failure isemnapi-compatibility, because the localnode_moduleslacks@emnapi/core'screateAddonModule; that is unrelated and installed in CI.verify-xezim --fresh/verify-sv-xezim --freshover the full catalogues produced the retained reports, and a second fresh run passed the CI report check.verify-sv-icarusandverify-sv-verilator --fresh --filter timing::were rerun: all 125 cases have their retained statuses (Icarus 120 passed / 5 ignored, Verilator 102 passed / 18 ignored / 5 unsupported).