Skip to content

Conversation

seldridge
Copy link
Member

Fix an issue with the moveDut=true behavior of the InjectDUTHierarchy
pass that would occur if the design-under-test (DUT) was the main module
in a circuit. If this happens, this would create a new wrapper module
above the DUT, mark it private, and keep the main module of the circuit
pointing at the wrapper. This would then cause the new DUT to be deleted
as it was a private module.

This is not FIRRTL ABI compatible as it will create a new public module
and cause things like additional ref files to be created.

CC: @azidar

Fix an issue with the `moveDut=true` behavior of the `InjectDUTHierarchy`
pass that would occur if the design-under-test (DUT) was the main module
in a circuit.  If this happens, this would create a new wrapper module
above the DUT, mark it private, and keep the main module of the circuit
pointing at the wrapper.  This would then cause the new DUT to be deleted
as it was a private module.

This is not FIRRTL ABI compatible as it will create a new public module
and cause things like additional ref files to be created.

CC: @azidar

Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
@seldridge seldridge requested a review from darthscsi as a code owner July 9, 2025 18:51
Copy link
Member

@uenoku uenoku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me.

@seldridge seldridge merged commit dfa0fe9 into main Jul 9, 2025
7 checks passed
@seldridge seldridge deleted the dev/seldridge/firrtl-inject-dut-hierarchy-move-dut-new-top branch July 9, 2025 22:30
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