Skip to content

merge queue: merged #2133: fix(sv): compare the bounds, not the spelling, of non-ANSI port ranges - #2729

Closed
mergify[bot] wants to merge 5 commits into
masterfrom
mergify/merge-queue/143715a603
Closed

mergify[bot] wants to merge 5 commits into
masterfrom
mergify/merge-queue/143715a603

Conversation

@mergify

@mergify mergify Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Note

This is a merge queue draft opened by Mergify. Its pull request has merged, and nobody needs to act on it.
Mergify opened it for batch singular-potaufeu-2n03sk of the changes queue, to test #2133 before it merged into master.

🎉 What landed

Mergify merged its pull request into master, then closed this draft:

  • #2133 fix(sv): compare the bounds, not the spelling, of non-ANSI port ranges (tignear), as 0cb1011

This draft's code was built in this order:

  1. master at d7abfa7
  2. the pull request queued ahead of this batch, listed below, which brought the tip to ad815f0
  3. #2133, the pull request of this batch

Queued ahead of this batch

This pull request entered the queue before this batch and is not part of it.

Metadata for CI tooling, read by mergify ci
---
all_scopes: false
checking_base_sha: ad815f0aaf44a3a1beac84a271a09990a3dae773
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 2133
    scopes:
      - core
scopes:
  - core
...
1 scope
  • core
Required conditions of queue rule changes for merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • check-success = Verify workflow lockfile
  • 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/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/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Queue validation
    • check-neutral = @github-actions/Queue validation
    • check-skipped = @github-actions/Queue validation
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Verify workflow lockfile
    • check-neutral = @github-actions/Verify workflow lockfile
    • check-skipped = @github-actions/Verify workflow lockfile
Required conditions to stay in the queue

tignear and others added 5 commits October 26, 2026 18:34
A non-ANSI port can be declared again in a net or variable declaration, and if that declaration is a vector, the two ranges "shall be identical" (IEEE 1800-2023 23.2.2.1). The parser compared the token text of the two ranges, so equal ranges written differently were rejected. rtlmeter's XuanTie E902 and E906 declare `output [79:0] busif_kid_clicintattr_sel;` and `wire [CLICINTNUM-1:0] busif_kid_clicintattr_sel;` with `CLICINTNUM` = 64+16, and the compile failed.

The parser cannot evaluate parameters, so the check moves to elaboration:
- When the spellings differ, the parser keeps the net or variable declaration's type for the port and records the port declaration's type in the new `Port::declared_type`.
- `ports_from_scope` evaluates both ranges with the module's parameter values and rejects the port when the bounds differ: "the ranges of a non-ANSI port declaration and its net or variable declaration of `x` differ".
- A port declaration without a range completed by a vector declaration is still rejected by the parser.

Closes #2126.

- Shared case `hierarchy::non_ansi_port_ranges_compare_bounds`: the E902 shape (a macro-built parameter in the net's range), matching Icarus and Verilator.
- `rejects_malformed_non_ansi_port_declarations` also rejects ranges that differ through a parameter (`input [3:0] a; wire [N-1:0] a;` with N = 8).

Change-Id: I0fc04b280c929c9f50d191276e5cc31fb4949ad5
Change-Id: I1b666c99bf3bec2c6ea31960c88f76d9c5286bc0
@mergify mergify Bot changed the title merge queue: checking #2133 on master (d7abfa7), stacked on #2726 merge queue: merged #2133: fix(sv): compare the bounds, not the spelling, of non-ANSI port ranges Oct 31, 2026
@mergify mergify Bot closed this Oct 31, 2026
@mergify
mergify Bot deleted the mergify/merge-queue/143715a603 branch October 31, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant