Fix AMO operation cast in WT L15 adapter.#3335
Conversation
cainria
left a comment
There was a problem hiding this comment.
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?
|
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. |
|
❌ failed run, report available here. |
|
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. |
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).