Skip to content

vcs: Scope parameter assignments to toplevel module#510

Merged
olofk merged 2 commits intoolofk:mainfrom
per-rtl:vcs/floww/parameter_fix
Mar 24, 2026
Merged

vcs: Scope parameter assignments to toplevel module#510
olofk merged 2 commits intoolofk:mainfrom
per-rtl:vcs/floww/parameter_fix

Conversation

@per-rtl
Copy link
Copy Markdown
Contributor

@per-rtl per-rtl commented Mar 24, 2026

Summary

  • Without the toplevel module qualifier, assign <value> <param> in parameters.txt applies to every parameter in the design hierarchy that shares the same name, not just the toplevel instance. This causes unintended parameter overrides deep in the hierarchy.
  • Prefixes each parameter key with self.toplevel. so assignments are properly scoped to the toplevel module only (e.g., assign "value" top.PARAM instead of assign "value" PARAM).

Test plan

  • Run existing VCS tests to verify no regressions
  • Verify generated parameters.txt contains toplevel-qualified parameter names

🤖 Generated with Claude Code

per-rtl and others added 2 commits March 24, 2026 18:35
Parameter assignments in parameters.txt need to be qualified with the
toplevel module name to work correctly with VCS simulation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@olofk olofk merged commit 20b3510 into olofk:main Mar 24, 2026
7 checks passed
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.

2 participants