Skip to content

Validate top instance-name overrides - #336

Merged
amykyta3 merged 2 commits into
SystemRDL:mainfrom
aamir-azeez:fix/top-instance-name-validation
Oct 6, 2026
Merged

amykyta3 merged 2 commits into
SystemRDL:mainfrom
aamir-azeez:fix/top-instance-name-validation

Conversation

@aamir-azeez

@aamir-azeez aamir-azeez commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #318, reported by amykyta3.

elaborate(inst_name="top.name") currently accepts an invalid identifier. Validate explicit overrides and raise RDLCompileError for invalid names, keeping default names and valid names such as the keyword reg.

The test suite passes with both native and pure-Python parser modes.

@amykyta3
amykyta3 merged commit bfc8edf into SystemRDL:main Oct 6, 2026
@amykyta3

amykyta3 commented Oct 6, 2026

Copy link
Copy Markdown
Member

Thanks!

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.

[BUG] Missing validation of inst_name in RDLCompiler.elaborate()

2 participants