Runtime addition/deletion of Register in RAL Model

Hi,

I am implementing RAL model.

I am dealing with a specification, where I need to dynamically create or delete registers depending on some logic.
The number of registers that will be added, can be a large number; So I can’t predefined them and replicate in RAL model at compile time only.

Is there any way to doing it using RAL?

In reply to shreypatel7:

Not directly, since the current implementation requires you to call lock_model() first before building the address map. You’ll have to dig through the source code and find a way around it.

I’m guessing you have some kind of RAM that can be organized as pseudo-registers. An idea off the top of my head: map some space in a uvm_memory and create a new model for this area every time you reconfigure it.