Repository navigation
feat(simulator): support scalar floating-point arithmetic and formatting - #1666
Conversation
|
This pull request is part of a Mergify stack:
|
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
b77550a to
770a753
Compare
Revision history
|
Merge Queue Status
This pull request spent 1 hour 14 minutes 45 seconds in the queue, with no time running CI. ReasonThe pull request conflicts with the base branch Automatic conflict resolution can merge a conflict like this one instead of stopping on it, but only in a queue using the HintYou should update or rebase your pull request. If you want to requeue this pull request, you can post a Requeued — the merge queue status continues in this comment ↓. |
Add Veryl f32/f64 and SystemVerilog shortreal/real/realtime scalar execution across the interpreter, native, Cranelift, and Wasm backends. Preserve IEEE storage while applying numeric arithmetic, comparisons, precision changes, integer conversions through 64 bits, and SV conversion functions at assignments, ports, and subroutine boundaries. Carry floating-point type metadata through runtime events and testbench arguments so display/write, assertion messages, and file output format numeric values with f/e/g, width, and precision. Include NAPI and browser helper integration and invalidate older native images with container version 22. The stale-load optimization exposed by combinational display capture was fixed in #1665, now included in master. Validation: - Pinned official sv-tests, full release-driver runs before/after: 20 fail-to-pass rows across 10 cases, no regressions (2state 462 -> 472 passes; 4state 464 -> 474). Update only those reviewed expectations. - Full Celox common suite before the master update: 12,458 passed, no failures; known exclusions retained. - After integrating current master: 776 SV analyzer tests and 3,450 integration tests passed, covering SystemVerilog, FP display/assertions, native image roundtrip in a fresh process, shared JIT cache. - Affected Rust unit tests and clippy, formatting, Wasm target checks, NAPI rebuild, JS tests and TypeScript checks. Two JS tests timed out under concurrent build load and passed on focused reruns. - New portable cases exercised through Icarus and Verilator. Known external shortreal/port/format differences are documented in crates/celox-test-suite/LIMITATIONS.md; expected results and retained verification baselines are unchanged. Veryl analyzer 0.22 mis-evaluates some FP constant expressions before lowering. Those reproductions retain their assertions with targeted ignores; default analyzer folding is preserved to avoid integer generate regressions. Runtime FP display/assertion tests remain enabled. Follow-up: #1657. Reject real-valued select indices, including parameters and expressions, while preserving integral indices and explicit real-to-integer conversions. A driven-input regression covers the legality check masked by an unrelated undriven-net error in the pinned upstream negative case. The symbolic bitvector bridge explicitly rejects FP operations rather than treating their payloads as integer arithmetic. The Python proof bridge also reports a typed unsupported result before proof execution. Six FP cases receive explicit reviewed proof-model exceptions, with zero reads and no proof artifacts; malformed IR and transport failures remain hard errors. The integer-folded FP case retains its assertions and receives a targeted known-failure entry for the existing Veryl bug #1657. Existing 771 coverage records were checked against the successful CI proof artifacts and preserved exactly; only the nine newly catalogued cases are added (including two aggregate cases from master). Targeted protocol and gate regressions are run locally; the full proof suite is not rerun locally. Deferred: wide integer and aggregate numeric conversions (#1653), and direct native FP instruction emission in place of helper calls (#1654). Refs #1401 Change-Id: Ie4380b73114505db30ac122288d528b078d28a62
770a753 to
1b4b94a
Compare
Merge Queue Status
This pull request spent 1 hour 7 minutes 40 seconds in the queue, including 1 hour 5 minutes 53 seconds running CI. Required conditions to merge
|
Add Veryl f32/f64 and SystemVerilog shortreal/real/realtime scalar execution across the interpreter, native, Cranelift, and Wasm backends. Preserve IEEE storage while applying numeric arithmetic, comparisons, precision changes, integer conversions through 64 bits, and SV conversion functions at assignments, ports, and subroutine boundaries.
Carry floating-point type metadata through runtime events and testbench arguments so display/write, assertion messages, and file output format numeric values with f/e/g, width, and precision. Include NAPI and browser helper integration and invalidate older native images with container version 22. The stale-load optimization exposed by combinational display capture was fixed in #1665, now included in master.
Validation:
Veryl analyzer 0.22 mis-evaluates some FP constant expressions before lowering. Those reproductions retain their assertions with targeted ignores; default analyzer folding is preserved to avoid integer generate regressions. Runtime FP display/assertion tests remain enabled. Follow-up: #1657.
Reject real-valued select indices, including parameters and expressions, while preserving integral indices and explicit real-to-integer conversions. A driven-input regression covers the legality check masked by an unrelated undriven-net error in the pinned upstream negative case.
The symbolic bitvector bridge explicitly rejects FP operations rather than treating their payloads as integer arithmetic. The Python proof bridge also reports a typed unsupported result before proof execution. Six FP cases receive explicit reviewed proof-model exceptions, with zero reads and no proof artifacts; malformed IR and transport failures remain hard errors. The integer-folded FP case retains its assertions and receives a targeted known-failure entry for the existing Veryl bug #1657. Existing 771 coverage records were checked against the successful CI proof artifacts and preserved exactly; only the nine newly catalogued cases are added (including two aggregate cases from master). Targeted protocol and gate regressions are run locally; the full proof suite is not rerun locally.
Deferred: wide integer and aggregate numeric conversions (#1653), and direct native FP instruction emission in place of helper calls (#1654).
Refs #1401