Skip to content

Fix aes32esi bug#3243

Open
antonangeloff wants to merge 3 commits into
openhwgroup:masterfrom
antonangeloff:fix-aes32esi-bug
Open

Fix aes32esi bug#3243
antonangeloff wants to merge 3 commits into
openhwgroup:masterfrom
antonangeloff:fix-aes32esi-bug

Conversation

@antonangeloff
Copy link
Copy Markdown

The PR attempts to fix this aes32esi bug - which seems to be caused by orig_instr_o (raw instruction word) being assigned only if CVA6Cfg.CvxifEn || CVA6Cfg.RVF are enabled, though it's used downstream by the ZKN features as well (not only aes32esi, but also other instructions). I.e. the bug is manifested if ZKN is enabled, but CvxifEn and RVF are not; otherwise the AES implementation seems to work correctly.

Also because ZKN seems to depend on RVB being enabled as well, the PR also auto-enables RVB when ZKN is present (if it make sense a warning can be added in case it gets auto-enabled).

The files attached in the issue can be used to test the fix.

Comment thread core/include/build_config_pkg.sv Outdated
Copy link
Copy Markdown
Contributor

@cainria cainria left a comment

Choose a reason for hiding this comment

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

One minor suggestion, otherwise LGTM if it passes tests and actually fixes the issue described.

@github-actions
Copy link
Copy Markdown
Contributor

👋 Hi there!

This pull request seems inactive. Need more help or have updates? Feel free to let us know. If there are no updates within the next few days, we'll go ahead and close this PR. 😊

@github-actions github-actions Bot added the Status:Stale Issue or PR is stale and hasn't received any updates. label Apr 23, 2026
@antonangeloff
Copy link
Copy Markdown
Author

@cainria @JeanRochCoulon, please let me know if anything else is needed

@github-actions github-actions Bot removed the Status:Stale Issue or PR is stale and hasn't received any updates. label Apr 25, 2026
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.

[BUG] Incorrect result for aes32esi instruction

2 participants