Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the synthesis script (synth.tcl) to throw an error if a module specified in SYNTH_KEEP_MODULES does not match any module in the design, preventing silent failures due to typos or renamed modules. It also updates the corresponding documentation in FlowVariables.md, variables.json, and variables.yaml to reflect this new behavior. There are no review comments to address, and the changes look solid and well-documented.
A SYNTH_KEEP_MODULES name that matched no module was a yosys warning and nothing else: synthesis went on with that module flattened. A misspelled name, or a module the RTL has renamed, changed the result without a word. That is how asap7/coralnpu's keep list went stale in The-OpenROAD-Project#4653: the current RTL renamed DispatchV1, LsuV1 and DBus2AxiV1 to DispatchV2, LsuV3 and DBus2AxiV2, and a full flow ran with three of its ten units flattened before anything noticed. Each name now has to select a module, by either of the two patterns already used (the name itself, or slang's uniquified name$...); synthesis stops otherwise, naming it. On asap7/riscv32i a misspelled name stops synthesis and the real one passes; asap7/chi_async_bridge, whose kept modules have slang's uniquified names, passes unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
oharboe
force-pushed
the
keep-modules-missing
branch
from
October 27, 2026 08:04
733cb9b to
0bc1a7d
Compare
oharboe
marked this pull request as ready for review
October 27, 2026 08:07
jhkim-pii
approved these changes
Oct 27, 2026
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.
A
SYNTH_KEEP_MODULESname that matches no module of the design now stops synthesis, naming it. Before, it was a yosys warning, and synthesis went on with that module flattened.This is how the keep list in the coralnpu work in progress (#4653) went stale unnoticed. The current RTL renamed
DispatchV1,LsuV1andDBus2AxiV1toDispatchV2,LsuV3andDBus2AxiV2, and a full flow ran with three of its ten kept units flattened, its timing results wrong, before anything showed it.Each name must select a module by one of the two patterns the code already uses: the name itself, or slang's uniquified
name$.... TheSYNTH_KEEP_MODULESentry invariables.yamlsays so.Checked with ORFS's make:
SYNTH_KEEP_MODULES=datapth: stops withSYNTH_KEEP_MODULES: no module datapth in the design.SYNTH_KEEP_MODULES=datapath: passes.SYNTH_KEEP_MODULES(chi_async_bridge, swerv_wrapper, and coralnpu in [DO NOT REVIEW] asap7/coralnpu: current RTL from source, SRAMs and register files generated #4653) is a module of its design.🤖 Generated with Claude Code