Repository navigation
feat(cli)!: support numeric top parameter overrides - #1591
Conversation
tignear
marked this pull request as ready for review
October 20, 2026 09:27
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. |
Contributor
Author
|
@Mergifyio queue |
Contributor
Merge Queue Status🛑 Queue command has been cancelled |
Taxi's cocotb parameter set enables ID_EN and DEST_EN, but the CLI previously required editing a copy of its top module to select those values. Both `celox run` and `celox vpi build` now accept repeatable `-G NAME=VALUE` / `--parameter NAME=VALUE` (`--param` alias), plus `[parameters]` and `[targets.NAME.parameters]` in celox.toml, for SystemVerilog and Veryl tops. Merge parameters by name in common -> target -> CLI order, with the last assignment winning. Values use the existing unsigned 64-bit builder interface, accepting decimal/0x/0o/0b forms and digit separators; TOML also accepts numeric strings for the full u64 range. HDL expressions, negative values, string values, and type parameters remain outside this interface. Declaration types determine conversion and truncation. Preserve the existing public driver helpers while adding a parameter-aware entry point. Reject invalid assignments and unknown parameter names. Veryl's previous unknown-top behavior silently ignored typos, including names that exist only on a child module; update that regression to require rejection without retargeting the child. Validation: - Full celox-vpi suite with SystemVerilog, including 10 project CLI tests for precedence, duplicates, aliases, dependent parameters, native image width/value, unchanged source, and invalid input. - 256 parameter/backend regressions (89 param_override, 4 param_override_width, 163 parameterized_ops). - NAPI build and 6 JS parameter integration tests; affected-crate Clippy with warnings denied and formatting. - Original fpganinja/taxi top at cc70b270b910d369ab1ad7b3855e76399fd461f1, with no RTL/Python edits: 9/9 cocotb tests at O1 and 9/9 at O2. The manifest supplies ID_EN=1 and CLI DEST_EN=1 overrides the manifest's DEST_EN=0. O2 lists observed interface signals in live_signals. After rebasing onto master, both runs pass without additional patches: master includes the #1441 event metadata and #1570 callback-order fixes. All 3 cocotb integration tests also pass. The updated CLI preserves the master O2 default for run and O1 for vpi build. BREAKING CHANGE: Unknown Veryl top parameter overrides now fail compilation instead of being silently ignored. This also affects SimulatorBuilder::param callers and parameter overrides passed through NAPI. Depends-On: #1579 Change-Id: I7a792c472bd9810fdca4f5034b9f6bb004332eeb
tignear
force-pushed
the
stack/tignear/feat/explicit-signal-access/configure-optimization-explicit-signal-access--3121ddcc
branch
from
October 20, 2026 10:42
376107a to
b291fe8
Compare
tignear
force-pushed
the
stack/tignear/feat/top-parameter-options/support-numeric-top-param-overrides--7a792c47
branch
from
October 20, 2026 10:43
d4e5db3 to
834663f
Compare
Contributor
Author
Revision history
|
Contributor
🛑 The queue request has been cancelled: new commits were pushedDetails@tignear pushed to this pull request after |
tignear
deleted the
stack/tignear/feat/top-parameter-options/support-numeric-top-param-overrides--7a792c47
branch
November 8, 2026 20:19
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.
Taxi's cocotb parameter set enables ID_EN and DEST_EN, but the CLI previously required editing a copy of its top module to select those values. Both
celox runandcelox vpi buildnow accept repeatable-G NAME=VALUE/--parameter NAME=VALUE(--paramalias), plus[parameters]and[targets.NAME.parameters]in celox.toml, for SystemVerilog and Veryl tops.Merge parameters by name in common -> target -> CLI order, with the last assignment winning. Values use the existing unsigned 64-bit builder interface, accepting decimal/0x/0o/0b forms and digit separators; TOML also accepts numeric strings for the full u64 range. HDL expressions, negative values, string values, and type parameters remain outside this interface. Declaration types determine conversion and truncation. Preserve the existing public driver helpers while adding a parameter-aware entry point.
Reject invalid assignments and unknown parameter names. Veryl's previous unknown-top behavior silently ignored typos, including names that exist only on a child module; update that regression to require rejection without retargeting the child.
Validation:
BREAKING CHANGE: Unknown Veryl top parameter overrides now fail compilation instead of being silently ignored. This also affects SimulatorBuilder::param callers and parameter overrides passed through NAPI.
Depends-On: #1579