UVM 1.2 manual documents that uvm_reg_map can be added as sub-map to multiple address maps (captured as below),
But in the implementation, it is just throwing error when same map is added to 2nd map as submap.
Is there any alternate solution recommended by UVM for this?
// Cannot have more than one parent (currently)
if (parent_map != null) begin
`uvm_error("RegModel", {"Map '", child_map.get_full_name(),
"' is already a child of map '",
parent_map.get_full_name(),
"'. Cannot also be a child of map '",
get_full_name(),
"'"})
return;
end
Manual Statement :
An address map may be added to multiple address maps if it is accessible from multiple
physical interfaces. An address map may only be added to an address map in the grandparent block of the address submap.