[BUG] Incorrect handling of PMPADDR register reads in NA4 / NAPOT address matching modes #2656
Open
1 task done
Labels
notCV32A65X
It is not an CV32A65X issue
Type:Bug
For bugs in the RTL, Documentation, Verification environment or Tool and Build system
Is there an existing CVA6 bug for this?
Bug Description
The RTL code of CSR read process (https://github.com/openhwgroup/cva6/blob/master/core/csr_regfile.sv#L851C1-L857C71) incorrectly assumes that the last bit of
pmpaddr
registers should be read as 1 if the correspondingpmpNcfg.A[1]
bit is set. Table 19 in the privileged ISA spec (v20240411) states that the value of bit 0 in apmpaddrN
register can be 0 inNA4
mode and must be 0 inNAPOT
mode with 8 byte ranges:@Moschn, can you please have a look at this?
The text was updated successfully, but these errors were encountered: