New module integration and memory mapping



I am working on a security module for the rocket chip to add a new layer of memory isolation. The idea is to control memory access based on the program counter, and then depends on the region, we can call the pmp to check right access.

Let’s say we have this scheme:

So within my block we can define memory regions for multiple execution contexts. For that, we need to configure registers from the a trusted software, just like the PMP.

I want to understand how can I memory map my block configuration registers?