# Indirect-address registers generate warning that they are not in address map (but dumping reg\_map shows them)

**URL:** <https://verificationacademy.com/forums/t/indirect-address-registers-generate-warning-that-they-are-not-in-address-map-but-dumping-reg-map-shows-them/33269>\
**Category:** UVM\
**Tags:** UVM, RAL-indirect-UVM\_WARNING-uvm\_reg\
**Created:** [July 4, 2017, 1:54am UTC](https://verificationacademy.com/forums/t/indirect-address-registers-generate-warning-that-they-are-not-in-address-map-but-dumping-reg-map-shows-them/33269 "2017-07-04T01:54:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![erik.k.jessen.raytheon.com](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/e/c89c15/32.png) [@erik.k.jessen.raytheon.com](https://verificationacademy.com/forums/u/erik.k.jessen.raytheon.com)\
**Post date:** [July 4, 2017, 1:54am UTC](https://verificationacademy.com/forums/t/indirect-address-registers-generate-warning-that-they-are-not-in-address-map-but-dumping-reg-map-shows-them/33269/1 "2017-07-04T01:54:02Z")

</div>

In running the UVM 1.1d register model, I get the following warning for all 256 instances of  
‘TABLES’.

however, TABLES appears when the reg-map is printed, and running the register-reset test causes them to be tested (per transcript).

What is causing this warning, and how do I fix it?

# UVM\_WARNING verilog\_src/uvm-1.1d/src/reg/uvm\_reg.svh(1749) @ 0: reporter [RegModel] Register ‘TABLES[0]’ is unmapped in map ‘reg\_model.default\_map’

---

<div class="post-metadata">

**Author:** ![chr\_sue](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chr_sue/32/1199_2.png) [@chr\_sue](https://verificationacademy.com/forums/u/chr_sue)\
**Post date:** [July 4, 2017, 5:56pm UTC](https://verificationacademy.com/forums/t/indirect-address-registers-generate-warning-that-they-are-not-in-address-map-but-dumping-reg-map-shows-them/33269/2 "2017-07-04T17:56:54Z")

</div>

_In reply to [erik.k.jessen@raytheon.com](https://verificationacademy.com/forums/t/indirect-address-registers-generate-warning-that-they-are-not-in-address-map-but-dumping-reg-map-shows-them/33269):_

Could you please share some code? Especially your register model and how you are accessing these registers.

---

<div class="post-metadata">

**Author:** ![erik.k.jessen.raytheon.com](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/e/c89c15/32.png) [@erik.k.jessen.raytheon.com](https://verificationacademy.com/forums/u/erik.k.jessen.raytheon.com)\
**Post date:** [July 4, 2017, 10:51pm UTC](https://verificationacademy.com/forums/t/indirect-address-registers-generate-warning-that-they-are-not-in-address-map-but-dumping-reg-map-shows-them/33269/3 "2017-07-04T22:51:18Z")

</div>

_In reply to [chr\_sue](https://verificationacademy.com/forums/t/indirect-address-registers-generate-warning-that-they-are-not-in-address-map-but-dumping-reg-map-shows-them/33269/2):_

I’m running the register example found in UVM 1.1d. I happen to be using Questasim, but since the warning is coming from within the UVM classes, I would presume that the warning occurs in all simulators.

---

<div class="post-metadata">

**Author:** ![erik.k.jessen.raytheon.com](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/e/c89c15/32.png) [@erik.k.jessen.raytheon.com](https://verificationacademy.com/forums/u/erik.k.jessen.raytheon.com)\
**Post date:** [July 4, 2017, 11:22pm UTC](https://verificationacademy.com/forums/t/indirect-address-registers-generate-warning-that-they-are-not-in-address-map-but-dumping-reg-map-shows-them/33269/4 "2017-07-04T23:22:30Z")

</div>

_In reply to [chr\_sue](https://verificationacademy.com/forums/t/indirect-address-registers-generate-warning-that-they-are-not-in-address-map-but-dumping-reg-map-shows-them/33269/3):_

A slight side topic: the uvm\_reg\_indirect\_data.configure() expects a vector of uvm\_reg.  
The documentation implies that vector[N] is accessed when the indirect-address register has a value of N. I.e. there’s no way to implement a sparsely-populated indirect-address map, where there might be registers at (for example) addresses 0, 2, and 3. But no register at address 1. Have I missed anything?

---

<div class="post-metadata">

**Author:** ![chr\_sue](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chr_sue/32/1199_2.png) [@chr\_sue](https://verificationacademy.com/forums/u/chr_sue)\
**Post date:** [July 5, 2017, 1:29pm UTC](https://verificationacademy.com/forums/t/indirect-address-registers-generate-warning-that-they-are-not-in-address-map-but-dumping-reg-map-shows-them/33269/5 "2017-07-05T13:29:30Z")

</div>

_In reply to [erik.k.jessen@raytheon.com](https://verificationacademy.com/forums/t/indirect-address-registers-generate-warning-that-they-are-not-in-address-map-but-dumping-reg-map-shows-them/33269/4):_

I had a deeper look to the example. First, the warning is true, because the indirect registers are not in the register map. Second, the warning Comes out of the command model.print().  
If you replace this line with something other the warning disappears.  
Because tzhe model.print is quite unspecific I do not use it.  
Better Information about your registers are provided by doing something like this:

```verilog
function void start_of_simulation_phase(uvm_phase phase);
   uvm_reg regs[$];
   string name;
   model.default_map.get_registers(regs);
   `uvm_info(get_type_name(), $psprintf("found %d registers", regs.size()), UVM_MEDIUM)
   for (int j = 0; j < regs.size(); j++) 
     `uvm_info(get_type_name(), $psprintf("reg[%0d]: %s", j, regs[j].get_name()), UVM_HIGH)
endfunction : start_of_simulation_phase

```
