I am referring to Cookbook Section Dynamic Address Mapping where it discusses dynamically removing / re-adding registers and memories .
It has following code ::
class mem_ss_reg_block extends uvm_reg_block;
`uvm_object_utils(mem_ss_reg_block)
function new(string name = "mem_ss_reg_block");
super.new(name, build_coverage(UVM_CVR_ADDR_MAP));
endfunction
// Removes mem3 and the registers associated with it from the AHB_map
function void security_demap();
unlock_model();
AHB_map.unregister(mem3_offset); // Defined where ?
AHB_map.unregister(mem3_range); // Defined where ?
AHB_map.unregister(mem3); // Defined where ?
lock_model();
endfunction
However I observe that class uvm_reg_map has no function definition for unregister
In fact there is no function named "unregister" in the entire UVM Library .
How do I achieve the unregistering part for registers and memories from their register map ?