Repository navigation
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. |
Merge Queue Status
This pull request spent 44 minutes 18 seconds in the queue, with no time running CI. ReasonThe pull request conflicts with the base branch The pull request was held in the queue, conflicting with at least one of 2 pull requests ahead of it. The conflict became a base branch one after #1441 merged. 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 ↓. |
Allow projects to compile third-party SystemVerilog with mixed explicit and default timescales through a per-code severity policy. Add [diagnostics] and [targets.NAME.diagnostics] to celox.toml, and repeatable --diagnostic CODE=allow|warn|error overrides to both celox run and celox vpi build. Reuse the project discovery and target resolution from #1566, with common settings overridden by the selected target and then the CLI. Keep strict defaults. Relaxed mixed_timescale diagnostics use 1ns/1ps for undeclared settings, retain explicit values, and include default scopes in global precision. Existing Veryl and SV warnings can be suppressed or promoted while unrelated errors remain fatal. NAPI project factories apply the policy and include it in compilation cache keys. Optimizer and runtime settings are unchanged. Breaking Rust API: SimulatorOptions gains diagnostic_policy, SimulatorErrorKind gains DiagnosticPolicy, and the SV frontend/analyzer warning enums gain MixedTimescale. Update exhaustive struct constructions and enum matches accordingly. Existing builder calls and CLI defaults retain their behavior. Validation: - 10 diagnostic-policy regressions, including native, Cranelift, interpreter, WASM and mixed-language interface probes. - 123 timescale and 19 warning regressions across the affected backend variants; 744 analyzer/frontend unit tests passed (3 existing ignored tests). - cargo test --locked -p celox-vpi, with and without --features systemverilog. - Focused NAPI project-policy/cache regression, native addon build, 6 celox.toml JS integration tests and TypeScript typecheck. - WASI addon build using the CI WASI SDK and all 16 playground WASM tests. - Clippy for affected crates and tests, including both VPI feature configurations; cargo fmt; JS lint; affected doctests; parse all TOML guide examples. - Unmodified fpganinja/taxi AXI Stream RTL and testbench sources compile with mixed_timescale=warn. Full upstream cocotb execution still encounters the separate VPI interface-discovery limitation (s_axis is absent); this PR does not claim that workload passes. Depends-On: #1566 Change-Id: I5c15ee49037bd37e3680f71364558aa886eb64f1
Merge Queue Status🛑 Queue command has been cancelled |
66fb60e to
e563070
Compare
Revision history
|
e563070 to
187b05f
Compare
Let `celox run` and `celox vpi build` share project inputs from celox.toml, including common sources, named targets, include directories, macro definitions, top selection and run defaults. Resolve manifest paths from the manifest directory and discover a project from the current directory or its parents when appropriate. Explicit CLI settings override the selected target. Preserve the O2 production default when neither the CLI nor the project sets an optimization level, with precedence coverage for .sv, .v, and .veryl inputs. Support standalone and nested -f file lists with quoted paths, comments, -I/-D and +incdir+/+define+ options. Expand CLI source and file-list arguments in their authored order. Reject unknown configuration fields, unsupported file-list options and recursive lists. Use the existing SV preprocessing API for includes and defines; compiler lowering, state-machine construction and optimizers are unchanged. Add integration coverage for both commands, target selection, preprocessing, relative paths, CLI overrides, disabled SV builds and malformed configuration. Document the schema, path rules, ordering and supported file-list syntax in English and Japanese. Validation: - cargo test --locked -p celox-vpi - cargo test --locked -p celox-vpi --features systemverilog - cargo clippy --locked -p celox-vpi --all-targets -- -D warnings - cargo clippy --locked -p celox-vpi --all-targets --features systemverilog -- -D warnings - cargo fmt --all -- --check - pnpm run lint - Parse the TOML examples from both guides with Python tomllib. The two cocotb-dependent integration tests also pass when explicitly enabled with the configured Python interpreter. Change-Id: I620aad8541eb0f53364e4b32f571c56a9669f4f0
187b05f to
451189e
Compare
Allow projects to compile third-party SystemVerilog with mixed explicit and default timescales through a per-code severity policy. Add [diagnostics] and [targets.NAME.diagnostics] to celox.toml, and repeatable --diagnostic CODE=allow|warn|error overrides to both celox run and celox vpi build. Reuse the project discovery and target resolution from #1566, with common settings overridden by the selected target and then the CLI. Keep strict defaults. Relaxed mixed_timescale diagnostics use 1ns/1ps for undeclared settings, retain explicit values, and include default scopes in global precision. Existing Veryl and SV warnings can be suppressed or promoted while unrelated errors remain fatal. NAPI project factories apply the policy and include it in compilation cache keys. Optimizer and runtime settings are unchanged. Breaking Rust API: SimulatorOptions gains diagnostic_policy, SimulatorErrorKind gains DiagnosticPolicy, and the SV frontend/analyzer warning enums gain MixedTimescale. Update exhaustive struct constructions and enum matches accordingly. Existing builder calls and CLI defaults retain their behavior. Validation: - 10 diagnostic-policy regressions, including native, Cranelift, interpreter, WASM and mixed-language interface probes. - 123 timescale and 19 warning regressions across the affected backend variants; 744 analyzer/frontend unit tests passed (3 existing ignored tests). - cargo test --locked -p celox-vpi, with and without --features systemverilog. - Focused NAPI project-policy/cache regression, native addon build, 6 celox.toml JS integration tests and TypeScript typecheck. - WASI addon build using the CI WASI SDK and all 16 playground WASM tests. - Clippy for affected crates and tests, including both VPI feature configurations; cargo fmt; JS lint; affected doctests; parse all TOML guide examples. - Unmodified fpganinja/taxi AXI Stream RTL and testbench sources compile with mixed_timescale=warn. Full upstream cocotb execution still encounters the separate VPI interface-discovery limitation (s_axis is absent); this PR does not claim that workload passes. Depends-On: #1566 Change-Id: I5c15ee49037bd37e3680f71364558aa886eb64f1
Merge Queue Status
Waiting for
All conditions
|
Land the two stacks branching from #1566 together so the upstream testbench workflow and simulator configuration share one validated queue entry. Include celox.toml projects and SV file lists, configurable diagnostics, VPI interface hierarchy, optimization and explicit signal access, numeric top parameter overrides, and the pinned common_cells daily smoke test. The compiler/runtime starts from #1591 at the SHA below. The CLI also accepts the established exclude, [test], and [simulation] manifest fields with their existing types, so explicit Veryl inputs can reuse celox.toml. Additional changes come from #1571's CI, runner, and documentation. The source PRs are held with release:hold while this rollup is active. Their changes are squashed here; they close automatically when this PR lands on master. If a source head changes, rebuild the rollup before queueing it. Removing this rollup requires releasing those holds before resuming individual stack merges. Source PRs and pinned heads: - #1566: 451189e — feat(cli): support celox.toml projects and SV file lists - #1571: 7b3abcc — ci: run pinned upstream SystemVerilog testbench daily - #1573: 2eee192 — feat(diagnostics)!: configure compilation diagnostic levels - #1576: e16ef23 — fix(vpi): preserve SystemVerilog interface member hierarchy - #1579: b291fe8 — feat(cli)!: configure optimization and explicit signal access - #1591: 834663f — feat(cli)!: support numeric top parameter overrides Validation: - Manifest compatibility: 21 CLI tests passed, including run and vpi build with each established field and their combination; malformed field types and unknown CLI fields remain rejected. Affected-crate Clippy and formatting passed. - 75 CLI/VPI tests passed; 3 opt-in cocotb tests retain the successful evidence from the identical #1591 Rust tree. - 63 workflow, classifier, scope, and upstream-runner script tests passed. - Real pinned common_cells Gray code TB passed; broken RTL failed with the required assertion diagnostic. - cargo clippy --locked -p celox-vpi --all-targets --features systemverilog -- -D warnings, cargo fmt --all -- --check, pnpm lint, and git diff --check passed. - Actionlint passed with only its outdated ubuntu-26.04-arm label catalogue diagnostic suppressed; the runner label predates these changes. - Reused #1591's exact-source parameter (256 tests), Clippy, NAPI, and upstream Taxi O1/O2 (9/9 each) validation. BREAKING CHANGE: SimulatorOptions gains diagnostic_policy and signal_access, error and warning enums gain variants, and native image container version 16 requires rebuilding attached images with a matching runtime. VPI builds use O1 with explicitly declared force targets. Unknown Veryl top parameter overrides now fail compilation instead of being silently ignored. Closes #1566 Closes #1571 Closes #1573 Closes #1576 Closes #1579 Closes #1591 Change-Id: I8a7eb9b0697f93da59eb8f5b8b13f70113604263
Let
celox runandcelox vpi buildshare project inputs from celox.toml, including common sources, named targets, include directories, macro definitions, top selection and run defaults. Resolve manifest paths from the manifest directory and discover a project from the current directory or its parents when appropriate. Explicit CLI settings override the selected target. Preserve the O2 production default when neither the CLI nor the project sets an optimization level, with precedence coverage for .sv, .v, and .veryl inputs.Support standalone and nested -f file lists with quoted paths, comments, -I/-D and +incdir+/+define+ options. Expand CLI source and file-list arguments in their authored order. Reject unknown configuration fields, unsupported file-list options and recursive lists. Use the existing SV preprocessing API for includes and defines; compiler lowering, state-machine construction and optimizers are unchanged.
Add integration coverage for both commands, target selection, preprocessing, relative paths, CLI overrides, disabled SV builds and malformed configuration. Document the schema, path rules, ordering and supported file-list syntax in English and Japanese.
Validation:
The two cocotb-dependent integration tests also pass when explicitly enabled with the configured Python interpreter.