Skip to content

Conversation

rwy7
Copy link
Contributor

@rwy7 rwy7 commented May 30, 2025

When emitting bindfiles for a module, that bindfile will include the bindfiles of any module instantiated directly under it.

If a module is instantiated multiple times, we'll emit duplicate include statements. This PR modifies the bindfile creation code to avoid emitting duplicate include statements.

Fixes: #8519

@rwy7 rwy7 requested review from darthscsi and seldridge as code owners May 30, 2025 16:01
When emitting bindfiles for a module, that bindfile will include the bindfiles
of any module instantiated directly under it.

If a module is instantiated multiple times, we'll emit duplicate include
statements. This PR modifies the bindfile creation code to avoid emitting
duplicate include statements.
@rwy7 rwy7 force-pushed the fix-layer-bind-file-duplicate-includes branch from 9d20356 to e7935a0 Compare May 30, 2025 18:04
@rwy7 rwy7 merged commit 7d08b89 into llvm:main May 30, 2025
5 checks passed
@rwy7 rwy7 deleted the fix-layer-bind-file-duplicate-includes branch May 30, 2025 22:51
@rwy7 rwy7 added the FIRRTL Involving the `firrtl` dialect label May 30, 2025
TaoBi22 pushed a commit to TaoBi22/circt that referenced this pull request Jul 17, 2025
)

When emitting bindfiles for a module, that bindfile will include the bindfiles
of any module instantiated directly under it.

If a module is instantiated multiple times, we'll emit duplicate include
statements. This PR modifies the bindfile creation code to avoid emitting
duplicate include statements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FIRRTL Involving the `firrtl` dialect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[firtool] Duplicate include directives for layers-*.sv files after dedup
2 participants