Skip to content

fix(sv): accept real-valued module parameter overrides - #1839

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-real-parameter-overrides/accept-real-valued-module-param-overrides--d2cf14dd
Oct 24, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-real-parameter-overrides/accept-real-valued-module-param-overrides--d2cf14dd

Conversation

@tignear

@tignear tignear commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Taxi's watchdog passes COUNT_125US=125000/6.4 through module parameters,
but the frontend rejected the binding because it only tried integral
constant evaluation. Accept numeric real constants using the existing
real evaluator and retain the original expression for the receiving
parameter's type context and specialization. Continue rejecting unresolved
values and preserve diagnostic tracking issue 461.

Add three shared SystemVerilog regressions covering fractional forwarding,
real/shortreal/integer conversion contexts, math functions, and generate
scopes. Exercise each through all five Celox backends.

Validation:

  • Focused shared cases: 15 passed; full SV suite: 4,366 passed,
    20 existing ignored.
  • Analyzer: 795 passed, 3 existing ignored; frontend: 5 passed;
    shared suite: 30 passed; doctests: 2 passed.
  • Final diagnostic regression passed; affected libraries and SV harness
    passed Clippy with -D warnings; formatting passed.
  • Icarus: all three new cases passed. Verilator 5.052 passed two;
    the typed shortreal case mismatches because Verilator promotes
    shortreal to real (Warning-SHORTREAL). Slang 12 elaborates all three.
  • A custom cocotb regression of unchanged upstream Taxi watchdog RTL
    passed with native O1 and two-state simulation: load 19531 and 3,
    countdown, reload, and reset. This is not a full upstream test-module pass.
  • Paired release-frontend replay of 25 previously COUNT_125US-blocked
    Taxi configurations: baseline rejects all 25; this patch reaches
    STAT_PREFIX_STR in seven and GT_TX_DIFFCTRL in one. The other 17 time
    out at 120 seconds. No complete FPGA-core configuration passes are
    claimed. All 188 resolved upstream sources remain unchanged.

The remaining unpacked-array parameter forwarding errors and frontend
runtime limits are separate follow-up work.

Taxi's watchdog passes COUNT_125US=125000/6.4 through module parameters,
but the frontend rejected the binding because it only tried integral
constant evaluation. Accept numeric real constants using the existing
real evaluator and retain the original expression for the receiving
parameter's type context and specialization. Continue rejecting unresolved
values and preserve diagnostic tracking issue 461.

Add three shared SystemVerilog regressions covering fractional forwarding,
real/shortreal/integer conversion contexts, math functions, and generate
scopes. Exercise each through all five Celox backends.

Validation:
- Focused shared cases: 15 passed; full SV suite: 4,366 passed,
  20 existing ignored.
- Analyzer: 795 passed, 3 existing ignored; frontend: 5 passed;
  shared suite: 30 passed; doctests: 2 passed.
- Final diagnostic regression passed; affected libraries and SV harness
  passed Clippy with -D warnings; formatting passed.
- Icarus: all three new cases passed. Verilator 5.052 passed two;
  the typed shortreal case mismatches because Verilator promotes
  shortreal to real (Warning-SHORTREAL). Slang 12 elaborates all three.
- A custom cocotb regression of unchanged upstream Taxi watchdog RTL
  passed with native O1 and two-state simulation: load 19531 and 3,
  countdown, reload, and reset. This is not a full upstream test-module pass.
- Paired release-frontend replay of 25 previously COUNT_125US-blocked
  Taxi configurations: baseline rejects all 25; this patch reaches
  STAT_PREFIX_STR in seven and GT_TX_DIFFCTRL in one. The other 17 time
  out at 120 seconds. No complete FPGA-core configuration passes are
  claimed. All 188 resolved upstream sources remain unchanged.

The remaining unpacked-array parameter forwarding errors and frontend
runtime limits are separate follow-up work.

Change-Id: Id2cf14ddc0d997cc362eb07f2211c6bbedd6ed87
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T01:23:04.984235Z 5dde492 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 24, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 24, 2026
@mergify

mergify Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-24 02:27 UTC · Rule: changes · triggered by rule Queue explicitly requested merges
  • ✅ Checks passed · on draft merge queue: checking #1839 on master (eb30f0e) #1841
  • ✅ Merged — 2026-10-24 03:44 UTC · at 13c774b37d355313ac2281e058a790520cd900d4 · merge

This pull request spent 1 hour 17 minutes 11 seconds in the queue, including 1 hour 14 minutes 52 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • 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)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

@tignear

tignear commented Oct 24, 2026

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 fix(sv): accept real-valued module parameter overrides #1839 👈
2 perf(sv): skip scope discovery for literal query operands #1843

@mergify
mergify Bot merged commit 13c774b into master Oct 24, 2026
30 checks passed
@mergify
mergify Bot deleted the stack/tignear/fix/sv-real-parameter-overrides/accept-real-valued-module-param-overrides--d2cf14dd branch October 24, 2026 03:44
@mergify mergify Bot removed the queued Mergify queue entry label Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant