Skip to content

[aes] Upstream support for GCM - Part 22#29276

Merged
vogelpi merged 1 commit intolowRISC:masterfrom
vogelpi:aes-gcm-upstream-2
Feb 6, 2026
Merged

[aes] Upstream support for GCM - Part 22#29276
vogelpi merged 1 commit intolowRISC:masterfrom
vogelpi:aes-gcm-upstream-2

Conversation

@vogelpi
Copy link
Contributor

@vogelpi vogelpi commented Feb 6, 2026

This is the 22nd PR of a series of PRs to upstream support for AES-GCM. The original PR can be found here: vogelpi#30


[aes/dv] Add missing predict() calls to update mirrored RAL values

When using .set() method of the uvm_reg_field base class (this only updates the desired value in the abstraction class) followed by a csr_update() call (this updates the DUT in case the desired value doesn't match the mirrored value), we also need to explicitly update the mirrored value. This can happen either by using the .predict() method, or by calling csr_rd() or csr_wr(). This commit adds missing calls to the .predict() method were required.

Without these calls, the mirrored values can get out of sync and since in some cases we use the mirrored value to decide whether we need to update register values, the DUT and the DV environment can get out of sync.

When using .set() method of the uvm_reg_field base class (this only
updates the desired value in the abstraction class) followed by a
csr_update() call (this updates the DUT in case the desired value
doesn't match the mirrored value), we also need to explicitly update
the mirrored value. This can happen either by using the .predict()
method, or by calling csr_rd() or csr_wr(). This commit adds missing
calls to the .predict() method were required.

Without these calls, the mirrored values can get out of sync and since
in some cases we use the mirrored value to decide whether we need to
update register values, the DUT and the DV environment can get out of
sync.

Signed-off-by: Pirmin Vogel <vogelpi@lowrisc.org>
@vogelpi vogelpi requested a review from a team as a code owner February 6, 2026 16:55
@vogelpi vogelpi requested review from a team, andrea-caforio, hcallahan-lowrisc, marnovandermaas and nasahlpa and removed request for a team and marnovandermaas February 6, 2026 16:55
@vogelpi vogelpi removed the request for review from hcallahan-lowrisc February 6, 2026 19:00
@vogelpi vogelpi added this pull request to the merge queue Feb 6, 2026
Merged via the queue into lowRISC:master with commit 06367c4 Feb 6, 2026
46 checks passed
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.

2 participants