Quantcast
Channel: UVM Forums RSS Feed
Viewing all articles
Browse latest Browse all 756

UVM code generates UVM warning for nested register block

$
0
0

Creating a UVM register block that is a sub-block of another UVM register block, when I call the configure function of the sub-block, I get this warning.

 

UVM_WARNING @ 0 ns: reporter [UVM/RSRC/NOREGEX] a resource with meta characters in the field name has been created "regs.foo_regs"

 

because of this implementation of configure from the UVM 1.2 source code

 

function void uvm_reg_block::configure(uvm_reg_block parent=null, string hdl_path="");

  this.parent = parent;

  if (parent != null)

    this.parent.add_block(this);

  add_hdl_path(hdl_path);

 

  uvm_resource_db#(uvm_reg_block)::set("uvm_reg::*", get_full_name(), this); endfunction

 

 

Because the full name for the sub-block includes the name of the parent block with a "." between it.

 

Am I missing something or doing something wrong?  Seems like this will always happen with nested register blocks.

 


Viewing all articles
Browse latest Browse all 756

Trending Articles