Skip to content

Fix AMO operation cast in WT L15 adapter.#3335

Closed
AnaBSF wants to merge 3 commits into
openhwgroup:masterfrom
AnaBSF:fix/amo_l15_adapter
Closed

Fix AMO operation cast in WT L15 adapter.#3335
AnaBSF wants to merge 3 commits into
openhwgroup:masterfrom
AnaBSF:fix/amo_l15_adapter

Conversation

@AnaBSF

@AnaBSF AnaBSF commented Jun 2, 2026

Copy link
Copy Markdown
  • I have searched for similar pull requests
  • I am a human engaging in an interpersonal interaction. During this interaction, my words are my own and are not generated. If relevant, I provide links to my sources.

Bumping CVA6 in OpenPiton, which requires wt_l15_adapter, reveals that AMO ops are not being correctly sent to L1.5, and the simulation hangs. This PR fixes the cast bug that was causing all incoming CVA6 AMO operations to permanently map to AMO_NONE (0).

@AnaBSF AnaBSF requested a review from Jbalkind as a code owner June 2, 2026 17:48
@AnaBSF AnaBSF closed this Jun 2, 2026
@AnaBSF AnaBSF reopened this Jun 2, 2026

@cainria cainria left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The change looks good to me, however without context or knowledge on this topic, I'm wondering why we define two identical types l15_pkg::l15_amo_e and ariane_pkg::amo_t.

The cast assumes that these types are similar, so if we modify one, we will have to modify the other to not have bugs. Having only one type would eliminate this issue, and no casts would be needed.

Is there any reason why we have this type defined twice?

@cfuguet

cfuguet commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Hi @AnaBSF,

I'll let @Jbalkind confirm, but I think the issues you are encountering are due to a transition to the HPDcache cache subsystem. This will be the only officially supported cache subsystem (both legacy WT and STD/WB cache subsystems are being deprecated progressively).

A recent PR added full-support for OpenPiton using the HPDcache.

@AnaBSF

AnaBSF commented Jun 8, 2026

Copy link
Copy Markdown
Author

@cfuguet

Yes, I am aware, as I have been following that transition. In the meantime, this is a simple fix so that the most recent CVA6 can be used in OpenPiton with the legacy cache. I have also checked OpenPiton's open PR related to this issue (#172).

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

❌ failed run, report available here.

@JeanRochCoulon

Copy link
Copy Markdown
Contributor

By the end of august the legacy WT and WB caches will be no more supported and removed from the CVA6 RTL. For this reason, any related modification is useless. I close the PR.

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.

5 participants