Repository navigation
merge queue: checking #1474 on master (6d17da5), stacked on #1480, #1490 and #1468 - #1499
Closed
mergify[bot] wants to merge 9 commits into
Closed
mergify[bot] wants to merge 9 commits into
mergify[bot] wants to merge 9 commits into
Conversation
Interface instances, modport views and generic bindings now resolve through semantic scopes over the original syntax tree. Remove generated probe modules, interface source replacement, timescale call replacement and source blanking in the external verification adapter. Preserve per-instance parameters, process and function bindings, generate scopes, timescales and initialized array members. Bind interface array ports in declaration order across differing bounds and forwarded connections, and reject shape mismatches. Inspect declarations through an explicit analyzer mode so timed bodies need no text edits. Validation: analyzer/frontend units; full SV backend suite; DPI, unpacked-array and mixed frontend tests; formatting and clippy. New array-port and initialization regressions agree with Verilator. Icarus passes array initialization and rejects interface port syntax; the latter is recorded under its existing interface limitation. Both external tools pass the timed declaration-inspection case. BREAKING CHANGE: Remove the elaborate_interfaces source-rewriting APIs. InterfacePrototype exposes its analyzed module instead of generated probe source. Change-Id: I95623503dff2b19c4acd10e87298a0d92e60c077
Interface-dependent caller declarations were analyzed before their bindings existed, while unrelated declarations could be delayed merely because an identifier matched a later interface instance. For example, pkg::later must remain available to I #(W) first() even when I later() follows it. Collect independent caller declarations and restore dependent ones as local interfaces become bound. Use the existing scope-aware reference collector so package-qualified names, structure members and nested lexical bindings do not create false dependencies. Propagate dependencies through ANSI ports and their inherited types, and resolve caller type queries before entering an interface. Preserve lexical roots in packed-structure dimension queries; reject collisions between module declarations (including enum literals) and imported interface symbols without rejecting subroutine-local shadowing. Select requested interface contracts before analyzing unsupported prototypes. All work uses original CSTs. Covers the four review findings on #1468 and six on #1474, including #1474 (comment). Shared cases exercise dependent declarations/ports, dimensions, and independent package/member/local bindings on all five Celox backends. API regressions cover collisions and selective collection. Retain narrow evidence for existing Icarus hierarchical-constant and structure-dimension limitations; the latest binding regression passes both Verilator and Icarus without exclusions. Sync the remaining stack onto master after #1467 merged. Preserve both generate import resolution and interface scopes in the overlapping analyzer paths, and keep master's time-scale API alongside the interface-plan API. Validate #1468 independently before validating this top member. Validation after syncing: analyzer/frontend units (371 passed, 4 existing ignores), full SV suite (2827 passed, 110 existing ignores), DPI (68), lifetime / unit-scope / arrays (33), mixed frontend (7), retained reports (3), formatting and affected-crate clippy with -D warnings. The lower member independently passes its units, full SV suite (2797), related integrations, retained reports and clippy. The new shared case also passes Verilator and Icarus. Change-Id: I6ad012f664d5e6f9dadc0ed7001dccf5247eae8b
An edge-triggered `always` committed its blocking and nonblocking results together when its domain applied. IEEE 1800-2023 (4.5, 10.4) executes the blocking stores in the active region and the nonblocking updates in the NBA region (#1470): - A variable one block writes both ways now stages its nonblocking writes in a hidden value and a mask of the bits they wrote; the commit merges them after the blocking value. `q <= 7; q = 2;` ends with 7 and a read after `q <= 7` sees the old `q`, on every path. - In a design with process kernels, a domain whose blocking results are observed (read through combinational logic by a kernel or another domain's evaluation, a wait term, or another domain's event signal) commits them with its evaluation and only the nonblocking ones in the NBA region. The reference loop settles combinational logic and wakes waits after such a domain evaluates before the inactive region, so their processes run in the active region. Other domains and the fused units commit as before. The runtime schema lists those domains, so the native image container moves to version 14; older images are rejected. BREAKING CHANGE: `RuntimeSchema` and `ScheduleModel` have the new field `active_commits`, and native images of container version 13 are rejected. Change-Id: I2c5a64fed1e96648f3c3b7419f39acb5f576bb32
A domain that commits its blocking results before the inactive region changed event signals of other domains, directly or through combinational logic, but the new levels became the edge baseline without an edge. The reference loop now takes the levels before the commits, settles, marks the domains the committed changes trigger, and evaluates them in the same active region before resuming the inactive processes. Change-Id: Ifef70072f1fd3b703438669d1d0524d76e619a4c
Simulation.runUntil(endTime, { maxSteps }) treated the Rust bounded loop's
false result as a timeout even when a design executed $stop. Return normally
when an allowed step suspends the simulation, so callers can inspect
isStopped() and resume it. Normalize fractional, negative and NaN budgets
before the native call and the stop check so effective zero-step budgets
still time out, including while a previous stop is pending.
A resumed time slot can stop again or exhaust its budget before consuming
pending host writes. Preserve dirty inputs after these interrupted resumptions
so output reads still perform lazy combinational evaluation.
Add TypeScript regressions for stop and resumption, normalized budgets, and
pending input writes across repeated stops and budget exhaustion. Extend the
Rust SystemVerilog $stop regression to verify bounded-loop results with
actual stopped processes.
Validation:
- TypeScript Simulation unit tests (54 passed), package type checks, and Biome.
- NAPI Simulation, timing-addon, cascaded-clock-addon, and e2e tests (168 passed).
- Rust stop_suspends_the_simulation_until_it_continues regression.
- cargo fmt and Clippy for the SystemVerilog integration test.
- Reused the successful NAPI build and Rust checks from the prior revision;
native sources are unchanged by this review fix.
Fixes #1464
Change-Id: I3756bef676de6da4b8e9884f9025a72083dc21ae
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.
Note
This is a merge queue draft opened by Mergify. Nobody needs to act on it.
Mergify opened it for batch underlying-caramel-0dt26k of the
changesqueue, to test #1474 before it merges intomaster. Pushing to this branch or closing this pull request removes #1474 from the queue.What this draft tests
Mergify checks that #1474 still passes CI once combined with everything queued ahead of it. CI runs on this draft's code, built in this order:
masterat6d17da5fb8bad7The check is speculative: it assumes the pull requests ahead will merge, so it starts without waiting for them.
🎉 Where it stands: checks passed
CI passed on this draft.
Follow the
changesqueue in the dashboardWhat happens next
masterand closes this draft.Tip
A red check is not necessarily caused by this batch. These checks run on a tip that also carries the commits of the 3 pull requests ahead, so a failure here can come from them as much as from #1474. See only this batch's changes.
Queued ahead of this batch
These pull requests entered the queue before this batch and are not part of it.
Metadata for CI tooling, read by
mergify ci1 scope
coreRequired conditions of queue rule
changesfor mergecheck-success = Conventional Commit titlecheck-success = Queue validationdepends-on = celox-sim/celox#1468[⛓️ refactor(sv)!: lower interfaces from original syntax #1468]master]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]: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)master]:check-success = @github-actions/NAPI Build (Windows)check-neutral = @github-actions/NAPI Build (Windows)check-skipped = @github-actions/NAPI Build (Windows)master]:check-success = @github-actions/Rust Test & NAPI Buildcheck-neutral = @github-actions/Rust Test & NAPI Buildcheck-skipped = @github-actions/Rust Test & NAPI Buildmaster]:check-success = @github-actions/JS Test (Ubuntu)check-neutral = @github-actions/JS Test (Ubuntu)check-skipped = @github-actions/JS Test (Ubuntu)master]:check-success = @github-actions/JS Test (Windows)check-neutral = @github-actions/JS Test (Windows)check-skipped = @github-actions/JS Test (Windows)master]:check-success = @github-actions/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titleRequired conditions to stay in the queue
-conflict-draft-head ~= ^(integration/|renovate/veryl-crates$|upgrade/veryl-|release-please--branches--master--components--celox$|master$)-head ~= ^renovate/-label = release:holddepends-on = celox-sim/celox#1468[⛓️ refactor(sv)!: lower interfaces from original syntax #1468]base ~= ^(master|develop)$base ~= ^stack/body ~= (?m)^Depends-On:head != release-please--branches--master--components--celoxlabel = merge-readymaster]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]:check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)check-success = @github-actions/NAPI Build (Linux ARM64 GNU)master]:check-skipped = @github-actions/NAPI Build (Windows)check-neutral = @github-actions/NAPI Build (Windows)check-success = @github-actions/NAPI Build (Windows)master]:check-success = @github-actions/Rust Test & NAPI Buildcheck-neutral = @github-actions/Rust Test & NAPI Buildcheck-skipped = @github-actions/Rust Test & NAPI Buildmaster]:check-success = @github-actions/JS Test (Ubuntu)check-neutral = @github-actions/JS Test (Ubuntu)check-skipped = @github-actions/JS Test (Ubuntu)master]:check-skipped = @github-actions/JS Test (Windows)check-neutral = @github-actions/JS Test (Windows)check-success = @github-actions/JS Test (Windows)master]:check-success = @github-actions/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit title