Quantcast
Channel: UVM SystemVerilog Discussions Forum RSS Feed
Viewing all articles
Browse latest Browse all 410

set register model to several agent

$
0
0

Hi,

 

I am running into a situation which I have one register model, but there will be multiple identical agent need to use this regmodel to send sequence.

 

assume I have:

 

reg_agent agent[5];

 

and in build phase, can I use: 

 

foreach(agent[i]) begin

 uvm_config_db #(ral_block_host_regmodel)::set(this, $sformatf("agent[%0d]",i), "regmodel", regmodel);
end
 
thanks
 

Viewing all articles
Browse latest Browse all 410

Latest Images

Trending Articles



Latest Images