Skip to content

Improve top-level module guessing method in base runner class#8228

Open
Arya-Golkari wants to merge 1 commit intochipsalliance:masterfrom
Arya-Golkari:guess_top
Open

Improve top-level module guessing method in base runner class#8228
Arya-Golkari wants to merge 1 commit intochipsalliance:masterfrom
Arya-Golkari:guess_top

Conversation

@Arya-Golkari
Copy link

Currently, the BaseRunner method guess_top_module just greps for the first module in the file if the top-level module is not passed as a parameter. However, most tests follow a helpful naming convention: top-level modules are conveniently named top. This PR modifies guess_top_module to exploit this pattern.

This PR was motivated by "The force and release procedural statements" test, where the top-level module is currently guessed to be flop instead of top. This has led CIRCT-Verilog to erroneously pass this test.

I'd really appreciate help from reviewers! @fabianschuiki @kbieganski

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Feb 27, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: Arya-Golkari / name: Arya Golkari (53d67bd)

Copy link

@tobiasgrosser tobiasgrosser left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

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

Nice, LGTM!

@tobiasgrosser
Copy link

@wsnyder , @kbieganski, any chance we can get this merged?

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.

3 participants