RISC-V PMP Address Configuration

0

I am currently learning about PMP in RISC-V, I understand about the TOR, but I'm getting difficulties to understand NA4 and NAPOT configuration

enter image description here

Can someone make an explanation ? My assumption is, if my pmpaddr is 0xFFFFFFFE then it means my pmp ranges from 0xFFFFFFFE00 to 0xFFFFFFFEFF. Is this right?

specifications
riscv
instruction-set
asked on Stack Overflow May 14, 2020 by ibndias

1 Answer

1

I can give you the answrer.
if pmpaddr is 0xFFFFFFFE, (1111....1110), it will matches address from 1111....111000 to 1111...111111(8 bytes).
The length of pmpaddr is 32 bits, and the length of memory is 34 bits.
You can understand this with subnet mask of IP addr.
This means the last zero is the indicator bit, the high bits must all match.

answered on Stack Overflow Nov 17, 2020 by iamywang

User contributions licensed under CC BY-SA 3.0