Repository navigation
merge queue: merged #2724: feat(cli)!: share SystemVerilog compilation units across ordered source files - #2735
Closed
mergify[bot] wants to merge 2 commits into
Closed
mergify[bot] wants to merge 2 commits into
mergify[bot] wants to merge 2 commits into
Conversation
…ce files `celox run -f rtlmeter.f` previously restarted preprocessing for every source, so macros defined in a configuration header disappeared before later RTL files. The CLI now treats its ordered source list as one compilation unit by default. Definitions, undefinitions, directives and unit declarations carry forward; relative includes resolve against their own source files. Lists accept .h, .vh and .svh headers alongside .v/.sv sources, including a leading header. Use --separate-units or single_unit = false in celox.toml to retain per-file isolation; --single-unit overrides a project setting. Both run and vpi build use the same selection. Rust source-list APIs keep their existing per-file contract; syntax::preprocess_sources explicitly preprocesses a shared unit. IEEE 1800-2023 3.12.1 requires both compilation models and leaves the default to tools. Preserve file boundaries in expanded text with line directives. Separate tokens introduced by expansions so a macro's unary minus followed by -1 remains - -1, rather than becoming the decrement --1. Explicit token pastes remain intact; macro substitution in based literals remains supported. Comments do not terminate escaped identifiers: expansion boundaries insert actual whitespace before comments, and EOF line comments end before an included file's caller. Closes #2128. Validation: project_cli (22 passed), syntax crate (137 passed), compilation_units (3 passed), analyzer syntax tests (7 passed), analyzer doctests, affected-crate clippy and cargo fmt. With #2133, RTLmeter hello passes in four-state on E902 (native, 5392 cycles) and E906 (native and tiered, 9816 cycles). After the token serialization fix, both designs retain their effective token streams (174054 and 497628 tokens; based-literal whitespace normalized per IEEE 5.7.1). Change-Id: I9acd28e899919795f02894d6fcc118ef68667d63
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. Its pull request has merged, and nobody needs to act on it.
Mergify opened it for batch fascinated-financier-wv1p2r of the
changesqueue, to test #2724 before it merged intomaster.🎉 What landed
Mergify merged its pull request into
master, then closed this draft:eb7afe2This draft's code was built in this order:
masterat329d955Metadata for CI tooling, read by
mergify ci1 scope
coreRequired conditions of queue rule
changesfor mergecheck-success = Conventional Commit titlecheck-success = Queue validationcheck-success = Verify workflow lockfilemaster]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]: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/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titlemaster]:check-success = @github-actions/Queue validationcheck-neutral = @github-actions/Queue validationcheck-skipped = @github-actions/Queue validationmaster]:check-success = @github-actions/Verify workflow lockfilecheck-neutral = @github-actions/Verify workflow lockfilecheck-skipped = @github-actions/Verify workflow lockfileRequired 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:holdbase ~= ^(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-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/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titlemaster]:check-skipped = @github-actions/Queue validationcheck-neutral = @github-actions/Queue validationcheck-success = @github-actions/Queue validationmaster]:check-success = @github-actions/Verify workflow lockfilecheck-neutral = @github-actions/Verify workflow lockfilecheck-skipped = @github-actions/Verify workflow lockfile