Skip to content

[earlgrey,dv] Remove bogus dmi device from TopEarlgrey#29616

Open
rswarbrick wants to merge 1 commit intolowRISC:masterfrom
rswarbrick:no-bogus-dmi
Open

[earlgrey,dv] Remove bogus dmi device from TopEarlgrey#29616
rswarbrick wants to merge 1 commit intolowRISC:masterfrom
rswarbrick:no-bogus-dmi

Conversation

@rswarbrick
Copy link
Copy Markdown
Contributor

This was added for Darjeeling and it appears the engineers concerned didn't think about the fact this would convince various bits of tooling that the phantom interface exists for Earlgrey too.

The bulk of this commit is tidying up the logic in topgen's lib.py, merge.py and top_uvm_reg.sv.tpl to allow the possibility that an instance of a block doesn't connect up all the interfaces that the block defines. To do this properly, it also fixes some incorrect type annotations in the code (which seem to have been introduced when first adding multiple address maps).

The Earlgrey-specific change is tiny: it's just remove the "dmi" line in hw/top_earlgrey/data/top_earlgrey.hjson, together with the comment that shows the author realises it didn't make much sense...

Copy link
Copy Markdown
Contributor

@vogelpi vogelpi left a comment

Choose a reason for hiding this comment

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

Thanks @rswarbrick for the PR and the clear description in the code. LGTM!

@vogelpi vogelpi added the CI:Rerun Rerun failed CI jobs label Mar 30, 2026
@github-actions github-actions bot removed the CI:Rerun Rerun failed CI jobs label Mar 30, 2026
@vogelpi
Copy link
Copy Markdown
Contributor

vogelpi commented Mar 30, 2026

CHANGE AUTHORIZED: hw/top_earlgrey/data/top_earlgrey.hjson
CHANGE AUTHORIZED: hw/top_earlgrey/rtl/autogen/top_earlgrey_pkg.sv

This PR removes the DMI interface which was not used and not functional in Earlgrey anyway.

@rswarbrick
Copy link
Copy Markdown
Contributor Author

CHANGE AUTHORIZED: hw/top_earlgrey/data/top_earlgrey.hjson
CHANGE AUTHORIZED: hw/top_earlgrey/rtl/autogen/top_earlgrey_pkg.sv

This change will not have any effect on the Earlgrey design. Any potential change would just be removing an accidental post- change made in order to allow something for Darjeeling.

This was added for Darjeeling and it appears the engineers concerned
didn't think about the fact this would convince various bits of
tooling that the phantom interface exists for Earlgrey too.

The bulk of this commit is tidying up the logic in topgen's lib.py,
merge.py and top_uvm_reg.sv.tpl to allow the possibility that an
instance of a block doesn't connect up all the interfaces that the
block defines. To do this properly, it also fixes some incorrect type
annotations in the code (which seem to have been introduced when first
adding multiple address maps).

The Earlgrey-specific change is tiny: it's just remove the "dmi" line
in hw/top_earlgrey/data/top_earlgrey.hjson, together with the comment
that shows the author realises it didn't make much sense...

Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
Copy link
Copy Markdown
Contributor

@pamaury pamaury left a comment

Choose a reason for hiding this comment

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

I had a look mostly at the topgen/dt library changes and they look good to me (though I do find this part of topgen to be hard to follow), it's great that you added a lot of comments!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants